diff --git a/.gitattributes b/.gitattributes index 2532e5d86..8e482a5a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ *.pb.go linguist-generated +*_pb.d.ts linguist-generated +*_pb.js linguist-generated yarn.lock linguist-generated diff --git a/Makefile b/Makefile index 1bceec498..4975b6f0a 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ TENDERMINT_VERSION?=$(shell go list -m -f '{{ .Version }}' $(TENDERMINT_MOD)) TENDERMINT_SRC?=$(shell go env GOMODCACHE)/$(TENDERMINT_MOD)@$(TENDERMINT_VERSION) TENDERMINT_PROTO?=$(TENDERMINT_SRC)/proto -PROTO_FILES = $(shell find . $(TENDERMINT_PROTO) -path $(BURROW_TS_PATH) -prune -o -path ./node_modules -prune -o -type f -name '*.proto' -print) +PROTO_FILES = $(shell find . $(TENDERMINT_PROTO) -path $(BURROW_TS_PATH) -prune -o -path '*/node_modules' -prune -o -type f -name '*.proto' -print) PROTO_GO_FILES = $(patsubst %.proto, %.pb.go, $(PROTO_FILES)) PROTO_GO_FILES_REAL = $(shell find . -type f -name '*.pb.go' -print) PROTO_TS_FILES = $(patsubst %.proto, %.pb.ts, $(PROTO_FILES)) @@ -97,14 +97,15 @@ protobuf: $(PROTO_GO_FILES) $(PROTO_TS_FILES) fix %.pb.go: %.proto protoc -I ./protobuf -I $(TENDERMINT_PROTO) $< --gogo_out=${GOPATH}/src --go-grpc_out=${GOPATH}/src +# Note: we are not actually building any of the target .pb.ts files here, but nevermind # Using this: https://github.com/agreatfool/grpc_tools_node_protoc_ts %.pb.ts: %.proto mkdir -p $(PROTO_GEN_TS_PATH) $(NODE_BIN)/grpc_tools_node_protoc -I protobuf -I $(TENDERMINT_PROTO) \ --plugin="protoc-gen-ts=$(NODE_BIN)/protoc-gen-ts" \ --js_out="import_style=commonjs,binary:${PROTO_GEN_TS_PATH}" \ - --ts_out="generate_package_definition:${PROTO_GEN_TS_PATH}" \ - --grpc_out="generate_package_definition:${PROTO_GEN_TS_PATH}" \ + --ts_out="grpc_js:${PROTO_GEN_TS_PATH}" \ + --grpc_out="grpc_js:${PROTO_GEN_TS_PATH}" \ $< .PHONY: protobuf_deps diff --git a/bcm/bcm.pb.go b/bcm/bcm.pb.go index 46c0808c2..0da01442a 100644 --- a/bcm/bcm.pb.go +++ b/bcm/bcm.pb.go @@ -14,9 +14,9 @@ import ( proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" golang_proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/ptypes/duration" _ "github.com/golang/protobuf/ptypes/timestamp" github_com_hyperledger_burrow_binary "github.com/hyperledger/burrow/binary" + _ "google.golang.org/protobuf/types/known/durationpb" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/go.mod b/go.mod index efffc3702..e29382832 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,6 @@ require ( github.com/go-ozzo/ozzo-validation v3.6.0+incompatible github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.4.3 - github.com/gorilla/websocket v1.4.2 github.com/hashicorp/golang-lru v0.5.4 github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c github.com/iancoleman/strcase v0.1.3 @@ -31,13 +30,10 @@ require ( github.com/monax/relic v2.0.0+incompatible github.com/perlin-network/life v0.0.0-20191203030451-05c0e0f7eaea github.com/pkg/errors v0.9.1 - github.com/pointlander/compress v1.1.0 // indirect - github.com/pointlander/jetset v1.0.0 // indirect - github.com/pointlander/peg v1.0.0 // indirect github.com/prometheus/client_golang v1.9.0 github.com/prometheus/client_model v0.2.0 github.com/prometheus/common v0.15.0 - github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/spf13/viper v1.7.1 github.com/streadway/simpleuuid v0.0.0-20130420165545-6617b501e485 github.com/stretchr/testify v1.7.0 @@ -58,6 +54,6 @@ require ( golang.org/x/net v0.0.0-20210119194325-5f4716e94777 golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect google.golang.org/grpc v1.35.0 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 // indirect + google.golang.org/protobuf v1.25.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index 6f156f1b0..65de646b1 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,6 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-alpha.2 h1:EWbZLqGEPSIj2W69gx04KtNVkyPIfe3uj0DhDQJonbQ= -filippo.io/edwards25519 v1.0.0-alpha.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -178,7 +176,6 @@ github.com/go-logfmt/logfmt v0.5.0 h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-ozzo/ozzo-validation v3.6.0+incompatible h1:msy24VGS42fKO9K1vLz82/GeYW1cILu7Nuuj1N3BBkE= github.com/go-ozzo/ozzo-validation v3.6.0+incompatible/go.mod h1:gsEKFIVnabGBt6mXmxK0MoFy+cZoTJY6mu5Ll3LVLBU= -github.com/go-sql-driver/mysql v1.4.0 h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= @@ -189,7 +186,6 @@ github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFG github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= @@ -225,11 +221,8 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.4.0/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/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/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= -github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= 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/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= @@ -249,9 +242,7 @@ github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.2.1/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.2 h1:FlFbCRLd5Jr4iYXZufAvgWN6Ao0JrI5chLINnUXDDr0= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= @@ -290,8 +281,6 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hdevalence/ed25519consensus v0.0.0-20201207055737-7fde80a9d5ff h1:LeVKjw8pcDQj7WVVnbFvbD7ovcv+r/l15ka1NH6Lswc= -github.com/hdevalence/ed25519consensus v0.0.0-20201207055737-7fde80a9d5ff/go.mod h1:Feit0l8NcNO4g69XNjwvsR0LGcwMMfzI1TF253rOIlQ= github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c h1:aY2hhxLhjEAbfXOx2nRJxCXezC6CO2V/yN+OCr1srtk= github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c/go.mod h1:lADxMC39cJJqL93Duh1xhAs4I2Zs8mKS89XWXFGp9cs= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -436,12 +425,6 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pointlander/compress v1.1.0 h1:5fUcQV2qEHvk0OpILH6eltwluN5VnwiYrkc1wjGUHnU= -github.com/pointlander/compress v1.1.0/go.mod h1:q5NXNGzqj5uPnVuhGkZfmgHqNUhf15VLi6L9kW0VEc0= -github.com/pointlander/jetset v1.0.0 h1:bNlaNAX7cDPID9SlcogmXlDWq0KcRJSpKwHXaAM3bGQ= -github.com/pointlander/jetset v1.0.0/go.mod h1:zY6+WHRPB10uzTajloHtybSicLW1bf6Rz0eSaU9Deng= -github.com/pointlander/peg v1.0.0 h1:rtCtA6Fu6xJpILX8WJfU+cvrcKmXgTfG/v+bkLP8NYY= -github.com/pointlander/peg v1.0.0/go.mod h1:WJTMcgeWYr6fZz4CwHnY1oWZCXew8GWCF93FaAxPrh4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= @@ -449,7 +432,6 @@ github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDf github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.8.0 h1:zvJNkoCFAnYFNC24FV8nW4JdRJ3GIFcLbg65lL/JDcw= github.com/prometheus/client_golang v1.8.0/go.mod h1:O9VU6huf47PktckDQfMTX0Y8tY0/7TSWwj+ITvv0TnM= github.com/prometheus/client_golang v1.9.0 h1:Rrch9mh17XcxvEu9D9DEpb4isxjGBtcevQjKvxPRQIU= github.com/prometheus/client_golang v1.9.0/go.mod h1:FqZLKOZnGdFAhOK4nqGHa7D66IdsO+O441Eve7ptJDU= @@ -479,7 +461,6 @@ github.com/prometheus/procfs v0.2.0 h1:wH4vA7pcjKuZzjF7lM8awk4fnuJO6idemZXoKnULU github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo5oJ0jf870itWm3D0Sjh7+Za9gazKc5LQ= github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -494,7 +475,6 @@ github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.2.0 h1:lMqc+fUb7RrFS3gQLtoQsJ7/6TV/pAIFvBsqX73DK8Y= github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10= -github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= @@ -544,7 +524,6 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= @@ -556,7 +535,6 @@ github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzH github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= github.com/tendermint/tendermint v0.34.0-rc4/go.mod h1:yotsojf2C1QBOw4dZrTcxbyxmPUrT4hNuOQWX9XUwB4= github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX6mjJTgbLHTwi17VDVg= -github.com/tendermint/tendermint v0.34.0 h1:eXCfMgoqVSzrjzOj6clI9GAejcHH0LvOlRjpCmMJksU= github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ= github.com/tendermint/tendermint v0.34.3 h1:9yEsf3WO5VAwPVwrmM+RffDMiijmNfWaBwNttHm0q5w= github.com/tendermint/tendermint v0.34.3/go.mod h1:h57vnXeOlrdvvNFCqPBSaOrpOivl+2swWEtlUAqStYE= @@ -743,7 +721,6 @@ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7w 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/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e h1:AyodaIpKjppX+cBfTASF2E1US3H2JFBj920Ot3rtDjs= golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -842,8 +819,6 @@ google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTp google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8= google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/js/.eslintrc.js b/js/.eslintrc.js new file mode 100644 index 000000000..fd46ec078 --- /dev/null +++ b/js/.eslintrc.js @@ -0,0 +1,32 @@ +module.exports = { + env: { + es6: true, + node: true, + mocha: true, + }, + extends: ['plugin:@typescript-eslint/recommended'], + globals: { + Atomics: 'readonly', + SharedArrayBuffer: 'readonly', + }, + parser: '@typescript-eslint/parser', + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + }, + plugins: ['@typescript-eslint', 'prettier'], + rules: { + 'prettier/prettier': [ + 'error', + { + printWidth: 120, + singleQuote: true, + useTabs: false, + tabWidth: 2, + trailingComma: 'all', + }, + ], + '@typescript-eslint/no-namespace': 'off', + curly: 2, + }, +}; diff --git a/js/package.json b/js/package.json index a8f736e6a..4c553f806 100644 --- a/js/package.json +++ b/js/package.json @@ -16,29 +16,36 @@ }, "scripts": { "build": "tsc --build", - "test": "./test.sh 'src/test/**/*.test.ts'" + "test": "./with-burrow.sh mocha 'src/test/**/*.test.ts'", + "lint:fix": "eslint --fix src/**/*.ts" }, "dependencies": { - "@grpc/grpc-js": "^1.2.10", - "@types/ethereumjs-abi": "^0.6.3", - "bn.js": "^5.1.3", - "ethereumjs-abi": "^0.6.8", - "google-protobuf": "^3.14.0", - "sha3": "^2.1.3", - "solc": "^0.6.1", - "ts-node": "^9.1.1", - "typescript": "^4.1.3" + "@grpc/grpc-js": "^1.3.0", + "ethers": "^5.1.4", + "google-protobuf": "^3.15.8", + "solc": "^0.8.4", + "sha3": "^2.1.4" }, "devDependencies": { - "@types/mocha": "^8.2.0", - "grpc-tools": "^1.10.0", - "grpc_tools_node_protoc_ts": "^5.1.3", - "mocha": "^8.2.1" + "@types/google-protobuf": "^3.15.2", + "@types/mocha": "^8.2.2", + "@typescript-eslint/eslint-plugin": "^4.22.0", + "@typescript-eslint/parser": "^4.22.0", + "eslint": "^7.25.0", + "eslint-plugin-prettier": "^3.3.1", + "prettier": "^2.2.1", + "prettier-plugin-organize-imports": "^1.1.1", + "grpc-tools": "^1.11.1", + "grpc_tools_node_protoc_ts": "^5.2.1", + "mocha": "^8.3.2", + "ts-node": "^9.1.1", + "typescript": "^4.2.4" }, "mocha": { "bail": true, "exit": true, - "timeout": 60000 + "timeout": 60000, + "require": "ts-node/register" }, "homepage": "https://github.com/hyperledger/burrow/", "keywords": [ diff --git a/js/proto/acm_pb.d.ts b/js/proto/acm_pb.d.ts index 24bdea2d5..575c82d0a 100644 --- a/js/proto/acm_pb.d.ts +++ b/js/proto/acm_pb.d.ts @@ -15,53 +15,42 @@ export class Account extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): Account; - hasPublickey(): boolean; clearPublickey(): void; getPublickey(): crypto_pb.PublicKey | undefined; setPublickey(value?: crypto_pb.PublicKey): Account; - getSequence(): number; setSequence(value: number): Account; - getBalance(): number; setBalance(value: number): Account; - getEvmcode(): Uint8Array | string; getEvmcode_asU8(): Uint8Array; getEvmcode_asB64(): string; setEvmcode(value: Uint8Array | string): Account; - hasPermissions(): boolean; clearPermissions(): void; getPermissions(): permission_pb.AccountPermissions | undefined; setPermissions(value?: permission_pb.AccountPermissions): Account; - getWasmcode(): Uint8Array | string; getWasmcode_asU8(): Uint8Array; getWasmcode_asB64(): string; setWasmcode(value: Uint8Array | string): Account; - getNativename(): string; setNativename(value: string): Account; - getCodehash(): Uint8Array | string; getCodehash_asU8(): Uint8Array; getCodehash_asB64(): string; setCodehash(value: Uint8Array | string): Account; - clearContractmetaList(): void; getContractmetaList(): Array; setContractmetaList(value: Array): Account; addContractmeta(value?: ContractMeta, index?: number): ContractMeta; - getForebear(): Uint8Array | string; getForebear_asU8(): Uint8Array; getForebear_asB64(): string; setForebear(value: Uint8Array | string): Account; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Account.AsObject; static toObject(includeInstance: boolean, msg: Account): Account.AsObject; @@ -93,16 +82,13 @@ export class ContractMeta extends jspb.Message { getCodehash_asU8(): Uint8Array; getCodehash_asB64(): string; setCodehash(value: Uint8Array | string): ContractMeta; - getMetadatahash(): Uint8Array | string; getMetadatahash_asU8(): Uint8Array; getMetadatahash_asB64(): string; setMetadatahash(value: Uint8Array | string): ContractMeta; - getMetadata(): string; setMetadata(value: string): ContractMeta; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ContractMeta.AsObject; static toObject(includeInstance: boolean, msg: ContractMeta): ContractMeta.AsObject; diff --git a/js/proto/acm_pb.js b/js/proto/acm_pb.js index f8f8cb28b..932e9b7f2 100644 --- a/js/proto/acm_pb.js +++ b/js/proto/acm_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/balance_pb.d.ts b/js/proto/balance_pb.d.ts index 58015a33a..ed7540e75 100644 --- a/js/proto/balance_pb.d.ts +++ b/js/proto/balance_pb.d.ts @@ -10,11 +10,9 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class Balance extends jspb.Message { getType(): number; setType(value: number): Balance; - getAmount(): number; setAmount(value: number): Balance; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Balance.AsObject; static toObject(includeInstance: boolean, msg: Balance): Balance.AsObject; diff --git a/js/proto/balance_pb.js b/js/proto/balance_pb.js index c3234f566..9109922b6 100644 --- a/js/proto/balance_pb.js +++ b/js/proto/balance_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/bcm_pb.d.ts b/js/proto/bcm_pb.d.ts index dff8860c2..5fdaa6dc2 100644 --- a/js/proto/bcm_pb.d.ts +++ b/js/proto/bcm_pb.d.ts @@ -12,36 +12,30 @@ import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/du export class SyncInfo extends jspb.Message { getLatestblockheight(): number; setLatestblockheight(value: number): SyncInfo; - getLatestblockhash(): Uint8Array | string; getLatestblockhash_asU8(): Uint8Array; getLatestblockhash_asB64(): string; setLatestblockhash(value: Uint8Array | string): SyncInfo; - getLatestapphash(): Uint8Array | string; getLatestapphash_asU8(): Uint8Array; getLatestapphash_asB64(): string; setLatestapphash(value: Uint8Array | string): SyncInfo; - hasLatestblocktime(): boolean; clearLatestblocktime(): void; getLatestblocktime(): google_protobuf_timestamp_pb.Timestamp | undefined; setLatestblocktime(value?: google_protobuf_timestamp_pb.Timestamp): SyncInfo; - hasLatestblockseentime(): boolean; clearLatestblockseentime(): void; getLatestblockseentime(): google_protobuf_timestamp_pb.Timestamp | undefined; setLatestblockseentime(value?: google_protobuf_timestamp_pb.Timestamp): SyncInfo; - hasLatestblockduration(): boolean; clearLatestblockduration(): void; getLatestblockduration(): google_protobuf_duration_pb.Duration | undefined; setLatestblockduration(value?: google_protobuf_duration_pb.Duration): SyncInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SyncInfo.AsObject; static toObject(includeInstance: boolean, msg: SyncInfo): SyncInfo.AsObject; @@ -69,21 +63,17 @@ export class PersistedState extends jspb.Message { getApphashafterlastblock_asB64(): string; setApphashafterlastblock(value: Uint8Array | string): PersistedState; - hasLastblocktime(): boolean; clearLastblocktime(): void; getLastblocktime(): google_protobuf_timestamp_pb.Timestamp | undefined; setLastblocktime(value?: google_protobuf_timestamp_pb.Timestamp): PersistedState; - getLastblockheight(): number; setLastblockheight(value: number): PersistedState; - getGenesishash(): Uint8Array | string; getGenesishash_asU8(): Uint8Array; getGenesishash_asB64(): string; setGenesishash(value: Uint8Array | string): PersistedState; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PersistedState.AsObject; static toObject(includeInstance: boolean, msg: PersistedState): PersistedState.AsObject; diff --git a/js/proto/bcm_pb.js b/js/proto/bcm_pb.js index 07e464ae2..3ef9ede91 100644 --- a/js/proto/bcm_pb.js +++ b/js/proto/bcm_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/crypto_pb.d.ts b/js/proto/crypto_pb.d.ts index 939d58cb8..0956b5f54 100644 --- a/js/proto/crypto_pb.d.ts +++ b/js/proto/crypto_pb.d.ts @@ -10,13 +10,11 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class PublicKey extends jspb.Message { getCurvetype(): number; setCurvetype(value: number): PublicKey; - getPublickey(): Uint8Array | string; getPublickey_asU8(): Uint8Array; getPublickey_asB64(): string; setPublickey(value: Uint8Array | string): PublicKey; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PublicKey.AsObject; static toObject(includeInstance: boolean, msg: PublicKey): PublicKey.AsObject; @@ -37,18 +35,15 @@ export namespace PublicKey { export class PrivateKey extends jspb.Message { getCurvetype(): number; setCurvetype(value: number): PrivateKey; - getPublickey(): Uint8Array | string; getPublickey_asU8(): Uint8Array; getPublickey_asB64(): string; setPublickey(value: Uint8Array | string): PrivateKey; - getPrivatekey(): Uint8Array | string; getPrivatekey_asU8(): Uint8Array; getPrivatekey_asB64(): string; setPrivatekey(value: Uint8Array | string): PrivateKey; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PrivateKey.AsObject; static toObject(includeInstance: boolean, msg: PrivateKey): PrivateKey.AsObject; @@ -70,13 +65,11 @@ export namespace PrivateKey { export class Signature extends jspb.Message { getCurvetype(): number; setCurvetype(value: number): Signature; - getSignature(): Uint8Array | string; getSignature_asU8(): Uint8Array; getSignature_asB64(): string; setSignature(value: Uint8Array | string): Signature; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Signature.AsObject; static toObject(includeInstance: boolean, msg: Signature): Signature.AsObject; diff --git a/js/proto/crypto_pb.js b/js/proto/crypto_pb.js index 9f904f9da..cb055dcea 100644 --- a/js/proto/crypto_pb.js +++ b/js/proto/crypto_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/dump_pb.d.ts b/js/proto/dump_pb.d.ts index 769b75fe3..c364d3f34 100644 --- a/js/proto/dump_pb.d.ts +++ b/js/proto/dump_pb.d.ts @@ -16,13 +16,11 @@ export class Storage extends jspb.Message { getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): Storage; - getValue(): Uint8Array | string; getValue_asU8(): Uint8Array; getValue_asB64(): string; setValue(value: Uint8Array | string): Storage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Storage.AsObject; static toObject(includeInstance: boolean, msg: Storage): Storage.AsObject; @@ -45,13 +43,11 @@ export class AccountStorage extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): AccountStorage; - clearStorageList(): void; getStorageList(): Array; setStorageList(value: Array): AccountStorage; addStorage(value?: Storage, index?: number): Storage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AccountStorage.AsObject; static toObject(includeInstance: boolean, msg: AccountStorage): AccountStorage.AsObject; @@ -72,23 +68,19 @@ export namespace AccountStorage { export class EVMEvent extends jspb.Message { getChainid(): string; setChainid(value: string): EVMEvent; - getIndex(): number; setIndex(value: number): EVMEvent; - hasTime(): boolean; clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): EVMEvent; - hasEvent(): boolean; clearEvent(): void; getEvent(): exec_pb.LogEvent | undefined; setEvent(value?: exec_pb.LogEvent): EVMEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EVMEvent.AsObject; static toObject(includeInstance: boolean, msg: EVMEvent): EVMEvent.AsObject; @@ -112,31 +104,26 @@ export class Dump extends jspb.Message { getHeight(): number; setHeight(value: number): Dump; - hasAccount(): boolean; clearAccount(): void; getAccount(): acm_pb.Account | undefined; setAccount(value?: acm_pb.Account): Dump; - hasAccountstorage(): boolean; clearAccountstorage(): void; getAccountstorage(): AccountStorage | undefined; setAccountstorage(value?: AccountStorage): Dump; - hasEvmevent(): boolean; clearEvmevent(): void; getEvmevent(): EVMEvent | undefined; setEvmevent(value?: EVMEvent): Dump; - hasName(): boolean; clearName(): void; getName(): names_pb.Entry | undefined; setName(value?: names_pb.Entry): Dump; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Dump.AsObject; static toObject(includeInstance: boolean, msg: Dump): Dump.AsObject; diff --git a/js/proto/dump_pb.js b/js/proto/dump_pb.js index 0b0f5c4b5..23c319bf7 100644 --- a/js/proto/dump_pb.js +++ b/js/proto/dump_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/encoding_pb.d.ts b/js/proto/encoding_pb.d.ts index ed0c75546..16df8ddbe 100644 --- a/js/proto/encoding_pb.d.ts +++ b/js/proto/encoding_pb.d.ts @@ -10,11 +10,9 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class TestMessage extends jspb.Message { getType(): number; setType(value: number): TestMessage; - getAmount(): number; setAmount(value: number): TestMessage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TestMessage.AsObject; static toObject(includeInstance: boolean, msg: TestMessage): TestMessage.AsObject; diff --git a/js/proto/encoding_pb.js b/js/proto/encoding_pb.js index 96507c900..c5d95322d 100644 --- a/js/proto/encoding_pb.js +++ b/js/proto/encoding_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/errors_pb.d.ts b/js/proto/errors_pb.d.ts index f235786bb..a4be77743 100644 --- a/js/proto/errors_pb.d.ts +++ b/js/proto/errors_pb.d.ts @@ -10,11 +10,9 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class Exception extends jspb.Message { getCode(): number; setCode(value: number): Exception; - getException(): string; setException(value: string): Exception; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Exception.AsObject; static toObject(includeInstance: boolean, msg: Exception): Exception.AsObject; diff --git a/js/proto/errors_pb.js b/js/proto/errors_pb.js index 3f90948ed..544235aab 100644 --- a/js/proto/errors_pb.js +++ b/js/proto/errors_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/exec_pb.d.ts b/js/proto/exec_pb.d.ts index bc1f87597..b9fdbeeee 100644 --- a/js/proto/exec_pb.d.ts +++ b/js/proto/exec_pb.d.ts @@ -20,7 +20,6 @@ export class StreamEvents extends jspb.Message { setStreameventsList(value: Array): StreamEvents; addStreamevents(value?: StreamEvent, index?: number): StreamEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StreamEvents.AsObject; static toObject(includeInstance: boolean, msg: StreamEvents): StreamEvents.AsObject; @@ -44,37 +43,31 @@ export class StreamEvent extends jspb.Message { getBeginblock(): BeginBlock | undefined; setBeginblock(value?: BeginBlock): StreamEvent; - hasBegintx(): boolean; clearBegintx(): void; getBegintx(): BeginTx | undefined; setBegintx(value?: BeginTx): StreamEvent; - hasEnvelope(): boolean; clearEnvelope(): void; getEnvelope(): txs_pb.Envelope | undefined; setEnvelope(value?: txs_pb.Envelope): StreamEvent; - hasEvent(): boolean; clearEvent(): void; getEvent(): Event | undefined; setEvent(value?: Event): StreamEvent; - hasEndtx(): boolean; clearEndtx(): void; getEndtx(): EndTx | undefined; setEndtx(value?: EndTx): StreamEvent; - hasEndblock(): boolean; clearEndblock(): void; getEndblock(): EndBlock | undefined; setEndblock(value?: EndBlock): StreamEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StreamEvent.AsObject; static toObject(includeInstance: boolean, msg: StreamEvent): StreamEvent.AsObject; @@ -99,20 +92,16 @@ export namespace StreamEvent { export class BeginBlock extends jspb.Message { getHeight(): number; setHeight(value: number): BeginBlock; - getNumtxs(): number; setNumtxs(value: number): BeginBlock; - getPredecessorheight(): number; setPredecessorheight(value: number): BeginBlock; - hasHeader(): boolean; clearHeader(): void; getHeader(): tendermint_types_types_pb.Header | undefined; setHeader(value?: tendermint_types_types_pb.Header): BeginBlock; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BeginBlock.AsObject; static toObject(includeInstance: boolean, msg: BeginBlock): BeginBlock.AsObject; @@ -136,7 +125,6 @@ export class EndBlock extends jspb.Message { getHeight(): number; setHeight(value: number): EndBlock; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EndBlock.AsObject; static toObject(includeInstance: boolean, msg: EndBlock): EndBlock.AsObject; @@ -159,23 +147,19 @@ export class BeginTx extends jspb.Message { clearTxheader(): void; getTxheader(): TxHeader | undefined; setTxheader(value?: TxHeader): BeginTx; - getNumevents(): number; setNumevents(value: number): BeginTx; - hasResult(): boolean; clearResult(): void; getResult(): Result | undefined; setResult(value?: Result): BeginTx; - hasException(): boolean; clearException(): void; getException(): errors_pb.Exception | undefined; setException(value?: errors_pb.Exception): BeginTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BeginTx.AsObject; static toObject(includeInstance: boolean, msg: BeginTx): BeginTx.AsObject; @@ -201,7 +185,6 @@ export class EndTx extends jspb.Message { getTxhash_asB64(): string; setTxhash(value: Uint8Array | string): EndTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EndTx.AsObject; static toObject(includeInstance: boolean, msg: EndTx): EndTx.AsObject; @@ -221,25 +204,20 @@ export namespace EndTx { export class TxHeader extends jspb.Message { getTxtype(): number; setTxtype(value: number): TxHeader; - getTxhash(): Uint8Array | string; getTxhash_asU8(): Uint8Array; getTxhash_asB64(): string; setTxhash(value: Uint8Array | string): TxHeader; - getHeight(): number; setHeight(value: number): TxHeader; - getIndex(): number; setIndex(value: number): TxHeader; - hasOrigin(): boolean; clearOrigin(): void; getOrigin(): Origin | undefined; setOrigin(value?: Origin): TxHeader; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxHeader.AsObject; static toObject(includeInstance: boolean, msg: TxHeader): TxHeader.AsObject; @@ -263,22 +241,18 @@ export namespace TxHeader { export class BlockExecution extends jspb.Message { getHeight(): number; setHeight(value: number): BlockExecution; - getPredecessorheight(): number; setPredecessorheight(value: number): BlockExecution; - hasHeader(): boolean; clearHeader(): void; getHeader(): tendermint_types_types_pb.Header | undefined; setHeader(value?: tendermint_types_types_pb.Header): BlockExecution; - clearTxexecutionsList(): void; getTxexecutionsList(): Array; setTxexecutionsList(value: Array): BlockExecution; addTxexecutions(value?: TxExecution, index?: number): TxExecution; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockExecution.AsObject; static toObject(includeInstance: boolean, msg: BlockExecution): BlockExecution.AsObject; @@ -301,11 +275,9 @@ export namespace BlockExecution { export class TxExecutionKey extends jspb.Message { getHeight(): number; setHeight(value: number): TxExecutionKey; - getOffset(): number; setOffset(value: number): TxExecutionKey; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxExecutionKey.AsObject; static toObject(includeInstance: boolean, msg: TxExecutionKey): TxExecutionKey.AsObject; @@ -330,41 +302,34 @@ export class TxExecution extends jspb.Message { getHeader(): TxHeader | undefined; setHeader(value?: TxHeader): TxExecution; - hasEnvelope(): boolean; clearEnvelope(): void; getEnvelope(): txs_pb.Envelope | undefined; setEnvelope(value?: txs_pb.Envelope): TxExecution; - clearEventsList(): void; getEventsList(): Array; setEventsList(value: Array): TxExecution; addEvents(value?: Event, index?: number): Event; - hasResult(): boolean; clearResult(): void; getResult(): Result | undefined; setResult(value?: Result): TxExecution; - hasReceipt(): boolean; clearReceipt(): void; getReceipt(): txs_pb.Receipt | undefined; setReceipt(value?: txs_pb.Receipt): TxExecution; - hasException(): boolean; clearException(): void; getException(): errors_pb.Exception | undefined; setException(value?: errors_pb.Exception): TxExecution; - clearTxexecutionsList(): void; getTxexecutionsList(): Array; setTxexecutionsList(value: Array): TxExecution; addTxexecutions(value?: TxExecution, index?: number): TxExecution; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxExecution.AsObject; static toObject(includeInstance: boolean, msg: TxExecution): TxExecution.AsObject; @@ -390,20 +355,16 @@ export namespace TxExecution { export class Origin extends jspb.Message { getChainid(): string; setChainid(value: string): Origin; - getHeight(): number; setHeight(value: number): Origin; - getIndex(): number; setIndex(value: number): Origin; - hasTime(): boolean; clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): Origin; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Origin.AsObject; static toObject(includeInstance: boolean, msg: Origin): Origin.AsObject; @@ -426,31 +387,24 @@ export namespace Origin { export class Header extends jspb.Message { getTxtype(): number; setTxtype(value: number): Header; - getTxhash(): Uint8Array | string; getTxhash_asU8(): Uint8Array; getTxhash_asB64(): string; setTxhash(value: Uint8Array | string): Header; - getEventtype(): number; setEventtype(value: number): Header; - getEventid(): string; setEventid(value: string): Header; - getHeight(): number; setHeight(value: number): Header; - getIndex(): number; setIndex(value: number): Header; - hasException(): boolean; clearException(): void; getException(): errors_pb.Exception | undefined; setException(value?: errors_pb.Exception): Header; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Header.AsObject; static toObject(includeInstance: boolean, msg: Header): Header.AsObject; @@ -480,43 +434,36 @@ export class Event extends jspb.Message { getHeader(): Header | undefined; setHeader(value?: Header): Event; - hasInput(): boolean; clearInput(): void; getInput(): InputEvent | undefined; setInput(value?: InputEvent): Event; - hasOutput(): boolean; clearOutput(): void; getOutput(): OutputEvent | undefined; setOutput(value?: OutputEvent): Event; - hasCall(): boolean; clearCall(): void; getCall(): CallEvent | undefined; setCall(value?: CallEvent): Event; - hasLog(): boolean; clearLog(): void; getLog(): LogEvent | undefined; setLog(value?: LogEvent): Event; - hasGovernaccount(): boolean; clearGovernaccount(): void; getGovernaccount(): GovernAccountEvent | undefined; setGovernaccount(value?: GovernAccountEvent): Event; - hasPrint(): boolean; clearPrint(): void; getPrint(): PrintEvent | undefined; setPrint(value?: PrintEvent): Event; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Event.AsObject; static toObject(includeInstance: boolean, msg: Event): Event.AsObject; @@ -544,23 +491,19 @@ export class Result extends jspb.Message { getReturn_asU8(): Uint8Array; getReturn_asB64(): string; setReturn(value: Uint8Array | string): Result; - getGasused(): number; setGasused(value: number): Result; - hasNameentry(): boolean; clearNameentry(): void; getNameentry(): names_pb.Entry | undefined; setNameentry(value?: names_pb.Entry): Result; - hasPermargs(): boolean; clearPermargs(): void; getPermargs(): permission_pb.PermArgs | undefined; setPermargs(value?: permission_pb.PermArgs): Result; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Result.AsObject; static toObject(includeInstance: boolean, msg: Result): Result.AsObject; @@ -585,12 +528,10 @@ export class LogEvent extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): LogEvent; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): LogEvent; - clearTopicsList(): void; getTopicsList(): Array; getTopicsList_asU8(): Array; @@ -598,7 +539,6 @@ export class LogEvent extends jspb.Message { setTopicsList(value: Array): LogEvent; addTopics(value: Uint8Array | string, index?: number): Uint8Array | string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LogEvent.AsObject; static toObject(includeInstance: boolean, msg: LogEvent): LogEvent.AsObject; @@ -621,26 +561,21 @@ export class CallEvent extends jspb.Message { getCalltype(): number; setCalltype(value: number): CallEvent; - hasCalldata(): boolean; clearCalldata(): void; getCalldata(): CallData | undefined; setCalldata(value?: CallData): CallEvent; - getOrigin(): Uint8Array | string; getOrigin_asU8(): Uint8Array; getOrigin_asB64(): string; setOrigin(value: Uint8Array | string): CallEvent; - getStackdepth(): number; setStackdepth(value: number): CallEvent; - getReturn(): Uint8Array | string; getReturn_asU8(): Uint8Array; getReturn_asB64(): string; setReturn(value: Uint8Array | string): CallEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CallEvent.AsObject; static toObject(includeInstance: boolean, msg: CallEvent): CallEvent.AsObject; @@ -666,13 +601,11 @@ export class PrintEvent extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): PrintEvent; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): PrintEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PrintEvent.AsObject; static toObject(includeInstance: boolean, msg: PrintEvent): PrintEvent.AsObject; @@ -697,7 +630,6 @@ export class GovernAccountEvent extends jspb.Message { getAccountupdate(): spec_pb.TemplateAccount | undefined; setAccountupdate(value?: spec_pb.TemplateAccount): GovernAccountEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GovernAccountEvent.AsObject; static toObject(includeInstance: boolean, msg: GovernAccountEvent): GovernAccountEvent.AsObject; @@ -720,7 +652,6 @@ export class InputEvent extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): InputEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InputEvent.AsObject; static toObject(includeInstance: boolean, msg: InputEvent): InputEvent.AsObject; @@ -743,7 +674,6 @@ export class OutputEvent extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): OutputEvent; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): OutputEvent.AsObject; static toObject(includeInstance: boolean, msg: OutputEvent): OutputEvent.AsObject; @@ -765,28 +695,23 @@ export class CallData extends jspb.Message { getCaller_asU8(): Uint8Array; getCaller_asB64(): string; setCaller(value: Uint8Array | string): CallData; - getCallee(): Uint8Array | string; getCallee_asU8(): Uint8Array; getCallee_asB64(): string; setCallee(value: Uint8Array | string): CallData; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): CallData; - getValue(): Uint8Array | string; getValue_asU8(): Uint8Array; getValue_asB64(): string; setValue(value: Uint8Array | string): CallData; - getGas(): Uint8Array | string; getGas_asU8(): Uint8Array; getGas_asB64(): string; setGas(value: Uint8Array | string): CallData; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CallData.AsObject; static toObject(includeInstance: boolean, msg: CallData): CallData.AsObject; diff --git a/js/proto/exec_pb.js b/js/proto/exec_pb.js index cf5598c15..59c747d1f 100644 --- a/js/proto/exec_pb.js +++ b/js/proto/exec_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/gogoproto/gogo_pb.js b/js/proto/gogoproto/gogo_pb.js index 235bd0e12..3d3e5dd8a 100644 --- a/js/proto/gogoproto/gogo_pb.js +++ b/js/proto/gogoproto/gogo_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/google/protobuf/descriptor_pb.d.ts b/js/proto/google/protobuf/descriptor_pb.d.ts index 55bb93334..799c47570 100644 --- a/js/proto/google/protobuf/descriptor_pb.d.ts +++ b/js/proto/google/protobuf/descriptor_pb.d.ts @@ -12,7 +12,6 @@ export class FileDescriptorSet extends jspb.Message { setFileList(value: Array): FileDescriptorSet; addFile(value?: FileDescriptorProto, index?: number): FileDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FileDescriptorSet.AsObject; static toObject(includeInstance: boolean, msg: FileDescriptorSet): FileDescriptorSet.AsObject; @@ -36,66 +35,54 @@ export class FileDescriptorProto extends jspb.Message { getName(): string | undefined; setName(value: string): FileDescriptorProto; - hasPackage(): boolean; clearPackage(): void; getPackage(): string | undefined; setPackage(value: string): FileDescriptorProto; - clearDependencyList(): void; getDependencyList(): Array; setDependencyList(value: Array): FileDescriptorProto; addDependency(value: string, index?: number): string; - clearPublicDependencyList(): void; getPublicDependencyList(): Array; setPublicDependencyList(value: Array): FileDescriptorProto; addPublicDependency(value: number, index?: number): number; - clearWeakDependencyList(): void; getWeakDependencyList(): Array; setWeakDependencyList(value: Array): FileDescriptorProto; addWeakDependency(value: number, index?: number): number; - clearMessageTypeList(): void; getMessageTypeList(): Array; setMessageTypeList(value: Array): FileDescriptorProto; addMessageType(value?: DescriptorProto, index?: number): DescriptorProto; - clearEnumTypeList(): void; getEnumTypeList(): Array; setEnumTypeList(value: Array): FileDescriptorProto; addEnumType(value?: EnumDescriptorProto, index?: number): EnumDescriptorProto; - clearServiceList(): void; getServiceList(): Array; setServiceList(value: Array): FileDescriptorProto; addService(value?: ServiceDescriptorProto, index?: number): ServiceDescriptorProto; - clearExtensionList(): void; getExtensionList(): Array; setExtensionList(value: Array): FileDescriptorProto; - addExtension(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; - + addExtension$(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; hasOptions(): boolean; clearOptions(): void; getOptions(): FileOptions | undefined; setOptions(value?: FileOptions): FileDescriptorProto; - hasSourceCodeInfo(): boolean; clearSourceCodeInfo(): void; getSourceCodeInfo(): SourceCodeInfo | undefined; setSourceCodeInfo(value?: SourceCodeInfo): FileDescriptorProto; - hasSyntax(): boolean; clearSyntax(): void; getSyntax(): string | undefined; setSyntax(value: string): FileDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FileDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: FileDescriptorProto): FileDescriptorProto.AsObject; @@ -129,54 +116,44 @@ export class DescriptorProto extends jspb.Message { clearName(): void; getName(): string | undefined; setName(value: string): DescriptorProto; - clearFieldList(): void; getFieldList(): Array; setFieldList(value: Array): DescriptorProto; addField(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; - clearExtensionList(): void; getExtensionList(): Array; setExtensionList(value: Array): DescriptorProto; - addExtension(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; - + addExtension$(value?: FieldDescriptorProto, index?: number): FieldDescriptorProto; clearNestedTypeList(): void; getNestedTypeList(): Array; setNestedTypeList(value: Array): DescriptorProto; addNestedType(value?: DescriptorProto, index?: number): DescriptorProto; - clearEnumTypeList(): void; getEnumTypeList(): Array; setEnumTypeList(value: Array): DescriptorProto; addEnumType(value?: EnumDescriptorProto, index?: number): EnumDescriptorProto; - clearExtensionRangeList(): void; getExtensionRangeList(): Array; setExtensionRangeList(value: Array): DescriptorProto; addExtensionRange(value?: DescriptorProto.ExtensionRange, index?: number): DescriptorProto.ExtensionRange; - clearOneofDeclList(): void; getOneofDeclList(): Array; setOneofDeclList(value: Array): DescriptorProto; addOneofDecl(value?: OneofDescriptorProto, index?: number): OneofDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): MessageOptions | undefined; setOptions(value?: MessageOptions): DescriptorProto; - clearReservedRangeList(): void; getReservedRangeList(): Array; setReservedRangeList(value: Array): DescriptorProto; addReservedRange(value?: DescriptorProto.ReservedRange, index?: number): DescriptorProto.ReservedRange; - clearReservedNameList(): void; getReservedNameList(): Array; setReservedNameList(value: Array): DescriptorProto; addReservedName(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: DescriptorProto): DescriptorProto.AsObject; @@ -209,19 +186,16 @@ export namespace DescriptorProto { getStart(): number | undefined; setStart(value: number): ExtensionRange; - hasEnd(): boolean; clearEnd(): void; getEnd(): number | undefined; setEnd(value: number): ExtensionRange; - hasOptions(): boolean; clearOptions(): void; getOptions(): ExtensionRangeOptions | undefined; setOptions(value?: ExtensionRangeOptions): ExtensionRange; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ExtensionRange.AsObject; static toObject(includeInstance: boolean, msg: ExtensionRange): ExtensionRange.AsObject; @@ -247,13 +221,11 @@ export namespace DescriptorProto { getStart(): number | undefined; setStart(value: number): ReservedRange; - hasEnd(): boolean; clearEnd(): void; getEnd(): number | undefined; setEnd(value: number): ReservedRange; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ReservedRange.AsObject; static toObject(includeInstance: boolean, msg: ReservedRange): ReservedRange.AsObject; @@ -279,7 +251,6 @@ export class ExtensionRangeOptions extends jspb.Message { setUninterpretedOptionList(value: Array): ExtensionRangeOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ExtensionRangeOptions.AsObject; static toObject(includeInstance: boolean, msg: ExtensionRangeOptions): ExtensionRangeOptions.AsObject; @@ -303,61 +274,51 @@ export class FieldDescriptorProto extends jspb.Message { getName(): string | undefined; setName(value: string): FieldDescriptorProto; - hasNumber(): boolean; clearNumber(): void; getNumber(): number | undefined; setNumber(value: number): FieldDescriptorProto; - hasLabel(): boolean; clearLabel(): void; getLabel(): FieldDescriptorProto.Label | undefined; setLabel(value: FieldDescriptorProto.Label): FieldDescriptorProto; - hasType(): boolean; clearType(): void; getType(): FieldDescriptorProto.Type | undefined; setType(value: FieldDescriptorProto.Type): FieldDescriptorProto; - hasTypeName(): boolean; clearTypeName(): void; getTypeName(): string | undefined; setTypeName(value: string): FieldDescriptorProto; - hasExtendee(): boolean; clearExtendee(): void; getExtendee(): string | undefined; setExtendee(value: string): FieldDescriptorProto; - hasDefaultValue(): boolean; clearDefaultValue(): void; getDefaultValue(): string | undefined; setDefaultValue(value: string): FieldDescriptorProto; - hasOneofIndex(): boolean; clearOneofIndex(): void; getOneofIndex(): number | undefined; setOneofIndex(value: number): FieldDescriptorProto; - hasJsonName(): boolean; clearJsonName(): void; getJsonName(): string | undefined; setJsonName(value: string): FieldDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): FieldOptions | undefined; setOptions(value?: FieldOptions): FieldDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FieldDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: FieldDescriptorProto): FieldDescriptorProto.AsObject; @@ -418,13 +379,11 @@ export class OneofDescriptorProto extends jspb.Message { getName(): string | undefined; setName(value: string): OneofDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): OneofOptions | undefined; setOptions(value?: OneofOptions): OneofDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): OneofDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: OneofDescriptorProto): OneofDescriptorProto.AsObject; @@ -448,29 +407,24 @@ export class EnumDescriptorProto extends jspb.Message { clearName(): void; getName(): string | undefined; setName(value: string): EnumDescriptorProto; - clearValueList(): void; getValueList(): Array; setValueList(value: Array): EnumDescriptorProto; addValue(value?: EnumValueDescriptorProto, index?: number): EnumValueDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): EnumOptions | undefined; setOptions(value?: EnumOptions): EnumDescriptorProto; - clearReservedRangeList(): void; getReservedRangeList(): Array; setReservedRangeList(value: Array): EnumDescriptorProto; addReservedRange(value?: EnumDescriptorProto.EnumReservedRange, index?: number): EnumDescriptorProto.EnumReservedRange; - clearReservedNameList(): void; getReservedNameList(): Array; setReservedNameList(value: Array): EnumDescriptorProto; addReservedName(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EnumDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: EnumDescriptorProto): EnumDescriptorProto.AsObject; @@ -498,13 +452,11 @@ export namespace EnumDescriptorProto { getStart(): number | undefined; setStart(value: number): EnumReservedRange; - hasEnd(): boolean; clearEnd(): void; getEnd(): number | undefined; setEnd(value: number): EnumReservedRange; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EnumReservedRange.AsObject; static toObject(includeInstance: boolean, msg: EnumReservedRange): EnumReservedRange.AsObject; @@ -531,19 +483,16 @@ export class EnumValueDescriptorProto extends jspb.Message { getName(): string | undefined; setName(value: string): EnumValueDescriptorProto; - hasNumber(): boolean; clearNumber(): void; getNumber(): number | undefined; setNumber(value: number): EnumValueDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): EnumValueOptions | undefined; setOptions(value?: EnumValueOptions): EnumValueDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EnumValueDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: EnumValueDescriptorProto): EnumValueDescriptorProto.AsObject; @@ -568,19 +517,16 @@ export class ServiceDescriptorProto extends jspb.Message { clearName(): void; getName(): string | undefined; setName(value: string): ServiceDescriptorProto; - clearMethodList(): void; getMethodList(): Array; setMethodList(value: Array): ServiceDescriptorProto; addMethod(value?: MethodDescriptorProto, index?: number): MethodDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): ServiceOptions | undefined; setOptions(value?: ServiceOptions): ServiceDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ServiceDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: ServiceDescriptorProto): ServiceDescriptorProto.AsObject; @@ -606,37 +552,31 @@ export class MethodDescriptorProto extends jspb.Message { getName(): string | undefined; setName(value: string): MethodDescriptorProto; - hasInputType(): boolean; clearInputType(): void; getInputType(): string | undefined; setInputType(value: string): MethodDescriptorProto; - hasOutputType(): boolean; clearOutputType(): void; getOutputType(): string | undefined; setOutputType(value: string): MethodDescriptorProto; - hasOptions(): boolean; clearOptions(): void; getOptions(): MethodOptions | undefined; setOptions(value?: MethodOptions): MethodDescriptorProto; - hasClientStreaming(): boolean; clearClientStreaming(): void; getClientStreaming(): boolean | undefined; setClientStreaming(value: boolean): MethodDescriptorProto; - hasServerStreaming(): boolean; clearServerStreaming(): void; getServerStreaming(): boolean | undefined; setServerStreaming(value: boolean): MethodDescriptorProto; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MethodDescriptorProto.AsObject; static toObject(includeInstance: boolean, msg: MethodDescriptorProto): MethodDescriptorProto.AsObject; @@ -665,126 +605,105 @@ export class FileOptions extends jspb.Message { getJavaPackage(): string | undefined; setJavaPackage(value: string): FileOptions; - hasJavaOuterClassname(): boolean; clearJavaOuterClassname(): void; getJavaOuterClassname(): string | undefined; setJavaOuterClassname(value: string): FileOptions; - hasJavaMultipleFiles(): boolean; clearJavaMultipleFiles(): void; getJavaMultipleFiles(): boolean | undefined; setJavaMultipleFiles(value: boolean): FileOptions; - hasJavaGenerateEqualsAndHash(): boolean; clearJavaGenerateEqualsAndHash(): void; getJavaGenerateEqualsAndHash(): boolean | undefined; setJavaGenerateEqualsAndHash(value: boolean): FileOptions; - hasJavaStringCheckUtf8(): boolean; clearJavaStringCheckUtf8(): void; getJavaStringCheckUtf8(): boolean | undefined; setJavaStringCheckUtf8(value: boolean): FileOptions; - hasOptimizeFor(): boolean; clearOptimizeFor(): void; getOptimizeFor(): FileOptions.OptimizeMode | undefined; setOptimizeFor(value: FileOptions.OptimizeMode): FileOptions; - hasGoPackage(): boolean; clearGoPackage(): void; getGoPackage(): string | undefined; setGoPackage(value: string): FileOptions; - hasCcGenericServices(): boolean; clearCcGenericServices(): void; getCcGenericServices(): boolean | undefined; setCcGenericServices(value: boolean): FileOptions; - hasJavaGenericServices(): boolean; clearJavaGenericServices(): void; getJavaGenericServices(): boolean | undefined; setJavaGenericServices(value: boolean): FileOptions; - hasPyGenericServices(): boolean; clearPyGenericServices(): void; getPyGenericServices(): boolean | undefined; setPyGenericServices(value: boolean): FileOptions; - hasPhpGenericServices(): boolean; clearPhpGenericServices(): void; getPhpGenericServices(): boolean | undefined; setPhpGenericServices(value: boolean): FileOptions; - hasDeprecated(): boolean; clearDeprecated(): void; getDeprecated(): boolean | undefined; setDeprecated(value: boolean): FileOptions; - hasCcEnableArenas(): boolean; clearCcEnableArenas(): void; getCcEnableArenas(): boolean | undefined; setCcEnableArenas(value: boolean): FileOptions; - hasObjcClassPrefix(): boolean; clearObjcClassPrefix(): void; getObjcClassPrefix(): string | undefined; setObjcClassPrefix(value: string): FileOptions; - hasCsharpNamespace(): boolean; clearCsharpNamespace(): void; getCsharpNamespace(): string | undefined; setCsharpNamespace(value: string): FileOptions; - hasSwiftPrefix(): boolean; clearSwiftPrefix(): void; getSwiftPrefix(): string | undefined; setSwiftPrefix(value: string): FileOptions; - hasPhpClassPrefix(): boolean; clearPhpClassPrefix(): void; getPhpClassPrefix(): string | undefined; setPhpClassPrefix(value: string): FileOptions; - hasPhpNamespace(): boolean; clearPhpNamespace(): void; getPhpNamespace(): string | undefined; setPhpNamespace(value: string): FileOptions; - hasPhpMetadataNamespace(): boolean; clearPhpMetadataNamespace(): void; getPhpMetadataNamespace(): string | undefined; setPhpMetadataNamespace(value: string): FileOptions; - hasRubyPackage(): boolean; clearRubyPackage(): void; getRubyPackage(): string | undefined; setRubyPackage(value: string): FileOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): FileOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FileOptions.AsObject; static toObject(includeInstance: boolean, msg: FileOptions): FileOptions.AsObject; @@ -835,30 +754,25 @@ export class MessageOptions extends jspb.Message { getMessageSetWireFormat(): boolean | undefined; setMessageSetWireFormat(value: boolean): MessageOptions; - hasNoStandardDescriptorAccessor(): boolean; clearNoStandardDescriptorAccessor(): void; getNoStandardDescriptorAccessor(): boolean | undefined; setNoStandardDescriptorAccessor(value: boolean): MessageOptions; - hasDeprecated(): boolean; clearDeprecated(): void; getDeprecated(): boolean | undefined; setDeprecated(value: boolean): MessageOptions; - hasMapEntry(): boolean; clearMapEntry(): void; getMapEntry(): boolean | undefined; setMapEntry(value: boolean): MessageOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): MessageOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MessageOptions.AsObject; static toObject(includeInstance: boolean, msg: MessageOptions): MessageOptions.AsObject; @@ -886,42 +800,35 @@ export class FieldOptions extends jspb.Message { getCtype(): FieldOptions.CType | undefined; setCtype(value: FieldOptions.CType): FieldOptions; - hasPacked(): boolean; clearPacked(): void; getPacked(): boolean | undefined; setPacked(value: boolean): FieldOptions; - hasJstype(): boolean; clearJstype(): void; getJstype(): FieldOptions.JSType | undefined; setJstype(value: FieldOptions.JSType): FieldOptions; - hasLazy(): boolean; clearLazy(): void; getLazy(): boolean | undefined; setLazy(value: boolean): FieldOptions; - hasDeprecated(): boolean; clearDeprecated(): void; getDeprecated(): boolean | undefined; setDeprecated(value: boolean): FieldOptions; - hasWeak(): boolean; clearWeak(): void; getWeak(): boolean | undefined; setWeak(value: boolean): FieldOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): FieldOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FieldOptions.AsObject; static toObject(includeInstance: boolean, msg: FieldOptions): FieldOptions.AsObject; @@ -963,7 +870,6 @@ export class OneofOptions extends jspb.Message { setUninterpretedOptionList(value: Array): OneofOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): OneofOptions.AsObject; static toObject(includeInstance: boolean, msg: OneofOptions): OneofOptions.AsObject; @@ -987,18 +893,15 @@ export class EnumOptions extends jspb.Message { getAllowAlias(): boolean | undefined; setAllowAlias(value: boolean): EnumOptions; - hasDeprecated(): boolean; clearDeprecated(): void; getDeprecated(): boolean | undefined; setDeprecated(value: boolean): EnumOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): EnumOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EnumOptions.AsObject; static toObject(includeInstance: boolean, msg: EnumOptions): EnumOptions.AsObject; @@ -1023,13 +926,11 @@ export class EnumValueOptions extends jspb.Message { clearDeprecated(): void; getDeprecated(): boolean | undefined; setDeprecated(value: boolean): EnumValueOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): EnumValueOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EnumValueOptions.AsObject; static toObject(includeInstance: boolean, msg: EnumValueOptions): EnumValueOptions.AsObject; @@ -1053,13 +954,11 @@ export class ServiceOptions extends jspb.Message { clearDeprecated(): void; getDeprecated(): boolean | undefined; setDeprecated(value: boolean): ServiceOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): ServiceOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ServiceOptions.AsObject; static toObject(includeInstance: boolean, msg: ServiceOptions): ServiceOptions.AsObject; @@ -1084,18 +983,15 @@ export class MethodOptions extends jspb.Message { getDeprecated(): boolean | undefined; setDeprecated(value: boolean): MethodOptions; - hasIdempotencyLevel(): boolean; clearIdempotencyLevel(): void; getIdempotencyLevel(): MethodOptions.IdempotencyLevel | undefined; setIdempotencyLevel(value: MethodOptions.IdempotencyLevel): MethodOptions; - clearUninterpretedOptionList(): void; getUninterpretedOptionList(): Array; setUninterpretedOptionList(value: Array): MethodOptions; addUninterpretedOption(value?: UninterpretedOption, index?: number): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MethodOptions.AsObject; static toObject(includeInstance: boolean, msg: MethodOptions): MethodOptions.AsObject; @@ -1127,31 +1023,26 @@ export class UninterpretedOption extends jspb.Message { setNameList(value: Array): UninterpretedOption; addName(value?: UninterpretedOption.NamePart, index?: number): UninterpretedOption.NamePart; - hasIdentifierValue(): boolean; clearIdentifierValue(): void; getIdentifierValue(): string | undefined; setIdentifierValue(value: string): UninterpretedOption; - hasPositiveIntValue(): boolean; clearPositiveIntValue(): void; getPositiveIntValue(): number | undefined; setPositiveIntValue(value: number): UninterpretedOption; - hasNegativeIntValue(): boolean; clearNegativeIntValue(): void; getNegativeIntValue(): number | undefined; setNegativeIntValue(value: number): UninterpretedOption; - hasDoubleValue(): boolean; clearDoubleValue(): void; getDoubleValue(): number | undefined; setDoubleValue(value: number): UninterpretedOption; - hasStringValue(): boolean; clearStringValue(): void; getStringValue(): Uint8Array | string; @@ -1159,13 +1050,11 @@ export class UninterpretedOption extends jspb.Message { getStringValue_asB64(): string; setStringValue(value: Uint8Array | string): UninterpretedOption; - hasAggregateValue(): boolean; clearAggregateValue(): void; getAggregateValue(): string | undefined; setAggregateValue(value: string): UninterpretedOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UninterpretedOption.AsObject; static toObject(includeInstance: boolean, msg: UninterpretedOption): UninterpretedOption.AsObject; @@ -1195,13 +1084,11 @@ export namespace UninterpretedOption { getNamePart(): string | undefined; setNamePart(value: string): NamePart; - hasIsExtension(): boolean; clearIsExtension(): void; getIsExtension(): boolean | undefined; setIsExtension(value: boolean): NamePart; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NamePart.AsObject; static toObject(includeInstance: boolean, msg: NamePart): NamePart.AsObject; @@ -1227,7 +1114,6 @@ export class SourceCodeInfo extends jspb.Message { setLocationList(value: Array): SourceCodeInfo; addLocation(value?: SourceCodeInfo.Location, index?: number): SourceCodeInfo.Location; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SourceCodeInfo.AsObject; static toObject(includeInstance: boolean, msg: SourceCodeInfo): SourceCodeInfo.AsObject; @@ -1249,30 +1135,25 @@ export namespace SourceCodeInfo { getPathList(): Array; setPathList(value: Array): Location; addPath(value: number, index?: number): number; - clearSpanList(): void; getSpanList(): Array; setSpanList(value: Array): Location; addSpan(value: number, index?: number): number; - hasLeadingComments(): boolean; clearLeadingComments(): void; getLeadingComments(): string | undefined; setLeadingComments(value: string): Location; - hasTrailingComments(): boolean; clearTrailingComments(): void; getTrailingComments(): string | undefined; setTrailingComments(value: string): Location; - clearLeadingDetachedCommentsList(): void; getLeadingDetachedCommentsList(): Array; setLeadingDetachedCommentsList(value: Array): Location; addLeadingDetachedComments(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Location.AsObject; static toObject(includeInstance: boolean, msg: Location): Location.AsObject; @@ -1301,7 +1182,6 @@ export class GeneratedCodeInfo extends jspb.Message { setAnnotationList(value: Array): GeneratedCodeInfo; addAnnotation(value?: GeneratedCodeInfo.Annotation, index?: number): GeneratedCodeInfo.Annotation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GeneratedCodeInfo.AsObject; static toObject(includeInstance: boolean, msg: GeneratedCodeInfo): GeneratedCodeInfo.AsObject; @@ -1324,25 +1204,21 @@ export namespace GeneratedCodeInfo { setPathList(value: Array): Annotation; addPath(value: number, index?: number): number; - hasSourceFile(): boolean; clearSourceFile(): void; getSourceFile(): string | undefined; setSourceFile(value: string): Annotation; - hasBegin(): boolean; clearBegin(): void; getBegin(): number | undefined; setBegin(value: number): Annotation; - hasEnd(): boolean; clearEnd(): void; getEnd(): number | undefined; setEnd(value: number): Annotation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Annotation.AsObject; static toObject(includeInstance: boolean, msg: Annotation): Annotation.AsObject; diff --git a/js/proto/google/protobuf/descriptor_pb.js b/js/proto/google/protobuf/descriptor_pb.js index 4eb1fe08c..2a1d1ef65 100644 --- a/js/proto/google/protobuf/descriptor_pb.js +++ b/js/proto/google/protobuf/descriptor_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/google/protobuf/timestamp_pb.d.ts b/js/proto/google/protobuf/timestamp_pb.d.ts index e91fcdeec..bfc4b376c 100644 --- a/js/proto/google/protobuf/timestamp_pb.d.ts +++ b/js/proto/google/protobuf/timestamp_pb.d.ts @@ -9,11 +9,9 @@ import * as jspb from "google-protobuf"; export class Timestamp extends jspb.Message { getSeconds(): number; setSeconds(value: number): Timestamp; - getNanos(): number; setNanos(value: number): Timestamp; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Timestamp.AsObject; static toObject(includeInstance: boolean, msg: Timestamp): Timestamp.AsObject; diff --git a/js/proto/google/protobuf/timestamp_pb.js b/js/proto/google/protobuf/timestamp_pb.js index 6881a1d93..a270c1c47 100644 --- a/js/proto/google/protobuf/timestamp_pb.js +++ b/js/proto/google/protobuf/timestamp_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/keys_grpc_pb.js b/js/proto/keys_grpc_pb.js index a263a57d0..66b1c9c7f 100644 --- a/js/proto/keys_grpc_pb.js +++ b/js/proto/keys_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var keys_pb = require('./keys_pb.js'); var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js'); var crypto_pb = require('./crypto_pb.js'); @@ -237,7 +238,7 @@ function deserialize_keys_VerifyResponse(buffer_arg) { } -var KeysService = exports['keys.Keys'] = { +var KeysService = exports.KeysService = { generateKey: { path: '/keys.Keys/GenerateKey', requestStream: false, @@ -361,3 +362,4 @@ var KeysService = exports['keys.Keys'] = { }, }; +exports.KeysClient = grpc.makeGenericClientConstructor(KeysService); diff --git a/js/proto/keys_pb.d.ts b/js/proto/keys_pb.d.ts index 93b0635d1..24d951965 100644 --- a/js/proto/keys_pb.d.ts +++ b/js/proto/keys_pb.d.ts @@ -12,7 +12,6 @@ export class ListRequest extends jspb.Message { getKeyname(): string; setKeyname(value: string): ListRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListRequest.AsObject; static toObject(includeInstance: boolean, msg: ListRequest): ListRequest.AsObject; @@ -84,7 +83,6 @@ export class RemoveNameRequest extends jspb.Message { getKeyname(): string; setKeyname(value: string): RemoveNameRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RemoveNameRequest.AsObject; static toObject(includeInstance: boolean, msg: RemoveNameRequest): RemoveNameRequest.AsObject; @@ -104,14 +102,11 @@ export namespace RemoveNameRequest { export class GenRequest extends jspb.Message { getPassphrase(): string; setPassphrase(value: string): GenRequest; - getCurvetype(): string; setCurvetype(value: string): GenRequest; - getKeyname(): string; setKeyname(value: string): GenRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GenRequest.AsObject; static toObject(includeInstance: boolean, msg: GenRequest): GenRequest.AsObject; @@ -134,7 +129,6 @@ export class GenResponse extends jspb.Message { getAddress(): string; setAddress(value: string): GenResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GenResponse.AsObject; static toObject(includeInstance: boolean, msg: GenResponse): GenResponse.AsObject; @@ -154,11 +148,9 @@ export namespace GenResponse { export class PubRequest extends jspb.Message { getAddress(): string; setAddress(value: string): PubRequest; - getName(): string; setName(value: string): PubRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PubRequest.AsObject; static toObject(includeInstance: boolean, msg: PubRequest): PubRequest.AsObject; @@ -181,11 +173,9 @@ export class PubResponse extends jspb.Message { getPublickey_asU8(): Uint8Array; getPublickey_asB64(): string; setPublickey(value: Uint8Array | string): PubResponse; - getCurvetype(): string; setCurvetype(value: string): PubResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PubResponse.AsObject; static toObject(includeInstance: boolean, msg: PubResponse): PubResponse.AsObject; @@ -206,11 +196,9 @@ export namespace PubResponse { export class ImportJSONRequest extends jspb.Message { getPassphrase(): string; setPassphrase(value: string): ImportJSONRequest; - getJson(): string; setJson(value: string): ImportJSONRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ImportJSONRequest.AsObject; static toObject(includeInstance: boolean, msg: ImportJSONRequest): ImportJSONRequest.AsObject; @@ -232,7 +220,6 @@ export class ImportResponse extends jspb.Message { getAddress(): string; setAddress(value: string): ImportResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ImportResponse.AsObject; static toObject(includeInstance: boolean, msg: ImportResponse): ImportResponse.AsObject; @@ -252,19 +239,15 @@ export namespace ImportResponse { export class ImportRequest extends jspb.Message { getPassphrase(): string; setPassphrase(value: string): ImportRequest; - getName(): string; setName(value: string): ImportRequest; - getCurvetype(): string; setCurvetype(value: string): ImportRequest; - getKeybytes(): Uint8Array | string; getKeybytes_asU8(): Uint8Array; getKeybytes_asB64(): string; setKeybytes(value: Uint8Array | string): ImportRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ImportRequest.AsObject; static toObject(includeInstance: boolean, msg: ImportRequest): ImportRequest.AsObject; @@ -287,14 +270,11 @@ export namespace ImportRequest { export class ExportRequest extends jspb.Message { getPassphrase(): string; setPassphrase(value: string): ExportRequest; - getName(): string; setName(value: string): ExportRequest; - getAddress(): string; setAddress(value: string): ExportRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ExportRequest.AsObject; static toObject(includeInstance: boolean, msg: ExportRequest): ExportRequest.AsObject; @@ -318,21 +298,17 @@ export class ExportResponse extends jspb.Message { getPublickey_asU8(): Uint8Array; getPublickey_asB64(): string; setPublickey(value: Uint8Array | string): ExportResponse; - getPrivatekey(): Uint8Array | string; getPrivatekey_asU8(): Uint8Array; getPrivatekey_asB64(): string; setPrivatekey(value: Uint8Array | string): ExportResponse; - getAddress(): Uint8Array | string; getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): ExportResponse; - getCurvetype(): string; setCurvetype(value: string): ExportResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ExportResponse.AsObject; static toObject(includeInstance: boolean, msg: ExportResponse): ExportResponse.AsObject; @@ -355,19 +331,15 @@ export namespace ExportResponse { export class SignRequest extends jspb.Message { getPassphrase(): string; setPassphrase(value: string): SignRequest; - getAddress(): string; setAddress(value: string): SignRequest; - getName(): string; setName(value: string): SignRequest; - getMessage(): Uint8Array | string; getMessage_asU8(): Uint8Array; getMessage_asB64(): string; setMessage(value: Uint8Array | string): SignRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignRequest.AsObject; static toObject(includeInstance: boolean, msg: SignRequest): SignRequest.AsObject; @@ -394,7 +366,6 @@ export class SignResponse extends jspb.Message { getSignature(): crypto_pb.Signature | undefined; setSignature(value?: crypto_pb.Signature): SignResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignResponse.AsObject; static toObject(includeInstance: boolean, msg: SignResponse): SignResponse.AsObject; @@ -416,19 +387,16 @@ export class VerifyRequest extends jspb.Message { getPublickey_asU8(): Uint8Array; getPublickey_asB64(): string; setPublickey(value: Uint8Array | string): VerifyRequest; - getMessage(): Uint8Array | string; getMessage_asU8(): Uint8Array; getMessage_asB64(): string; setMessage(value: Uint8Array | string): VerifyRequest; - hasSignature(): boolean; clearSignature(): void; getSignature(): crypto_pb.Signature | undefined; setSignature(value?: crypto_pb.Signature): VerifyRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): VerifyRequest.AsObject; static toObject(includeInstance: boolean, msg: VerifyRequest): VerifyRequest.AsObject; @@ -450,13 +418,11 @@ export namespace VerifyRequest { export class HashRequest extends jspb.Message { getHashtype(): string; setHashtype(value: string): HashRequest; - getMessage(): Uint8Array | string; getMessage_asU8(): Uint8Array; getMessage_asB64(): string; setMessage(value: Uint8Array | string): HashRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HashRequest.AsObject; static toObject(includeInstance: boolean, msg: HashRequest): HashRequest.AsObject; @@ -478,7 +444,6 @@ export class HashResponse extends jspb.Message { getHash(): string; setHash(value: string): HashResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HashResponse.AsObject; static toObject(includeInstance: boolean, msg: HashResponse): HashResponse.AsObject; @@ -498,13 +463,11 @@ export namespace HashResponse { export class KeyID extends jspb.Message { getAddress(): string; setAddress(value: string): KeyID; - clearKeynameList(): void; getKeynameList(): Array; setKeynameList(value: Array): KeyID; addKeyname(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): KeyID.AsObject; static toObject(includeInstance: boolean, msg: KeyID): KeyID.AsObject; @@ -528,7 +491,6 @@ export class ListResponse extends jspb.Message { setKeyList(value: Array): ListResponse; addKey(value?: KeyID, index?: number): KeyID; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListResponse.AsObject; static toObject(includeInstance: boolean, msg: ListResponse): ListResponse.AsObject; @@ -548,11 +510,9 @@ export namespace ListResponse { export class AddNameRequest extends jspb.Message { getKeyname(): string; setKeyname(value: string): AddNameRequest; - getAddress(): string; setAddress(value: string): AddNameRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AddNameRequest.AsObject; static toObject(includeInstance: boolean, msg: AddNameRequest): AddNameRequest.AsObject; diff --git a/js/proto/keys_pb.js b/js/proto/keys_pb.js index aa08580cc..3fd064c2c 100644 --- a/js/proto/keys_pb.js +++ b/js/proto/keys_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/names_pb.d.ts b/js/proto/names_pb.d.ts index b9a40b41a..98a62cd17 100644 --- a/js/proto/names_pb.d.ts +++ b/js/proto/names_pb.d.ts @@ -10,19 +10,15 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class Entry extends jspb.Message { getName(): string; setName(value: string): Entry; - getOwner(): Uint8Array | string; getOwner_asU8(): Uint8Array; getOwner_asB64(): string; setOwner(value: Uint8Array | string): Entry; - getData(): string; setData(value: string): Entry; - getExpires(): number; setExpires(value: number): Entry; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Entry.AsObject; static toObject(includeInstance: boolean, msg: Entry): Entry.AsObject; diff --git a/js/proto/names_pb.js b/js/proto/names_pb.js index b034421dc..77921f0ec 100644 --- a/js/proto/names_pb.js +++ b/js/proto/names_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/payload_pb.d.ts b/js/proto/payload_pb.d.ts index bec6b2546..de4ed891d 100644 --- a/js/proto/payload_pb.d.ts +++ b/js/proto/payload_pb.d.ts @@ -17,61 +17,51 @@ export class Any extends jspb.Message { getCalltx(): CallTx | undefined; setCalltx(value?: CallTx): Any; - hasSendtx(): boolean; clearSendtx(): void; getSendtx(): SendTx | undefined; setSendtx(value?: SendTx): Any; - hasNametx(): boolean; clearNametx(): void; getNametx(): NameTx | undefined; setNametx(value?: NameTx): Any; - hasPermstx(): boolean; clearPermstx(): void; getPermstx(): PermsTx | undefined; setPermstx(value?: PermsTx): Any; - hasGovtx(): boolean; clearGovtx(): void; getGovtx(): GovTx | undefined; setGovtx(value?: GovTx): Any; - hasBondtx(): boolean; clearBondtx(): void; getBondtx(): BondTx | undefined; setBondtx(value?: BondTx): Any; - hasUnbondtx(): boolean; clearUnbondtx(): void; getUnbondtx(): UnbondTx | undefined; setUnbondtx(value?: UnbondTx): Any; - hasBatchtx(): boolean; clearBatchtx(): void; getBatchtx(): BatchTx | undefined; setBatchtx(value?: BatchTx): Any; - hasProposaltx(): boolean; clearProposaltx(): void; getProposaltx(): ProposalTx | undefined; setProposaltx(value?: ProposalTx): Any; - hasIdentifytx(): boolean; clearIdentifytx(): void; getIdentifytx(): IdentifyTx | undefined; setIdentifytx(value?: IdentifyTx): Any; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Any.AsObject; static toObject(includeInstance: boolean, msg: Any): Any.AsObject; @@ -102,14 +92,11 @@ export class TxInput extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): TxInput; - getAmount(): number; setAmount(value: number): TxInput; - getSequence(): number; setSequence(value: number): TxInput; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxInput.AsObject; static toObject(includeInstance: boolean, msg: TxInput): TxInput.AsObject; @@ -133,11 +120,9 @@ export class TxOutput extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): TxOutput; - getAmount(): number; setAmount(value: number): TxOutput; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxOutput.AsObject; static toObject(includeInstance: boolean, msg: TxOutput): TxOutput.AsObject; @@ -161,37 +146,29 @@ export class CallTx extends jspb.Message { clearInput(): void; getInput(): TxInput | undefined; setInput(value?: TxInput): CallTx; - getAddress(): Uint8Array | string; getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): CallTx; - getGaslimit(): number; setGaslimit(value: number): CallTx; - getFee(): number; setFee(value: number): CallTx; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): CallTx; - getWasm(): Uint8Array | string; getWasm_asU8(): Uint8Array; getWasm_asB64(): string; setWasm(value: Uint8Array | string): CallTx; - clearContractmetaList(): void; getContractmetaList(): Array; setContractmetaList(value: Array): CallTx; addContractmeta(value?: ContractMeta, index?: number): ContractMeta; - getGasprice(): number; setGasprice(value: number): CallTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CallTx.AsObject; static toObject(includeInstance: boolean, msg: CallTx): CallTx.AsObject; @@ -220,11 +197,9 @@ export class ContractMeta extends jspb.Message { getCodehash_asU8(): Uint8Array; getCodehash_asB64(): string; setCodehash(value: Uint8Array | string): ContractMeta; - getMeta(): string; setMeta(value: string): ContractMeta; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ContractMeta.AsObject; static toObject(includeInstance: boolean, msg: ContractMeta): ContractMeta.AsObject; @@ -247,13 +222,11 @@ export class SendTx extends jspb.Message { getInputsList(): Array; setInputsList(value: Array): SendTx; addInputs(value?: TxInput, index?: number): TxInput; - clearOutputsList(): void; getOutputsList(): Array; setOutputsList(value: Array): SendTx; addOutputs(value?: TxOutput, index?: number): TxOutput; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SendTx.AsObject; static toObject(includeInstance: boolean, msg: SendTx): SendTx.AsObject; @@ -278,13 +251,11 @@ export class PermsTx extends jspb.Message { getInput(): TxInput | undefined; setInput(value?: TxInput): PermsTx; - hasPermargs(): boolean; clearPermargs(): void; getPermargs(): permission_pb.PermArgs | undefined; setPermargs(value?: permission_pb.PermArgs): PermsTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PermsTx.AsObject; static toObject(includeInstance: boolean, msg: PermsTx): PermsTx.AsObject; @@ -308,17 +279,13 @@ export class NameTx extends jspb.Message { clearInput(): void; getInput(): TxInput | undefined; setInput(value?: TxInput): NameTx; - getName(): string; setName(value: string): NameTx; - getData(): string; setData(value: string): NameTx; - getFee(): number; setFee(value: number): NameTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NameTx.AsObject; static toObject(includeInstance: boolean, msg: NameTx): NameTx.AsObject; @@ -345,7 +312,6 @@ export class BondTx extends jspb.Message { getInput(): TxInput | undefined; setInput(value?: TxInput): BondTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BondTx.AsObject; static toObject(includeInstance: boolean, msg: BondTx): BondTx.AsObject; @@ -369,13 +335,11 @@ export class UnbondTx extends jspb.Message { getInput(): TxInput | undefined; setInput(value?: TxInput): UnbondTx; - hasOutput(): boolean; clearOutput(): void; getOutput(): TxOutput | undefined; setOutput(value?: TxOutput): UnbondTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UnbondTx.AsObject; static toObject(includeInstance: boolean, msg: UnbondTx): UnbondTx.AsObject; @@ -398,13 +362,11 @@ export class GovTx extends jspb.Message { getInputsList(): Array; setInputsList(value: Array): GovTx; addInputs(value?: TxInput, index?: number): TxInput; - clearAccountupdatesList(): void; getAccountupdatesList(): Array; setAccountupdatesList(value: Array): GovTx; addAccountupdates(value?: spec_pb.TemplateAccount, index?: number): spec_pb.TemplateAccount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GovTx.AsObject; static toObject(includeInstance: boolean, msg: GovTx): GovTx.AsObject; @@ -428,22 +390,18 @@ export class ProposalTx extends jspb.Message { clearInput(): void; getInput(): TxInput | undefined; setInput(value?: TxInput): ProposalTx; - getVotingweight(): number; setVotingweight(value: number): ProposalTx; - getProposalhash(): Uint8Array | string; getProposalhash_asU8(): Uint8Array; getProposalhash_asB64(): string; setProposalhash(value: Uint8Array | string): ProposalTx; - hasProposal(): boolean; clearProposal(): void; getProposal(): Proposal | undefined; setProposal(value?: Proposal): ProposalTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProposalTx.AsObject; static toObject(includeInstance: boolean, msg: ProposalTx): ProposalTx.AsObject; @@ -469,13 +427,11 @@ export class IdentifyTx extends jspb.Message { setInputsList(value: Array): IdentifyTx; addInputs(value?: TxInput, index?: number): TxInput; - hasNode(): boolean; clearNode(): void; getNode(): registry_pb.NodeIdentity | undefined; setNode(value?: registry_pb.NodeIdentity): IdentifyTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): IdentifyTx.AsObject; static toObject(includeInstance: boolean, msg: IdentifyTx): IdentifyTx.AsObject; @@ -498,13 +454,11 @@ export class BatchTx extends jspb.Message { getInputsList(): Array; setInputsList(value: Array): BatchTx; addInputs(value?: TxInput, index?: number): TxInput; - clearTxsList(): void; getTxsList(): Array; setTxsList(value: Array): BatchTx; addTxs(value?: Any, index?: number): Any; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BatchTx.AsObject; static toObject(includeInstance: boolean, msg: BatchTx): BatchTx.AsObject; @@ -527,11 +481,9 @@ export class Vote extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): Vote; - getVotingweight(): number; setVotingweight(value: number): Vote; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Vote.AsObject; static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; @@ -552,17 +504,14 @@ export namespace Vote { export class Proposal extends jspb.Message { getName(): string; setName(value: string): Proposal; - getDescription(): string; setDescription(value: string): Proposal; - hasBatchtx(): boolean; clearBatchtx(): void; getBatchtx(): BatchTx | undefined; setBatchtx(value?: BatchTx): Proposal; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Proposal.AsObject; static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; @@ -587,21 +536,17 @@ export class Ballot extends jspb.Message { clearProposal(): void; getProposal(): Proposal | undefined; setProposal(value?: Proposal): Ballot; - getFinalizingtx(): Uint8Array | string; getFinalizingtx_asU8(): Uint8Array; getFinalizingtx_asB64(): string; setFinalizingtx(value: Uint8Array | string): Ballot; - getProposalstate(): Ballot.ProposalState; setProposalstate(value: Ballot.ProposalState): Ballot; - clearVotesList(): void; getVotesList(): Array; setVotesList(value: Array): Ballot; addVotes(value?: Vote, index?: number): Vote; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Ballot.AsObject; static toObject(includeInstance: boolean, msg: Ballot): Ballot.AsObject; diff --git a/js/proto/payload_pb.js b/js/proto/payload_pb.js index 595e53a13..2af4e7f31 100644 --- a/js/proto/payload_pb.js +++ b/js/proto/payload_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/permission_pb.d.ts b/js/proto/permission_pb.d.ts index d6d7a5b8f..82c82d83e 100644 --- a/js/proto/permission_pb.d.ts +++ b/js/proto/permission_pb.d.ts @@ -13,13 +13,11 @@ export class AccountPermissions extends jspb.Message { clearBase(): void; getBase(): BasePermissions | undefined; setBase(value?: BasePermissions): AccountPermissions; - clearRolesList(): void; getRolesList(): Array; setRolesList(value: Array): AccountPermissions; addRoles(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AccountPermissions.AsObject; static toObject(includeInstance: boolean, msg: AccountPermissions): AccountPermissions.AsObject; @@ -44,13 +42,11 @@ export class BasePermissions extends jspb.Message { getPerms(): number | undefined; setPerms(value: number): BasePermissions; - hasSetbit(): boolean; clearSetbit(): void; getSetbit(): number | undefined; setSetbit(value: number): BasePermissions; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BasePermissions.AsObject; static toObject(includeInstance: boolean, msg: BasePermissions): BasePermissions.AsObject; @@ -75,7 +71,6 @@ export class PermArgs extends jspb.Message { getAction(): number | undefined; setAction(value: number): PermArgs; - hasTarget(): boolean; clearTarget(): void; getTarget(): Uint8Array | string; @@ -83,25 +78,21 @@ export class PermArgs extends jspb.Message { getTarget_asB64(): string; setTarget(value: Uint8Array | string): PermArgs; - hasPermission(): boolean; clearPermission(): void; getPermission(): number | undefined; setPermission(value: number): PermArgs; - hasRole(): boolean; clearRole(): void; getRole(): string | undefined; setRole(value: string): PermArgs; - hasValue(): boolean; clearValue(): void; getValue(): boolean | undefined; setValue(value: boolean): PermArgs; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PermArgs.AsObject; static toObject(includeInstance: boolean, msg: PermArgs): PermArgs.AsObject; diff --git a/js/proto/permission_pb.js b/js/proto/permission_pb.js index aafc3b089..1e45ffd2d 100644 --- a/js/proto/permission_pb.js +++ b/js/proto/permission_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/registry_pb.d.ts b/js/proto/registry_pb.d.ts index 4d04df7e6..6f6ff5323 100644 --- a/js/proto/registry_pb.d.ts +++ b/js/proto/registry_pb.d.ts @@ -10,21 +10,17 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class NodeIdentity extends jspb.Message { getMoniker(): string; setMoniker(value: string): NodeIdentity; - getNetworkaddress(): string; setNetworkaddress(value: string): NodeIdentity; - getTendermintnodeid(): Uint8Array | string; getTendermintnodeid_asU8(): Uint8Array; getTendermintnodeid_asB64(): string; setTendermintnodeid(value: Uint8Array | string): NodeIdentity; - getValidatorpublickey(): Uint8Array | string; getValidatorpublickey_asU8(): Uint8Array; getValidatorpublickey_asB64(): string; setValidatorpublickey(value: Uint8Array | string): NodeIdentity; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NodeIdentity.AsObject; static toObject(includeInstance: boolean, msg: NodeIdentity): NodeIdentity.AsObject; diff --git a/js/proto/registry_pb.js b/js/proto/registry_pb.js index 0b9136295..41ebbeb16 100644 --- a/js/proto/registry_pb.js +++ b/js/proto/registry_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/rpc_pb.d.ts b/js/proto/rpc_pb.d.ts index 97771b2c0..26e792152 100644 --- a/js/proto/rpc_pb.d.ts +++ b/js/proto/rpc_pb.d.ts @@ -13,40 +13,32 @@ import * as bcm_pb from "./bcm_pb"; export class ResultStatus extends jspb.Message { getChainid(): string; setChainid(value: string): ResultStatus; - getRunid(): string; setRunid(value: string): ResultStatus; - getBurrowversion(): string; setBurrowversion(value: string): ResultStatus; - getGenesishash(): Uint8Array | string; getGenesishash_asU8(): Uint8Array; getGenesishash_asB64(): string; setGenesishash(value: Uint8Array | string): ResultStatus; - hasNodeinfo(): boolean; clearNodeinfo(): void; getNodeinfo(): tendermint_pb.NodeInfo | undefined; setNodeinfo(value?: tendermint_pb.NodeInfo): ResultStatus; - hasSyncinfo(): boolean; clearSyncinfo(): void; getSyncinfo(): bcm_pb.SyncInfo | undefined; setSyncinfo(value?: bcm_pb.SyncInfo): ResultStatus; - getCatchingup(): boolean; setCatchingup(value: boolean): ResultStatus; - hasValidatorinfo(): boolean; clearValidatorinfo(): void; getValidatorinfo(): validator_pb.Validator | undefined; setValidatorinfo(value?: validator_pb.Validator): ResultStatus; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResultStatus.AsObject; static toObject(includeInstance: boolean, msg: ResultStatus): ResultStatus.AsObject; diff --git a/js/proto/rpc_pb.js b/js/proto/rpc_pb.js index fb9146be6..1a1fdf26b 100644 --- a/js/proto/rpc_pb.js +++ b/js/proto/rpc_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/rpcdump_grpc_pb.js b/js/proto/rpcdump_grpc_pb.js index 0ff25ed95..4d8eb5db3 100644 --- a/js/proto/rpcdump_grpc_pb.js +++ b/js/proto/rpcdump_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var rpcdump_pb = require('./rpcdump_pb.js'); var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js'); var dump_pb = require('./dump_pb.js'); @@ -28,7 +29,7 @@ function deserialize_rpcdump_GetDumpParam(buffer_arg) { } -var DumpService = exports['rpcdump.Dump'] = { +var DumpService = exports.DumpService = { getDump: { path: '/rpcdump.Dump/GetDump', requestStream: false, @@ -42,3 +43,4 @@ var DumpService = exports['rpcdump.Dump'] = { }, }; +exports.DumpClient = grpc.makeGenericClientConstructor(DumpService); diff --git a/js/proto/rpcdump_pb.d.ts b/js/proto/rpcdump_pb.d.ts index a9ce2be97..bb90b90f5 100644 --- a/js/proto/rpcdump_pb.d.ts +++ b/js/proto/rpcdump_pb.d.ts @@ -12,7 +12,6 @@ export class GetDumpParam extends jspb.Message { getHeight(): number; setHeight(value: number): GetDumpParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetDumpParam.AsObject; static toObject(includeInstance: boolean, msg: GetDumpParam): GetDumpParam.AsObject; diff --git a/js/proto/rpcdump_pb.js b/js/proto/rpcdump_pb.js index 0a67429c2..24fd3270c 100644 --- a/js/proto/rpcdump_pb.js +++ b/js/proto/rpcdump_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/rpcevents_grpc_pb.js b/js/proto/rpcevents_grpc_pb.js index 73e4b7c4d..7b37dfb0e 100644 --- a/js/proto/rpcevents_grpc_pb.js +++ b/js/proto/rpcevents_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var rpcevents_pb = require('./rpcevents_pb.js'); var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js'); var exec_pb = require('./exec_pb.js'); @@ -63,7 +64,7 @@ function deserialize_rpcevents_TxRequest(buffer_arg) { // -------------------------------------------------- // Execution events -var ExecutionEventsService = exports['rpcevents.ExecutionEvents'] = { +var ExecutionEventsService = exports.ExecutionEventsService = { // Get StreamEvents (including transactions) for a range of block heights stream: { path: '/rpcevents.ExecutionEvents/Stream', @@ -103,3 +104,4 @@ events: { }, }; +exports.ExecutionEventsClient = grpc.makeGenericClientConstructor(ExecutionEventsService); diff --git a/js/proto/rpcevents_pb.d.ts b/js/proto/rpcevents_pb.d.ts index 2ee0e4556..d31644b32 100644 --- a/js/proto/rpcevents_pb.d.ts +++ b/js/proto/rpcevents_pb.d.ts @@ -11,11 +11,9 @@ import * as exec_pb from "./exec_pb"; export class GetBlockRequest extends jspb.Message { getHeight(): number; setHeight(value: number): GetBlockRequest; - getWait(): boolean; setWait(value: boolean): GetBlockRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetBlockRequest.AsObject; static toObject(includeInstance: boolean, msg: GetBlockRequest): GetBlockRequest.AsObject; @@ -38,11 +36,9 @@ export class TxRequest extends jspb.Message { getTxhash_asU8(): Uint8Array; getTxhash_asB64(): string; setTxhash(value: Uint8Array | string): TxRequest; - getWait(): boolean; setWait(value: boolean): TxRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxRequest.AsObject; static toObject(includeInstance: boolean, msg: TxRequest): TxRequest.AsObject; @@ -66,11 +62,9 @@ export class BlocksRequest extends jspb.Message { clearBlockrange(): void; getBlockrange(): BlockRange | undefined; setBlockrange(value?: BlockRange): BlocksRequest; - getQuery(): string; setQuery(value: string): BlocksRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlocksRequest.AsObject; static toObject(includeInstance: boolean, msg: BlocksRequest): BlocksRequest.AsObject; @@ -91,13 +85,11 @@ export namespace BlocksRequest { export class EventsResponse extends jspb.Message { getHeight(): number; setHeight(value: number): EventsResponse; - clearEventsList(): void; getEventsList(): Array; setEventsList(value: Array): EventsResponse; addEvents(value?: exec_pb.Event, index?: number): exec_pb.Event; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EventsResponse.AsObject; static toObject(includeInstance: boolean, msg: EventsResponse): EventsResponse.AsObject; @@ -118,14 +110,11 @@ export namespace EventsResponse { export class GetTxsRequest extends jspb.Message { getStartheight(): number; setStartheight(value: number): GetTxsRequest; - getEndheight(): number; setEndheight(value: number): GetTxsRequest; - getQuery(): string; setQuery(value: string): GetTxsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetTxsRequest.AsObject; static toObject(includeInstance: boolean, msg: GetTxsRequest): GetTxsRequest.AsObject; @@ -147,13 +136,11 @@ export namespace GetTxsRequest { export class GetTxsResponse extends jspb.Message { getHeight(): number; setHeight(value: number): GetTxsResponse; - clearTxexecutionsList(): void; getTxexecutionsList(): Array; setTxexecutionsList(value: Array): GetTxsResponse; addTxexecutions(value?: exec_pb.TxExecution, index?: number): exec_pb.TxExecution; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetTxsResponse.AsObject; static toObject(includeInstance: boolean, msg: GetTxsResponse): GetTxsResponse.AsObject; @@ -174,11 +161,9 @@ export namespace GetTxsResponse { export class Bound extends jspb.Message { getType(): Bound.BoundType; setType(value: Bound.BoundType): Bound; - getIndex(): number; setIndex(value: number): Bound; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Bound.AsObject; static toObject(includeInstance: boolean, msg: Bound): Bound.AsObject; @@ -212,13 +197,11 @@ export class BlockRange extends jspb.Message { getStart(): Bound | undefined; setStart(value?: Bound): BlockRange; - hasEnd(): boolean; clearEnd(): void; getEnd(): Bound | undefined; setEnd(value?: Bound): BlockRange; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockRange.AsObject; static toObject(includeInstance: boolean, msg: BlockRange): BlockRange.AsObject; diff --git a/js/proto/rpcevents_pb.js b/js/proto/rpcevents_pb.js index b60eb96fa..57bb27107 100644 --- a/js/proto/rpcevents_pb.js +++ b/js/proto/rpcevents_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/rpcquery_grpc_pb.js b/js/proto/rpcquery_grpc_pb.js index 167b96146..71fcbd8f6 100644 --- a/js/proto/rpcquery_grpc_pb.js +++ b/js/proto/rpcquery_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var rpcquery_pb = require('./rpcquery_pb.js'); var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js'); var tendermint_types_types_pb = require('./tendermint/types/types_pb.js'); @@ -298,7 +299,7 @@ function deserialize_tendermint_types_Header(buffer_arg) { } -var QueryService = exports['rpcquery.Query'] = { +var QueryService = exports.QueryService = { status: { path: '/rpcquery.Query/Status', requestStream: false, @@ -456,3 +457,4 @@ getNetworkRegistry: { }, }; +exports.QueryClient = grpc.makeGenericClientConstructor(QueryService); diff --git a/js/proto/rpcquery_pb.d.ts b/js/proto/rpcquery_pb.d.ts index 4b0a6db91..e6ddedadb 100644 --- a/js/proto/rpcquery_pb.d.ts +++ b/js/proto/rpcquery_pb.d.ts @@ -17,11 +17,9 @@ import * as payload_pb from "./payload_pb"; export class StatusParam extends jspb.Message { getBlocktimewithin(): string; setBlocktimewithin(value: string): StatusParam; - getBlockseentimewithin(): string; setBlockseentimewithin(value: string): StatusParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StatusParam.AsObject; static toObject(includeInstance: boolean, msg: StatusParam): StatusParam.AsObject; @@ -45,7 +43,6 @@ export class GetAccountParam extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): GetAccountParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetAccountParam.AsObject; static toObject(includeInstance: boolean, msg: GetAccountParam): GetAccountParam.AsObject; @@ -67,13 +64,11 @@ export class GetMetadataParam extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): GetMetadataParam; - getMetadatahash(): Uint8Array | string; getMetadatahash_asU8(): Uint8Array; getMetadatahash_asB64(): string; setMetadatahash(value: Uint8Array | string): GetMetadataParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetMetadataParam.AsObject; static toObject(includeInstance: boolean, msg: GetMetadataParam): GetMetadataParam.AsObject; @@ -95,7 +90,6 @@ export class MetadataResult extends jspb.Message { getMetadata(): string; setMetadata(value: string): MetadataResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MetadataResult.AsObject; static toObject(includeInstance: boolean, msg: MetadataResult): MetadataResult.AsObject; @@ -117,13 +111,11 @@ export class GetStorageParam extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): GetStorageParam; - getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): GetStorageParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetStorageParam.AsObject; static toObject(includeInstance: boolean, msg: GetStorageParam): GetStorageParam.AsObject; @@ -147,7 +139,6 @@ export class StorageValue extends jspb.Message { getValue_asB64(): string; setValue(value: Uint8Array | string): StorageValue; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StorageValue.AsObject; static toObject(includeInstance: boolean, msg: StorageValue): StorageValue.AsObject; @@ -168,7 +159,6 @@ export class ListAccountsParam extends jspb.Message { getQuery(): string; setQuery(value: string): ListAccountsParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListAccountsParam.AsObject; static toObject(includeInstance: boolean, msg: ListAccountsParam): ListAccountsParam.AsObject; @@ -189,7 +179,6 @@ export class GetNameParam extends jspb.Message { getName(): string; setName(value: string): GetNameParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetNameParam.AsObject; static toObject(includeInstance: boolean, msg: GetNameParam): GetNameParam.AsObject; @@ -210,7 +199,6 @@ export class ListNamesParam extends jspb.Message { getQuery(): string; setQuery(value: string): ListNamesParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListNamesParam.AsObject; static toObject(includeInstance: boolean, msg: ListNamesParam): ListNamesParam.AsObject; @@ -265,7 +253,6 @@ export class GetValidatorSetHistoryParam extends jspb.Message { getIncludeprevious(): number; setIncludeprevious(value: number): GetValidatorSetHistoryParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetValidatorSetHistoryParam.AsObject; static toObject(includeInstance: boolean, msg: GetValidatorSetHistoryParam): GetValidatorSetHistoryParam.AsObject; @@ -288,7 +275,6 @@ export class NetworkRegistry extends jspb.Message { setSetList(value: Array): NetworkRegistry; addSet(value?: RegisteredValidator, index?: number): RegisteredValidator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NetworkRegistry.AsObject; static toObject(includeInstance: boolean, msg: NetworkRegistry): NetworkRegistry.AsObject; @@ -311,13 +297,11 @@ export class RegisteredValidator extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): RegisteredValidator; - hasNode(): boolean; clearNode(): void; getNode(): registry_pb.NodeIdentity | undefined; setNode(value?: registry_pb.NodeIdentity): RegisteredValidator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RegisteredValidator.AsObject; static toObject(includeInstance: boolean, msg: RegisteredValidator): RegisteredValidator.AsObject; @@ -341,7 +325,6 @@ export class ValidatorSetHistory extends jspb.Message { setHistoryList(value: Array): ValidatorSetHistory; addHistory(value?: ValidatorSet, index?: number): ValidatorSet; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValidatorSetHistory.AsObject; static toObject(includeInstance: boolean, msg: ValidatorSetHistory): ValidatorSetHistory.AsObject; @@ -361,13 +344,11 @@ export namespace ValidatorSetHistory { export class ValidatorSet extends jspb.Message { getHeight(): number; setHeight(value: number): ValidatorSet; - clearSetList(): void; getSetList(): Array; setSetList(value: Array): ValidatorSet; addSet(value?: validator_pb.Validator, index?: number): validator_pb.Validator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValidatorSet.AsObject; static toObject(includeInstance: boolean, msg: ValidatorSet): ValidatorSet.AsObject; @@ -391,7 +372,6 @@ export class GetProposalParam extends jspb.Message { getHash_asB64(): string; setHash(value: Uint8Array | string): GetProposalParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetProposalParam.AsObject; static toObject(includeInstance: boolean, msg: GetProposalParam): GetProposalParam.AsObject; @@ -412,7 +392,6 @@ export class ListProposalsParam extends jspb.Message { getProposed(): boolean; setProposed(value: boolean): ListProposalsParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListProposalsParam.AsObject; static toObject(includeInstance: boolean, msg: ListProposalsParam): ListProposalsParam.AsObject; @@ -435,13 +414,11 @@ export class ProposalResult extends jspb.Message { getHash_asB64(): string; setHash(value: Uint8Array | string): ProposalResult; - hasBallot(): boolean; clearBallot(): void; getBallot(): payload_pb.Ballot | undefined; setBallot(value?: payload_pb.Ballot): ProposalResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProposalResult.AsObject; static toObject(includeInstance: boolean, msg: ProposalResult): ProposalResult.AsObject; @@ -479,11 +456,9 @@ export namespace GetStatsParam { export class Stats extends jspb.Message { getAccountswithcode(): number; setAccountswithcode(value: number): Stats; - getAccountswithoutcode(): number; setAccountswithoutcode(value: number): Stats; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Stats.AsObject; static toObject(includeInstance: boolean, msg: Stats): Stats.AsObject; @@ -505,7 +480,6 @@ export class GetBlockParam extends jspb.Message { getHeight(): number; setHeight(value: number): GetBlockParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetBlockParam.AsObject; static toObject(includeInstance: boolean, msg: GetBlockParam): GetBlockParam.AsObject; diff --git a/js/proto/rpcquery_pb.js b/js/proto/rpcquery_pb.js index aa0524dab..6a5ed9ae3 100644 --- a/js/proto/rpcquery_pb.js +++ b/js/proto/rpcquery_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/rpctransact_grpc_pb.js b/js/proto/rpctransact_grpc_pb.js index 906833532..0e67b3875 100644 --- a/js/proto/rpctransact_grpc_pb.js +++ b/js/proto/rpctransact_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var rpctransact_pb = require('./rpctransact_pb.js'); var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js'); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); @@ -109,7 +110,7 @@ function deserialize_txs_Receipt(buffer_arg) { // Transaction Service Definition -var TransactService = exports['rpctransact.Transact'] = { +var TransactService = exports.TransactService = { // Broadcast a transaction to the mempool - if the transaction is not signed signing will be attempted server-side // and wait for it to be included in block broadcastTxSync: { @@ -258,3 +259,4 @@ nameTxAsync: { }, }; +exports.TransactClient = grpc.makeGenericClientConstructor(TransactService); diff --git a/js/proto/rpctransact_pb.d.ts b/js/proto/rpctransact_pb.d.ts index 800a5be2a..863cf12d8 100644 --- a/js/proto/rpctransact_pb.d.ts +++ b/js/proto/rpctransact_pb.d.ts @@ -16,18 +16,15 @@ export class CallCodeParam extends jspb.Message { getFromaddress_asU8(): Uint8Array; getFromaddress_asB64(): string; setFromaddress(value: Uint8Array | string): CallCodeParam; - getCode(): Uint8Array | string; getCode_asU8(): Uint8Array; getCode_asB64(): string; setCode(value: Uint8Array | string): CallCodeParam; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): CallCodeParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CallCodeParam.AsObject; static toObject(includeInstance: boolean, msg: CallCodeParam): CallCodeParam.AsObject; @@ -53,7 +50,6 @@ export class TxEnvelope extends jspb.Message { getEnvelope(): txs_pb.Envelope | undefined; setEnvelope(value?: txs_pb.Envelope): TxEnvelope; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxEnvelope.AsObject; static toObject(includeInstance: boolean, msg: TxEnvelope): TxEnvelope.AsObject; @@ -77,19 +73,16 @@ export class TxEnvelopeParam extends jspb.Message { getEnvelope(): txs_pb.Envelope | undefined; setEnvelope(value?: txs_pb.Envelope): TxEnvelopeParam; - hasPayload(): boolean; clearPayload(): void; getPayload(): payload_pb.Any | undefined; setPayload(value?: payload_pb.Any): TxEnvelopeParam; - hasTimeout(): boolean; clearTimeout(): void; getTimeout(): google_protobuf_duration_pb.Duration | undefined; setTimeout(value?: google_protobuf_duration_pb.Duration): TxEnvelopeParam; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxEnvelopeParam.AsObject; static toObject(includeInstance: boolean, msg: TxEnvelopeParam): TxEnvelopeParam.AsObject; diff --git a/js/proto/rpctransact_pb.js b/js/proto/rpctransact_pb.js index 203888c09..ec27d04d5 100644 --- a/js/proto/rpctransact_pb.js +++ b/js/proto/rpctransact_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/spec_pb.d.ts b/js/proto/spec_pb.d.ts index 037da85cf..68a22471c 100644 --- a/js/proto/spec_pb.d.ts +++ b/js/proto/spec_pb.d.ts @@ -12,39 +12,32 @@ import * as balance_pb from "./balance_pb"; export class TemplateAccount extends jspb.Message { getName(): string; setName(value: string): TemplateAccount; - getAddress(): Uint8Array | string; getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): TemplateAccount; - hasPublickey(): boolean; clearPublickey(): void; getPublickey(): crypto_pb.PublicKey | undefined; setPublickey(value?: crypto_pb.PublicKey): TemplateAccount; - clearAmountsList(): void; getAmountsList(): Array; setAmountsList(value: Array): TemplateAccount; addAmounts(value?: balance_pb.Balance, index?: number): balance_pb.Balance; - clearPermissionsList(): void; getPermissionsList(): Array; setPermissionsList(value: Array): TemplateAccount; addPermissions(value: string, index?: number): string; - clearRolesList(): void; getRolesList(): Array; setRolesList(value: Array): TemplateAccount; addRoles(value: string, index?: number): string; - getCode(): Uint8Array | string; getCode_asU8(): Uint8Array; getCode_asB64(): string; setCode(value: Uint8Array | string): TemplateAccount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TemplateAccount.AsObject; static toObject(includeInstance: boolean, msg: TemplateAccount): TemplateAccount.AsObject; diff --git a/js/proto/spec_pb.js b/js/proto/spec_pb.js index 4ea1ad43b..efc80bffd 100644 --- a/js/proto/spec_pb.js +++ b/js/proto/spec_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/storage_pb.d.ts b/js/proto/storage_pb.d.ts index a924f26b3..d52edf71e 100644 --- a/js/proto/storage_pb.d.ts +++ b/js/proto/storage_pb.d.ts @@ -10,13 +10,11 @@ import * as gogoproto_gogo_pb from "./gogoproto/gogo_pb"; export class CommitID extends jspb.Message { getVersion(): number; setVersion(value: number): CommitID; - getHash(): Uint8Array | string; getHash_asU8(): Uint8Array; getHash_asB64(): string; setHash(value: Uint8Array | string): CommitID; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CommitID.AsObject; static toObject(includeInstance: boolean, msg: CommitID): CommitID.AsObject; diff --git a/js/proto/storage_pb.js b/js/proto/storage_pb.js index 1995cceca..2dfed65b4 100644 --- a/js/proto/storage_pb.js +++ b/js/proto/storage_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/abci/types_grpc_pb.js b/js/proto/tendermint/abci/types_grpc_pb.js index ce0071733..947cc1d16 100644 --- a/js/proto/tendermint/abci/types_grpc_pb.js +++ b/js/proto/tendermint/abci/types_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var tendermint_abci_types_pb = require('../../tendermint/abci/types_pb.js'); var tendermint_crypto_proof_pb = require('../../tendermint/crypto/proof_pb.js'); var tendermint_types_types_pb = require('../../tendermint/types/types_pb.js'); @@ -343,7 +344,7 @@ function deserialize_tendermint_abci_ResponseSetOption(buffer_arg) { // ---------------------------------------- // Service Definition // -var ABCIApplicationService = exports['tendermint.abci.ABCIApplication'] = { +var ABCIApplicationService = exports.ABCIApplicationService = { echo: { path: '/tendermint.abci.ABCIApplication/Echo', requestStream: false, @@ -511,3 +512,4 @@ var ABCIApplicationService = exports['tendermint.abci.ABCIApplication'] = { }, }; +exports.ABCIApplicationClient = grpc.makeGenericClientConstructor(ABCIApplicationService); diff --git a/js/proto/tendermint/abci/types_pb.d.ts b/js/proto/tendermint/abci/types_pb.d.ts index d35c89a8a..21baf0061 100644 --- a/js/proto/tendermint/abci/types_pb.d.ts +++ b/js/proto/tendermint/abci/types_pb.d.ts @@ -19,91 +19,76 @@ export class Request extends jspb.Message { getEcho(): RequestEcho | undefined; setEcho(value?: RequestEcho): Request; - hasFlush(): boolean; clearFlush(): void; getFlush(): RequestFlush | undefined; setFlush(value?: RequestFlush): Request; - hasInfo(): boolean; clearInfo(): void; getInfo(): RequestInfo | undefined; setInfo(value?: RequestInfo): Request; - hasSetOption(): boolean; clearSetOption(): void; getSetOption(): RequestSetOption | undefined; setSetOption(value?: RequestSetOption): Request; - hasInitChain(): boolean; clearInitChain(): void; getInitChain(): RequestInitChain | undefined; setInitChain(value?: RequestInitChain): Request; - hasQuery(): boolean; clearQuery(): void; getQuery(): RequestQuery | undefined; setQuery(value?: RequestQuery): Request; - hasBeginBlock(): boolean; clearBeginBlock(): void; getBeginBlock(): RequestBeginBlock | undefined; setBeginBlock(value?: RequestBeginBlock): Request; - hasCheckTx(): boolean; clearCheckTx(): void; getCheckTx(): RequestCheckTx | undefined; setCheckTx(value?: RequestCheckTx): Request; - hasDeliverTx(): boolean; clearDeliverTx(): void; getDeliverTx(): RequestDeliverTx | undefined; setDeliverTx(value?: RequestDeliverTx): Request; - hasEndBlock(): boolean; clearEndBlock(): void; getEndBlock(): RequestEndBlock | undefined; setEndBlock(value?: RequestEndBlock): Request; - hasCommit(): boolean; clearCommit(): void; getCommit(): RequestCommit | undefined; setCommit(value?: RequestCommit): Request; - hasListSnapshots(): boolean; clearListSnapshots(): void; getListSnapshots(): RequestListSnapshots | undefined; setListSnapshots(value?: RequestListSnapshots): Request; - hasOfferSnapshot(): boolean; clearOfferSnapshot(): void; getOfferSnapshot(): RequestOfferSnapshot | undefined; setOfferSnapshot(value?: RequestOfferSnapshot): Request; - hasLoadSnapshotChunk(): boolean; clearLoadSnapshotChunk(): void; getLoadSnapshotChunk(): RequestLoadSnapshotChunk | undefined; setLoadSnapshotChunk(value?: RequestLoadSnapshotChunk): Request; - hasApplySnapshotChunk(): boolean; clearApplySnapshotChunk(): void; getApplySnapshotChunk(): RequestApplySnapshotChunk | undefined; setApplySnapshotChunk(value?: RequestApplySnapshotChunk): Request; - getValueCase(): Request.ValueCase; serializeBinary(): Uint8Array; @@ -137,37 +122,21 @@ export namespace Request { export enum ValueCase { VALUE_NOT_SET = 0, - - ECHO = 1, - - FLUSH = 2, - - INFO = 3, - - SET_OPTION = 4, - - INIT_CHAIN = 5, - - QUERY = 6, - - BEGIN_BLOCK = 7, - - CHECK_TX = 8, - - DELIVER_TX = 9, - - END_BLOCK = 10, - - COMMIT = 11, - - LIST_SNAPSHOTS = 12, - - OFFER_SNAPSHOT = 13, - - LOAD_SNAPSHOT_CHUNK = 14, - - APPLY_SNAPSHOT_CHUNK = 15, - + ECHO = 1, + FLUSH = 2, + INFO = 3, + SET_OPTION = 4, + INIT_CHAIN = 5, + QUERY = 6, + BEGIN_BLOCK = 7, + CHECK_TX = 8, + DELIVER_TX = 9, + END_BLOCK = 10, + COMMIT = 11, + LIST_SNAPSHOTS = 12, + OFFER_SNAPSHOT = 13, + LOAD_SNAPSHOT_CHUNK = 14, + APPLY_SNAPSHOT_CHUNK = 15, } } @@ -176,7 +145,6 @@ export class RequestEcho extends jspb.Message { getMessage(): string; setMessage(value: string): RequestEcho; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestEcho.AsObject; static toObject(includeInstance: boolean, msg: RequestEcho): RequestEcho.AsObject; @@ -213,14 +181,11 @@ export namespace RequestFlush { export class RequestInfo extends jspb.Message { getVersion(): string; setVersion(value: string): RequestInfo; - getBlockVersion(): number; setBlockVersion(value: number): RequestInfo; - getP2pVersion(): number; setP2pVersion(value: number): RequestInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestInfo.AsObject; static toObject(includeInstance: boolean, msg: RequestInfo): RequestInfo.AsObject; @@ -242,11 +207,9 @@ export namespace RequestInfo { export class RequestSetOption extends jspb.Message { getKey(): string; setKey(value: string): RequestSetOption; - getValue(): string; setValue(value: string): RequestSetOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestSetOption.AsObject; static toObject(includeInstance: boolean, msg: RequestSetOption): RequestSetOption.AsObject; @@ -270,30 +233,24 @@ export class RequestInitChain extends jspb.Message { clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): RequestInitChain; - getChainId(): string; setChainId(value: string): RequestInitChain; - hasConsensusParams(): boolean; clearConsensusParams(): void; getConsensusParams(): ConsensusParams | undefined; setConsensusParams(value?: ConsensusParams): RequestInitChain; - clearValidatorsList(): void; getValidatorsList(): Array; setValidatorsList(value: Array): RequestInitChain; addValidators(value?: ValidatorUpdate, index?: number): ValidatorUpdate; - getAppStateBytes(): Uint8Array | string; getAppStateBytes_asU8(): Uint8Array; getAppStateBytes_asB64(): string; setAppStateBytes(value: Uint8Array | string): RequestInitChain; - getInitialHeight(): number; setInitialHeight(value: number): RequestInitChain; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestInitChain.AsObject; static toObject(includeInstance: boolean, msg: RequestInitChain): RequestInitChain.AsObject; @@ -320,17 +277,13 @@ export class RequestQuery extends jspb.Message { getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): RequestQuery; - getPath(): string; setPath(value: string): RequestQuery; - getHeight(): number; setHeight(value: number): RequestQuery; - getProve(): boolean; setProve(value: boolean): RequestQuery; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestQuery.AsObject; static toObject(includeInstance: boolean, msg: RequestQuery): RequestQuery.AsObject; @@ -356,24 +309,20 @@ export class RequestBeginBlock extends jspb.Message { getHash_asB64(): string; setHash(value: Uint8Array | string): RequestBeginBlock; - hasHeader(): boolean; clearHeader(): void; getHeader(): tendermint_types_types_pb.Header | undefined; setHeader(value?: tendermint_types_types_pb.Header): RequestBeginBlock; - hasLastCommitInfo(): boolean; clearLastCommitInfo(): void; getLastCommitInfo(): LastCommitInfo | undefined; setLastCommitInfo(value?: LastCommitInfo): RequestBeginBlock; - clearByzantineValidatorsList(): void; getByzantineValidatorsList(): Array; setByzantineValidatorsList(value: Array): RequestBeginBlock; addByzantineValidators(value?: Evidence, index?: number): Evidence; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestBeginBlock.AsObject; static toObject(includeInstance: boolean, msg: RequestBeginBlock): RequestBeginBlock.AsObject; @@ -398,11 +347,9 @@ export class RequestCheckTx extends jspb.Message { getTx_asU8(): Uint8Array; getTx_asB64(): string; setTx(value: Uint8Array | string): RequestCheckTx; - getType(): CheckTxType; setType(value: CheckTxType): RequestCheckTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestCheckTx.AsObject; static toObject(includeInstance: boolean, msg: RequestCheckTx): RequestCheckTx.AsObject; @@ -426,7 +373,6 @@ export class RequestDeliverTx extends jspb.Message { getTx_asB64(): string; setTx(value: Uint8Array | string): RequestDeliverTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestDeliverTx.AsObject; static toObject(includeInstance: boolean, msg: RequestDeliverTx): RequestDeliverTx.AsObject; @@ -447,7 +393,6 @@ export class RequestEndBlock extends jspb.Message { getHeight(): number; setHeight(value: number): RequestEndBlock; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestEndBlock.AsObject; static toObject(includeInstance: boolean, msg: RequestEndBlock): RequestEndBlock.AsObject; @@ -504,13 +449,11 @@ export class RequestOfferSnapshot extends jspb.Message { clearSnapshot(): void; getSnapshot(): Snapshot | undefined; setSnapshot(value?: Snapshot): RequestOfferSnapshot; - getAppHash(): Uint8Array | string; getAppHash_asU8(): Uint8Array; getAppHash_asB64(): string; setAppHash(value: Uint8Array | string): RequestOfferSnapshot; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestOfferSnapshot.AsObject; static toObject(includeInstance: boolean, msg: RequestOfferSnapshot): RequestOfferSnapshot.AsObject; @@ -531,14 +474,11 @@ export namespace RequestOfferSnapshot { export class RequestLoadSnapshotChunk extends jspb.Message { getHeight(): number; setHeight(value: number): RequestLoadSnapshotChunk; - getFormat(): number; setFormat(value: number): RequestLoadSnapshotChunk; - getChunk(): number; setChunk(value: number): RequestLoadSnapshotChunk; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestLoadSnapshotChunk.AsObject; static toObject(includeInstance: boolean, msg: RequestLoadSnapshotChunk): RequestLoadSnapshotChunk.AsObject; @@ -560,16 +500,13 @@ export namespace RequestLoadSnapshotChunk { export class RequestApplySnapshotChunk extends jspb.Message { getIndex(): number; setIndex(value: number): RequestApplySnapshotChunk; - getChunk(): Uint8Array | string; getChunk_asU8(): Uint8Array; getChunk_asB64(): string; setChunk(value: Uint8Array | string): RequestApplySnapshotChunk; - getSender(): string; setSender(value: string): RequestApplySnapshotChunk; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestApplySnapshotChunk.AsObject; static toObject(includeInstance: boolean, msg: RequestApplySnapshotChunk): RequestApplySnapshotChunk.AsObject; @@ -595,97 +532,81 @@ export class Response extends jspb.Message { getException(): ResponseException | undefined; setException(value?: ResponseException): Response; - hasEcho(): boolean; clearEcho(): void; getEcho(): ResponseEcho | undefined; setEcho(value?: ResponseEcho): Response; - hasFlush(): boolean; clearFlush(): void; getFlush(): ResponseFlush | undefined; setFlush(value?: ResponseFlush): Response; - hasInfo(): boolean; clearInfo(): void; getInfo(): ResponseInfo | undefined; setInfo(value?: ResponseInfo): Response; - hasSetOption(): boolean; clearSetOption(): void; getSetOption(): ResponseSetOption | undefined; setSetOption(value?: ResponseSetOption): Response; - hasInitChain(): boolean; clearInitChain(): void; getInitChain(): ResponseInitChain | undefined; setInitChain(value?: ResponseInitChain): Response; - hasQuery(): boolean; clearQuery(): void; getQuery(): ResponseQuery | undefined; setQuery(value?: ResponseQuery): Response; - hasBeginBlock(): boolean; clearBeginBlock(): void; getBeginBlock(): ResponseBeginBlock | undefined; setBeginBlock(value?: ResponseBeginBlock): Response; - hasCheckTx(): boolean; clearCheckTx(): void; getCheckTx(): ResponseCheckTx | undefined; setCheckTx(value?: ResponseCheckTx): Response; - hasDeliverTx(): boolean; clearDeliverTx(): void; getDeliverTx(): ResponseDeliverTx | undefined; setDeliverTx(value?: ResponseDeliverTx): Response; - hasEndBlock(): boolean; clearEndBlock(): void; getEndBlock(): ResponseEndBlock | undefined; setEndBlock(value?: ResponseEndBlock): Response; - hasCommit(): boolean; clearCommit(): void; getCommit(): ResponseCommit | undefined; setCommit(value?: ResponseCommit): Response; - hasListSnapshots(): boolean; clearListSnapshots(): void; getListSnapshots(): ResponseListSnapshots | undefined; setListSnapshots(value?: ResponseListSnapshots): Response; - hasOfferSnapshot(): boolean; clearOfferSnapshot(): void; getOfferSnapshot(): ResponseOfferSnapshot | undefined; setOfferSnapshot(value?: ResponseOfferSnapshot): Response; - hasLoadSnapshotChunk(): boolean; clearLoadSnapshotChunk(): void; getLoadSnapshotChunk(): ResponseLoadSnapshotChunk | undefined; setLoadSnapshotChunk(value?: ResponseLoadSnapshotChunk): Response; - hasApplySnapshotChunk(): boolean; clearApplySnapshotChunk(): void; getApplySnapshotChunk(): ResponseApplySnapshotChunk | undefined; setApplySnapshotChunk(value?: ResponseApplySnapshotChunk): Response; - getValueCase(): Response.ValueCase; serializeBinary(): Uint8Array; @@ -720,39 +641,22 @@ export namespace Response { export enum ValueCase { VALUE_NOT_SET = 0, - - EXCEPTION = 1, - - ECHO = 2, - - FLUSH = 3, - - INFO = 4, - - SET_OPTION = 5, - - INIT_CHAIN = 6, - - QUERY = 7, - - BEGIN_BLOCK = 8, - - CHECK_TX = 9, - - DELIVER_TX = 10, - - END_BLOCK = 11, - - COMMIT = 12, - - LIST_SNAPSHOTS = 13, - - OFFER_SNAPSHOT = 14, - - LOAD_SNAPSHOT_CHUNK = 15, - - APPLY_SNAPSHOT_CHUNK = 16, - + EXCEPTION = 1, + ECHO = 2, + FLUSH = 3, + INFO = 4, + SET_OPTION = 5, + INIT_CHAIN = 6, + QUERY = 7, + BEGIN_BLOCK = 8, + CHECK_TX = 9, + DELIVER_TX = 10, + END_BLOCK = 11, + COMMIT = 12, + LIST_SNAPSHOTS = 13, + OFFER_SNAPSHOT = 14, + LOAD_SNAPSHOT_CHUNK = 15, + APPLY_SNAPSHOT_CHUNK = 16, } } @@ -761,7 +665,6 @@ export class ResponseException extends jspb.Message { getError(): string; setError(value: string): ResponseException; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseException.AsObject; static toObject(includeInstance: boolean, msg: ResponseException): ResponseException.AsObject; @@ -782,7 +685,6 @@ export class ResponseEcho extends jspb.Message { getMessage(): string; setMessage(value: string): ResponseEcho; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseEcho.AsObject; static toObject(includeInstance: boolean, msg: ResponseEcho): ResponseEcho.AsObject; @@ -819,22 +721,17 @@ export namespace ResponseFlush { export class ResponseInfo extends jspb.Message { getData(): string; setData(value: string): ResponseInfo; - getVersion(): string; setVersion(value: string): ResponseInfo; - getAppVersion(): number; setAppVersion(value: number): ResponseInfo; - getLastBlockHeight(): number; setLastBlockHeight(value: number): ResponseInfo; - getLastBlockAppHash(): Uint8Array | string; getLastBlockAppHash_asU8(): Uint8Array; getLastBlockAppHash_asB64(): string; setLastBlockAppHash(value: Uint8Array | string): ResponseInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseInfo.AsObject; static toObject(includeInstance: boolean, msg: ResponseInfo): ResponseInfo.AsObject; @@ -858,14 +755,11 @@ export namespace ResponseInfo { export class ResponseSetOption extends jspb.Message { getCode(): number; setCode(value: number): ResponseSetOption; - getLog(): string; setLog(value: string): ResponseSetOption; - getInfo(): string; setInfo(value: string): ResponseSetOption; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseSetOption.AsObject; static toObject(includeInstance: boolean, msg: ResponseSetOption): ResponseSetOption.AsObject; @@ -890,18 +784,15 @@ export class ResponseInitChain extends jspb.Message { clearConsensusParams(): void; getConsensusParams(): ConsensusParams | undefined; setConsensusParams(value?: ConsensusParams): ResponseInitChain; - clearValidatorsList(): void; getValidatorsList(): Array; setValidatorsList(value: Array): ResponseInitChain; addValidators(value?: ValidatorUpdate, index?: number): ValidatorUpdate; - getAppHash(): Uint8Array | string; getAppHash_asU8(): Uint8Array; getAppHash_asB64(): string; setAppHash(value: Uint8Array | string): ResponseInitChain; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseInitChain.AsObject; static toObject(includeInstance: boolean, msg: ResponseInitChain): ResponseInitChain.AsObject; @@ -923,39 +814,30 @@ export namespace ResponseInitChain { export class ResponseQuery extends jspb.Message { getCode(): number; setCode(value: number): ResponseQuery; - getLog(): string; setLog(value: string): ResponseQuery; - getInfo(): string; setInfo(value: string): ResponseQuery; - getIndex(): number; setIndex(value: number): ResponseQuery; - getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): ResponseQuery; - getValue(): Uint8Array | string; getValue_asU8(): Uint8Array; getValue_asB64(): string; setValue(value: Uint8Array | string): ResponseQuery; - hasProofOps(): boolean; clearProofOps(): void; getProofOps(): tendermint_crypto_proof_pb.ProofOps | undefined; setProofOps(value?: tendermint_crypto_proof_pb.ProofOps): ResponseQuery; - getHeight(): number; setHeight(value: number): ResponseQuery; - getCodespace(): string; setCodespace(value: string): ResponseQuery; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseQuery.AsObject; static toObject(includeInstance: boolean, msg: ResponseQuery): ResponseQuery.AsObject; @@ -986,7 +868,6 @@ export class ResponseBeginBlock extends jspb.Message { setEventsList(value: Array): ResponseBeginBlock; addEvents(value?: Event, index?: number): Event; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseBeginBlock.AsObject; static toObject(includeInstance: boolean, msg: ResponseBeginBlock): ResponseBeginBlock.AsObject; @@ -1006,33 +887,25 @@ export namespace ResponseBeginBlock { export class ResponseCheckTx extends jspb.Message { getCode(): number; setCode(value: number): ResponseCheckTx; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): ResponseCheckTx; - getLog(): string; setLog(value: string): ResponseCheckTx; - getInfo(): string; setInfo(value: string): ResponseCheckTx; - getGasWanted(): number; setGasWanted(value: number): ResponseCheckTx; - getGasUsed(): number; setGasUsed(value: number): ResponseCheckTx; - clearEventsList(): void; getEventsList(): Array; setEventsList(value: Array): ResponseCheckTx; addEvents(value?: Event, index?: number): Event; - getCodespace(): string; setCodespace(value: string): ResponseCheckTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseCheckTx.AsObject; static toObject(includeInstance: boolean, msg: ResponseCheckTx): ResponseCheckTx.AsObject; @@ -1059,33 +932,25 @@ export namespace ResponseCheckTx { export class ResponseDeliverTx extends jspb.Message { getCode(): number; setCode(value: number): ResponseDeliverTx; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): ResponseDeliverTx; - getLog(): string; setLog(value: string): ResponseDeliverTx; - getInfo(): string; setInfo(value: string): ResponseDeliverTx; - getGasWanted(): number; setGasWanted(value: number): ResponseDeliverTx; - getGasUsed(): number; setGasUsed(value: number): ResponseDeliverTx; - clearEventsList(): void; getEventsList(): Array; setEventsList(value: Array): ResponseDeliverTx; addEvents(value?: Event, index?: number): Event; - getCodespace(): string; setCodespace(value: string): ResponseDeliverTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseDeliverTx.AsObject; static toObject(includeInstance: boolean, msg: ResponseDeliverTx): ResponseDeliverTx.AsObject; @@ -1115,18 +980,15 @@ export class ResponseEndBlock extends jspb.Message { setValidatorUpdatesList(value: Array): ResponseEndBlock; addValidatorUpdates(value?: ValidatorUpdate, index?: number): ValidatorUpdate; - hasConsensusParamUpdates(): boolean; clearConsensusParamUpdates(): void; getConsensusParamUpdates(): ConsensusParams | undefined; setConsensusParamUpdates(value?: ConsensusParams): ResponseEndBlock; - clearEventsList(): void; getEventsList(): Array; setEventsList(value: Array): ResponseEndBlock; addEvents(value?: Event, index?: number): Event; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseEndBlock.AsObject; static toObject(includeInstance: boolean, msg: ResponseEndBlock): ResponseEndBlock.AsObject; @@ -1150,11 +1012,9 @@ export class ResponseCommit extends jspb.Message { getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): ResponseCommit; - getRetainHeight(): number; setRetainHeight(value: number): ResponseCommit; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseCommit.AsObject; static toObject(includeInstance: boolean, msg: ResponseCommit): ResponseCommit.AsObject; @@ -1178,7 +1038,6 @@ export class ResponseListSnapshots extends jspb.Message { setSnapshotsList(value: Array): ResponseListSnapshots; addSnapshots(value?: Snapshot, index?: number): Snapshot; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseListSnapshots.AsObject; static toObject(includeInstance: boolean, msg: ResponseListSnapshots): ResponseListSnapshots.AsObject; @@ -1199,7 +1058,6 @@ export class ResponseOfferSnapshot extends jspb.Message { getResult(): ResponseOfferSnapshot.Result; setResult(value: ResponseOfferSnapshot.Result): ResponseOfferSnapshot; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseOfferSnapshot.AsObject; static toObject(includeInstance: boolean, msg: ResponseOfferSnapshot): ResponseOfferSnapshot.AsObject; @@ -1232,7 +1090,6 @@ export class ResponseLoadSnapshotChunk extends jspb.Message { getChunk_asB64(): string; setChunk(value: Uint8Array | string): ResponseLoadSnapshotChunk; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseLoadSnapshotChunk.AsObject; static toObject(includeInstance: boolean, msg: ResponseLoadSnapshotChunk): ResponseLoadSnapshotChunk.AsObject; @@ -1252,18 +1109,15 @@ export namespace ResponseLoadSnapshotChunk { export class ResponseApplySnapshotChunk extends jspb.Message { getResult(): ResponseApplySnapshotChunk.Result; setResult(value: ResponseApplySnapshotChunk.Result): ResponseApplySnapshotChunk; - clearRefetchChunksList(): void; getRefetchChunksList(): Array; setRefetchChunksList(value: Array): ResponseApplySnapshotChunk; addRefetchChunks(value: number, index?: number): number; - clearRejectSendersList(): void; getRejectSendersList(): Array; setRejectSendersList(value: Array): ResponseApplySnapshotChunk; addRejectSenders(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseApplySnapshotChunk.AsObject; static toObject(includeInstance: boolean, msg: ResponseApplySnapshotChunk): ResponseApplySnapshotChunk.AsObject; @@ -1299,25 +1153,21 @@ export class ConsensusParams extends jspb.Message { getBlock(): BlockParams | undefined; setBlock(value?: BlockParams): ConsensusParams; - hasEvidence(): boolean; clearEvidence(): void; getEvidence(): tendermint_types_params_pb.EvidenceParams | undefined; setEvidence(value?: tendermint_types_params_pb.EvidenceParams): ConsensusParams; - hasValidator(): boolean; clearValidator(): void; getValidator(): tendermint_types_params_pb.ValidatorParams | undefined; setValidator(value?: tendermint_types_params_pb.ValidatorParams): ConsensusParams; - hasVersion(): boolean; clearVersion(): void; getVersion(): tendermint_types_params_pb.VersionParams | undefined; setVersion(value?: tendermint_types_params_pb.VersionParams): ConsensusParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConsensusParams.AsObject; static toObject(includeInstance: boolean, msg: ConsensusParams): ConsensusParams.AsObject; @@ -1340,11 +1190,9 @@ export namespace ConsensusParams { export class BlockParams extends jspb.Message { getMaxBytes(): number; setMaxBytes(value: number): BlockParams; - getMaxGas(): number; setMaxGas(value: number): BlockParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockParams.AsObject; static toObject(includeInstance: boolean, msg: BlockParams): BlockParams.AsObject; @@ -1365,13 +1213,11 @@ export namespace BlockParams { export class LastCommitInfo extends jspb.Message { getRound(): number; setRound(value: number): LastCommitInfo; - clearVotesList(): void; getVotesList(): Array; setVotesList(value: Array): LastCommitInfo; addVotes(value?: VoteInfo, index?: number): VoteInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LastCommitInfo.AsObject; static toObject(includeInstance: boolean, msg: LastCommitInfo): LastCommitInfo.AsObject; @@ -1392,13 +1238,11 @@ export namespace LastCommitInfo { export class Event extends jspb.Message { getType(): string; setType(value: string): Event; - clearAttributesList(): void; getAttributesList(): Array; setAttributesList(value: Array): Event; addAttributes(value?: EventAttribute, index?: number): EventAttribute; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Event.AsObject; static toObject(includeInstance: boolean, msg: Event): Event.AsObject; @@ -1421,16 +1265,13 @@ export class EventAttribute extends jspb.Message { getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): EventAttribute; - getValue(): Uint8Array | string; getValue_asU8(): Uint8Array; getValue_asB64(): string; setValue(value: Uint8Array | string): EventAttribute; - getIndex(): boolean; setIndex(value: boolean): EventAttribute; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EventAttribute.AsObject; static toObject(includeInstance: boolean, msg: EventAttribute): EventAttribute.AsObject; @@ -1452,22 +1293,18 @@ export namespace EventAttribute { export class TxResult extends jspb.Message { getHeight(): number; setHeight(value: number): TxResult; - getIndex(): number; setIndex(value: number): TxResult; - getTx(): Uint8Array | string; getTx_asU8(): Uint8Array; getTx_asB64(): string; setTx(value: Uint8Array | string): TxResult; - hasResult(): boolean; clearResult(): void; getResult(): ResponseDeliverTx | undefined; setResult(value?: ResponseDeliverTx): TxResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxResult.AsObject; static toObject(includeInstance: boolean, msg: TxResult): TxResult.AsObject; @@ -1492,11 +1329,9 @@ export class Validator extends jspb.Message { getAddress_asU8(): Uint8Array; getAddress_asB64(): string; setAddress(value: Uint8Array | string): Validator; - getPower(): number; setPower(value: number): Validator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Validator.AsObject; static toObject(includeInstance: boolean, msg: Validator): Validator.AsObject; @@ -1520,11 +1355,9 @@ export class ValidatorUpdate extends jspb.Message { clearPubKey(): void; getPubKey(): tendermint_crypto_keys_pb.PublicKey | undefined; setPubKey(value?: tendermint_crypto_keys_pb.PublicKey): ValidatorUpdate; - getPower(): number; setPower(value: number): ValidatorUpdate; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValidatorUpdate.AsObject; static toObject(includeInstance: boolean, msg: ValidatorUpdate): ValidatorUpdate.AsObject; @@ -1548,11 +1381,9 @@ export class VoteInfo extends jspb.Message { clearValidator(): void; getValidator(): Validator | undefined; setValidator(value?: Validator): VoteInfo; - getSignedLastBlock(): boolean; setSignedLastBlock(value: boolean): VoteInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): VoteInfo.AsObject; static toObject(includeInstance: boolean, msg: VoteInfo): VoteInfo.AsObject; @@ -1574,25 +1405,20 @@ export class Evidence extends jspb.Message { getType(): EvidenceType; setType(value: EvidenceType): Evidence; - hasValidator(): boolean; clearValidator(): void; getValidator(): Validator | undefined; setValidator(value?: Validator): Evidence; - getHeight(): number; setHeight(value: number): Evidence; - hasTime(): boolean; clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): Evidence; - getTotalVotingPower(): number; setTotalVotingPower(value: number): Evidence; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Evidence.AsObject; static toObject(includeInstance: boolean, msg: Evidence): Evidence.AsObject; @@ -1616,24 +1442,19 @@ export namespace Evidence { export class Snapshot extends jspb.Message { getHeight(): number; setHeight(value: number): Snapshot; - getFormat(): number; setFormat(value: number): Snapshot; - getChunks(): number; setChunks(value: number): Snapshot; - getHash(): Uint8Array | string; getHash_asU8(): Uint8Array; getHash_asB64(): string; setHash(value: Uint8Array | string): Snapshot; - getMetadata(): Uint8Array | string; getMetadata_asU8(): Uint8Array; getMetadata_asB64(): string; setMetadata(value: Uint8Array | string): Snapshot; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Snapshot.AsObject; static toObject(includeInstance: boolean, msg: Snapshot): Snapshot.AsObject; diff --git a/js/proto/tendermint/abci/types_pb.js b/js/proto/tendermint/abci/types_pb.js index 2a68a91f4..36a658188 100644 --- a/js/proto/tendermint/abci/types_pb.js +++ b/js/proto/tendermint/abci/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/blockchain/types_pb.d.ts b/js/proto/tendermint/blockchain/types_pb.d.ts index e2eece8b4..7f63df7a0 100644 --- a/js/proto/tendermint/blockchain/types_pb.d.ts +++ b/js/proto/tendermint/blockchain/types_pb.d.ts @@ -11,7 +11,6 @@ export class BlockRequest extends jspb.Message { getHeight(): number; setHeight(value: number): BlockRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockRequest.AsObject; static toObject(includeInstance: boolean, msg: BlockRequest): BlockRequest.AsObject; @@ -32,7 +31,6 @@ export class NoBlockResponse extends jspb.Message { getHeight(): number; setHeight(value: number): NoBlockResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NoBlockResponse.AsObject; static toObject(includeInstance: boolean, msg: NoBlockResponse): NoBlockResponse.AsObject; @@ -56,7 +54,6 @@ export class BlockResponse extends jspb.Message { getBlock(): tendermint_types_block_pb.Block | undefined; setBlock(value?: tendermint_types_block_pb.Block): BlockResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockResponse.AsObject; static toObject(includeInstance: boolean, msg: BlockResponse): BlockResponse.AsObject; @@ -93,11 +90,9 @@ export namespace StatusRequest { export class StatusResponse extends jspb.Message { getHeight(): number; setHeight(value: number): StatusResponse; - getBase(): number; setBase(value: number): StatusResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StatusResponse.AsObject; static toObject(includeInstance: boolean, msg: StatusResponse): StatusResponse.AsObject; @@ -122,31 +117,26 @@ export class Message extends jspb.Message { getBlockRequest(): BlockRequest | undefined; setBlockRequest(value?: BlockRequest): Message; - hasNoBlockResponse(): boolean; clearNoBlockResponse(): void; getNoBlockResponse(): NoBlockResponse | undefined; setNoBlockResponse(value?: NoBlockResponse): Message; - hasBlockResponse(): boolean; clearBlockResponse(): void; getBlockResponse(): BlockResponse | undefined; setBlockResponse(value?: BlockResponse): Message; - hasStatusRequest(): boolean; clearStatusRequest(): void; getStatusRequest(): StatusRequest | undefined; setStatusRequest(value?: StatusRequest): Message; - hasStatusResponse(): boolean; clearStatusResponse(): void; getStatusResponse(): StatusResponse | undefined; setStatusResponse(value?: StatusResponse): Message; - getSumCase(): Message.SumCase; serializeBinary(): Uint8Array; @@ -170,17 +160,11 @@ export namespace Message { export enum SumCase { SUM_NOT_SET = 0, - - BLOCK_REQUEST = 1, - - NO_BLOCK_RESPONSE = 2, - - BLOCK_RESPONSE = 3, - - STATUS_REQUEST = 4, - - STATUS_RESPONSE = 5, - + BLOCK_REQUEST = 1, + NO_BLOCK_RESPONSE = 2, + BLOCK_RESPONSE = 3, + STATUS_REQUEST = 4, + STATUS_RESPONSE = 5, } } diff --git a/js/proto/tendermint/blockchain/types_pb.js b/js/proto/tendermint/blockchain/types_pb.js index 7f0aecd69..7309e085b 100644 --- a/js/proto/tendermint/blockchain/types_pb.js +++ b/js/proto/tendermint/blockchain/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/consensus/types_pb.d.ts b/js/proto/tendermint/consensus/types_pb.d.ts index fcadfc10b..ee963bfb7 100644 --- a/js/proto/tendermint/consensus/types_pb.d.ts +++ b/js/proto/tendermint/consensus/types_pb.d.ts @@ -12,20 +12,15 @@ import * as tendermint_libs_bits_types_pb from "../../tendermint/libs/bits/types export class NewRoundStep extends jspb.Message { getHeight(): number; setHeight(value: number): NewRoundStep; - getRound(): number; setRound(value: number): NewRoundStep; - getStep(): number; setStep(value: number): NewRoundStep; - getSecondsSinceStartTime(): number; setSecondsSinceStartTime(value: number): NewRoundStep; - getLastCommitRound(): number; setLastCommitRound(value: number): NewRoundStep; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NewRoundStep.AsObject; static toObject(includeInstance: boolean, msg: NewRoundStep): NewRoundStep.AsObject; @@ -49,26 +44,21 @@ export namespace NewRoundStep { export class NewValidBlock extends jspb.Message { getHeight(): number; setHeight(value: number): NewValidBlock; - getRound(): number; setRound(value: number): NewValidBlock; - hasBlockPartSetHeader(): boolean; clearBlockPartSetHeader(): void; getBlockPartSetHeader(): tendermint_types_types_pb.PartSetHeader | undefined; setBlockPartSetHeader(value?: tendermint_types_types_pb.PartSetHeader): NewValidBlock; - hasBlockParts(): boolean; clearBlockParts(): void; getBlockParts(): tendermint_libs_bits_types_pb.BitArray | undefined; setBlockParts(value?: tendermint_libs_bits_types_pb.BitArray): NewValidBlock; - getIsCommit(): boolean; setIsCommit(value: boolean): NewValidBlock; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NewValidBlock.AsObject; static toObject(includeInstance: boolean, msg: NewValidBlock): NewValidBlock.AsObject; @@ -96,7 +86,6 @@ export class Proposal extends jspb.Message { getProposal(): tendermint_types_types_pb.Proposal | undefined; setProposal(value?: tendermint_types_types_pb.Proposal): Proposal; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Proposal.AsObject; static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; @@ -116,17 +105,14 @@ export namespace Proposal { export class ProposalPOL extends jspb.Message { getHeight(): number; setHeight(value: number): ProposalPOL; - getProposalPolRound(): number; setProposalPolRound(value: number): ProposalPOL; - hasProposalPol(): boolean; clearProposalPol(): void; getProposalPol(): tendermint_libs_bits_types_pb.BitArray | undefined; setProposalPol(value?: tendermint_libs_bits_types_pb.BitArray): ProposalPOL; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProposalPOL.AsObject; static toObject(includeInstance: boolean, msg: ProposalPOL): ProposalPOL.AsObject; @@ -148,17 +134,14 @@ export namespace ProposalPOL { export class BlockPart extends jspb.Message { getHeight(): number; setHeight(value: number): BlockPart; - getRound(): number; setRound(value: number): BlockPart; - hasPart(): boolean; clearPart(): void; getPart(): tendermint_types_types_pb.Part | undefined; setPart(value?: tendermint_types_types_pb.Part): BlockPart; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockPart.AsObject; static toObject(includeInstance: boolean, msg: BlockPart): BlockPart.AsObject; @@ -184,7 +167,6 @@ export class Vote extends jspb.Message { getVote(): tendermint_types_types_pb.Vote | undefined; setVote(value?: tendermint_types_types_pb.Vote): Vote; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Vote.AsObject; static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; @@ -204,17 +186,13 @@ export namespace Vote { export class HasVote extends jspb.Message { getHeight(): number; setHeight(value: number): HasVote; - getRound(): number; setRound(value: number): HasVote; - getType(): tendermint_types_types_pb.SignedMsgType; setType(value: tendermint_types_types_pb.SignedMsgType): HasVote; - getIndex(): number; setIndex(value: number): HasVote; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HasVote.AsObject; static toObject(includeInstance: boolean, msg: HasVote): HasVote.AsObject; @@ -237,20 +215,16 @@ export namespace HasVote { export class VoteSetMaj23 extends jspb.Message { getHeight(): number; setHeight(value: number): VoteSetMaj23; - getRound(): number; setRound(value: number): VoteSetMaj23; - getType(): tendermint_types_types_pb.SignedMsgType; setType(value: tendermint_types_types_pb.SignedMsgType): VoteSetMaj23; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): tendermint_types_types_pb.BlockID | undefined; setBlockId(value?: tendermint_types_types_pb.BlockID): VoteSetMaj23; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): VoteSetMaj23.AsObject; static toObject(includeInstance: boolean, msg: VoteSetMaj23): VoteSetMaj23.AsObject; @@ -273,26 +247,21 @@ export namespace VoteSetMaj23 { export class VoteSetBits extends jspb.Message { getHeight(): number; setHeight(value: number): VoteSetBits; - getRound(): number; setRound(value: number): VoteSetBits; - getType(): tendermint_types_types_pb.SignedMsgType; setType(value: tendermint_types_types_pb.SignedMsgType): VoteSetBits; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): tendermint_types_types_pb.BlockID | undefined; setBlockId(value?: tendermint_types_types_pb.BlockID): VoteSetBits; - hasVotes(): boolean; clearVotes(): void; getVotes(): tendermint_libs_bits_types_pb.BitArray | undefined; setVotes(value?: tendermint_libs_bits_types_pb.BitArray): VoteSetBits; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): VoteSetBits.AsObject; static toObject(includeInstance: boolean, msg: VoteSetBits): VoteSetBits.AsObject; @@ -320,55 +289,46 @@ export class Message extends jspb.Message { getNewRoundStep(): NewRoundStep | undefined; setNewRoundStep(value?: NewRoundStep): Message; - hasNewValidBlock(): boolean; clearNewValidBlock(): void; getNewValidBlock(): NewValidBlock | undefined; setNewValidBlock(value?: NewValidBlock): Message; - hasProposal(): boolean; clearProposal(): void; getProposal(): Proposal | undefined; setProposal(value?: Proposal): Message; - hasProposalPol(): boolean; clearProposalPol(): void; getProposalPol(): ProposalPOL | undefined; setProposalPol(value?: ProposalPOL): Message; - hasBlockPart(): boolean; clearBlockPart(): void; getBlockPart(): BlockPart | undefined; setBlockPart(value?: BlockPart): Message; - hasVote(): boolean; clearVote(): void; getVote(): Vote | undefined; setVote(value?: Vote): Message; - hasHasVote(): boolean; clearHasVote(): void; getHasVote(): HasVote | undefined; setHasVote(value?: HasVote): Message; - hasVoteSetMaj23(): boolean; clearVoteSetMaj23(): void; getVoteSetMaj23(): VoteSetMaj23 | undefined; setVoteSetMaj23(value?: VoteSetMaj23): Message; - hasVoteSetBits(): boolean; clearVoteSetBits(): void; getVoteSetBits(): VoteSetBits | undefined; setVoteSetBits(value?: VoteSetBits): Message; - getSumCase(): Message.SumCase; serializeBinary(): Uint8Array; @@ -396,25 +356,15 @@ export namespace Message { export enum SumCase { SUM_NOT_SET = 0, - - NEW_ROUND_STEP = 1, - - NEW_VALID_BLOCK = 2, - - PROPOSAL = 3, - - PROPOSAL_POL = 4, - - BLOCK_PART = 5, - - VOTE = 6, - - HAS_VOTE = 7, - - VOTE_SET_MAJ23 = 8, - - VOTE_SET_BITS = 9, - + NEW_ROUND_STEP = 1, + NEW_VALID_BLOCK = 2, + PROPOSAL = 3, + PROPOSAL_POL = 4, + BLOCK_PART = 5, + VOTE = 6, + HAS_VOTE = 7, + VOTE_SET_MAJ23 = 8, + VOTE_SET_BITS = 9, } } diff --git a/js/proto/tendermint/consensus/types_pb.js b/js/proto/tendermint/consensus/types_pb.js index b0609fe4b..745302c50 100644 --- a/js/proto/tendermint/consensus/types_pb.js +++ b/js/proto/tendermint/consensus/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/consensus/wal_pb.d.ts b/js/proto/tendermint/consensus/wal_pb.d.ts index ded1a8614..920851cee 100644 --- a/js/proto/tendermint/consensus/wal_pb.d.ts +++ b/js/proto/tendermint/consensus/wal_pb.d.ts @@ -17,11 +17,9 @@ export class MsgInfo extends jspb.Message { clearMsg(): void; getMsg(): tendermint_consensus_types_pb.Message | undefined; setMsg(value?: tendermint_consensus_types_pb.Message): MsgInfo; - getPeerId(): string; setPeerId(value: string): MsgInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MsgInfo.AsObject; static toObject(includeInstance: boolean, msg: MsgInfo): MsgInfo.AsObject; @@ -45,17 +43,13 @@ export class TimeoutInfo extends jspb.Message { clearDuration(): void; getDuration(): google_protobuf_duration_pb.Duration | undefined; setDuration(value?: google_protobuf_duration_pb.Duration): TimeoutInfo; - getHeight(): number; setHeight(value: number): TimeoutInfo; - getRound(): number; setRound(value: number): TimeoutInfo; - getStep(): number; setStep(value: number): TimeoutInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TimeoutInfo.AsObject; static toObject(includeInstance: boolean, msg: TimeoutInfo): TimeoutInfo.AsObject; @@ -79,7 +73,6 @@ export class EndHeight extends jspb.Message { getHeight(): number; setHeight(value: number): EndHeight; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EndHeight.AsObject; static toObject(includeInstance: boolean, msg: EndHeight): EndHeight.AsObject; @@ -103,25 +96,21 @@ export class WALMessage extends jspb.Message { getEventDataRoundState(): tendermint_types_events_pb.EventDataRoundState | undefined; setEventDataRoundState(value?: tendermint_types_events_pb.EventDataRoundState): WALMessage; - hasMsgInfo(): boolean; clearMsgInfo(): void; getMsgInfo(): MsgInfo | undefined; setMsgInfo(value?: MsgInfo): WALMessage; - hasTimeoutInfo(): boolean; clearTimeoutInfo(): void; getTimeoutInfo(): TimeoutInfo | undefined; setTimeoutInfo(value?: TimeoutInfo): WALMessage; - hasEndHeight(): boolean; clearEndHeight(): void; getEndHeight(): EndHeight | undefined; setEndHeight(value?: EndHeight): WALMessage; - getSumCase(): WALMessage.SumCase; serializeBinary(): Uint8Array; @@ -144,15 +133,10 @@ export namespace WALMessage { export enum SumCase { SUM_NOT_SET = 0, - - EVENT_DATA_ROUND_STATE = 1, - - MSG_INFO = 2, - - TIMEOUT_INFO = 3, - - END_HEIGHT = 4, - + EVENT_DATA_ROUND_STATE = 1, + MSG_INFO = 2, + TIMEOUT_INFO = 3, + END_HEIGHT = 4, } } @@ -164,13 +148,11 @@ export class TimedWALMessage extends jspb.Message { getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): TimedWALMessage; - hasMsg(): boolean; clearMsg(): void; getMsg(): WALMessage | undefined; setMsg(value?: WALMessage): TimedWALMessage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TimedWALMessage.AsObject; static toObject(includeInstance: boolean, msg: TimedWALMessage): TimedWALMessage.AsObject; diff --git a/js/proto/tendermint/consensus/wal_pb.js b/js/proto/tendermint/consensus/wal_pb.js index 2d09c3baf..329533a1a 100644 --- a/js/proto/tendermint/consensus/wal_pb.js +++ b/js/proto/tendermint/consensus/wal_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/crypto/keys_pb.d.ts b/js/proto/tendermint/crypto/keys_pb.d.ts index a4e9a2303..89a2436f3 100644 --- a/js/proto/tendermint/crypto/keys_pb.d.ts +++ b/js/proto/tendermint/crypto/keys_pb.d.ts @@ -16,7 +16,6 @@ export class PublicKey extends jspb.Message { getEd25519_asB64(): string; setEd25519(value: Uint8Array | string): PublicKey; - hasSecp256k1(): boolean; clearSecp256k1(): void; getSecp256k1(): Uint8Array | string; @@ -24,7 +23,6 @@ export class PublicKey extends jspb.Message { getSecp256k1_asB64(): string; setSecp256k1(value: Uint8Array | string): PublicKey; - getSumCase(): PublicKey.SumCase; serializeBinary(): Uint8Array; @@ -45,11 +43,8 @@ export namespace PublicKey { export enum SumCase { SUM_NOT_SET = 0, - - ED25519 = 1, - - SECP256K1 = 2, - + ED25519 = 1, + SECP256K1 = 2, } } diff --git a/js/proto/tendermint/crypto/keys_pb.js b/js/proto/tendermint/crypto/keys_pb.js index 89acbb08f..4154dbb6d 100644 --- a/js/proto/tendermint/crypto/keys_pb.js +++ b/js/proto/tendermint/crypto/keys_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/crypto/proof_pb.d.ts b/js/proto/tendermint/crypto/proof_pb.d.ts index df2ddb53d..e73984260 100644 --- a/js/proto/tendermint/crypto/proof_pb.d.ts +++ b/js/proto/tendermint/crypto/proof_pb.d.ts @@ -10,15 +10,12 @@ import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; export class Proof extends jspb.Message { getTotal(): number; setTotal(value: number): Proof; - getIndex(): number; setIndex(value: number): Proof; - getLeafHash(): Uint8Array | string; getLeafHash_asU8(): Uint8Array; getLeafHash_asB64(): string; setLeafHash(value: Uint8Array | string): Proof; - clearAuntsList(): void; getAuntsList(): Array; getAuntsList_asU8(): Array; @@ -26,7 +23,6 @@ export class Proof extends jspb.Message { setAuntsList(value: Array): Proof; addAunts(value: Uint8Array | string, index?: number): Uint8Array | string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Proof.AsObject; static toObject(includeInstance: boolean, msg: Proof): Proof.AsObject; @@ -52,13 +48,11 @@ export class ValueOp extends jspb.Message { getKey_asB64(): string; setKey(value: Uint8Array | string): ValueOp; - hasProof(): boolean; clearProof(): void; getProof(): Proof | undefined; setProof(value?: Proof): ValueOp; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValueOp.AsObject; static toObject(includeInstance: boolean, msg: ValueOp): ValueOp.AsObject; @@ -79,14 +73,11 @@ export namespace ValueOp { export class DominoOp extends jspb.Message { getKey(): string; setKey(value: string): DominoOp; - getInput(): string; setInput(value: string): DominoOp; - getOutput(): string; setOutput(value: string): DominoOp; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DominoOp.AsObject; static toObject(includeInstance: boolean, msg: DominoOp): DominoOp.AsObject; @@ -108,18 +99,15 @@ export namespace DominoOp { export class ProofOp extends jspb.Message { getType(): string; setType(value: string): ProofOp; - getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): ProofOp; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): ProofOp; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProofOp.AsObject; static toObject(includeInstance: boolean, msg: ProofOp): ProofOp.AsObject; @@ -144,7 +132,6 @@ export class ProofOps extends jspb.Message { setOpsList(value: Array): ProofOps; addOps(value?: ProofOp, index?: number): ProofOp; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProofOps.AsObject; static toObject(includeInstance: boolean, msg: ProofOps): ProofOps.AsObject; diff --git a/js/proto/tendermint/crypto/proof_pb.js b/js/proto/tendermint/crypto/proof_pb.js index 96338204a..6d99106b0 100644 --- a/js/proto/tendermint/crypto/proof_pb.js +++ b/js/proto/tendermint/crypto/proof_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/libs/bits/types_pb.d.ts b/js/proto/tendermint/libs/bits/types_pb.d.ts index e57ad32dd..26609c072 100644 --- a/js/proto/tendermint/libs/bits/types_pb.d.ts +++ b/js/proto/tendermint/libs/bits/types_pb.d.ts @@ -9,13 +9,11 @@ import * as jspb from "google-protobuf"; export class BitArray extends jspb.Message { getBits(): number; setBits(value: number): BitArray; - clearElemsList(): void; getElemsList(): Array; setElemsList(value: Array): BitArray; addElems(value: number, index?: number): number; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BitArray.AsObject; static toObject(includeInstance: boolean, msg: BitArray): BitArray.AsObject; diff --git a/js/proto/tendermint/libs/bits/types_pb.js b/js/proto/tendermint/libs/bits/types_pb.js index 057b898f2..f3c7c0fa1 100644 --- a/js/proto/tendermint/libs/bits/types_pb.js +++ b/js/proto/tendermint/libs/bits/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/mempool/types_pb.d.ts b/js/proto/tendermint/mempool/types_pb.d.ts index 5b74e5f80..dadbfc9f3 100644 --- a/js/proto/tendermint/mempool/types_pb.d.ts +++ b/js/proto/tendermint/mempool/types_pb.d.ts @@ -14,7 +14,6 @@ export class Txs extends jspb.Message { setTxsList(value: Array): Txs; addTxs(value: Uint8Array | string, index?: number): Uint8Array | string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Txs.AsObject; static toObject(includeInstance: boolean, msg: Txs): Txs.AsObject; @@ -38,7 +37,6 @@ export class Message extends jspb.Message { getTxs(): Txs | undefined; setTxs(value?: Txs): Message; - getSumCase(): Message.SumCase; serializeBinary(): Uint8Array; @@ -58,9 +56,7 @@ export namespace Message { export enum SumCase { SUM_NOT_SET = 0, - - TXS = 1, - + TXS = 1, } } diff --git a/js/proto/tendermint/mempool/types_pb.js b/js/proto/tendermint/mempool/types_pb.js index ed9910508..71bc1c9e9 100644 --- a/js/proto/tendermint/mempool/types_pb.js +++ b/js/proto/tendermint/mempool/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/p2p/conn_pb.d.ts b/js/proto/tendermint/p2p/conn_pb.d.ts index 439a212ed..4e5053513 100644 --- a/js/proto/tendermint/p2p/conn_pb.d.ts +++ b/js/proto/tendermint/p2p/conn_pb.d.ts @@ -45,16 +45,13 @@ export namespace PacketPong { export class PacketMsg extends jspb.Message { getChannelId(): number; setChannelId(value: number): PacketMsg; - getEof(): boolean; setEof(value: boolean): PacketMsg; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): PacketMsg; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PacketMsg.AsObject; static toObject(includeInstance: boolean, msg: PacketMsg): PacketMsg.AsObject; @@ -80,19 +77,16 @@ export class Packet extends jspb.Message { getPacketPing(): PacketPing | undefined; setPacketPing(value?: PacketPing): Packet; - hasPacketPong(): boolean; clearPacketPong(): void; getPacketPong(): PacketPong | undefined; setPacketPong(value?: PacketPong): Packet; - hasPacketMsg(): boolean; clearPacketMsg(): void; getPacketMsg(): PacketMsg | undefined; setPacketMsg(value?: PacketMsg): Packet; - getSumCase(): Packet.SumCase; serializeBinary(): Uint8Array; @@ -114,13 +108,9 @@ export namespace Packet { export enum SumCase { SUM_NOT_SET = 0, - - PACKET_PING = 1, - - PACKET_PONG = 2, - - PACKET_MSG = 3, - + PACKET_PING = 1, + PACKET_PONG = 2, + PACKET_MSG = 3, } } @@ -131,13 +121,11 @@ export class AuthSigMessage extends jspb.Message { clearPubKey(): void; getPubKey(): tendermint_crypto_keys_pb.PublicKey | undefined; setPubKey(value?: tendermint_crypto_keys_pb.PublicKey): AuthSigMessage; - getSig(): Uint8Array | string; getSig_asU8(): Uint8Array; getSig_asB64(): string; setSig(value: Uint8Array | string): AuthSigMessage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AuthSigMessage.AsObject; static toObject(includeInstance: boolean, msg: AuthSigMessage): AuthSigMessage.AsObject; diff --git a/js/proto/tendermint/p2p/conn_pb.js b/js/proto/tendermint/p2p/conn_pb.js index 16628c3cf..6dea44ac1 100644 --- a/js/proto/tendermint/p2p/conn_pb.js +++ b/js/proto/tendermint/p2p/conn_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/p2p/pex_pb.d.ts b/js/proto/tendermint/p2p/pex_pb.d.ts index a9a6642a5..819216e9b 100644 --- a/js/proto/tendermint/p2p/pex_pb.d.ts +++ b/js/proto/tendermint/p2p/pex_pb.d.ts @@ -31,7 +31,6 @@ export class PexAddrs extends jspb.Message { setAddrsList(value: Array): PexAddrs; addAddrs(value?: tendermint_p2p_types_pb.NetAddress, index?: number): tendermint_p2p_types_pb.NetAddress; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PexAddrs.AsObject; static toObject(includeInstance: boolean, msg: PexAddrs): PexAddrs.AsObject; @@ -55,13 +54,11 @@ export class Message extends jspb.Message { getPexRequest(): PexRequest | undefined; setPexRequest(value?: PexRequest): Message; - hasPexAddrs(): boolean; clearPexAddrs(): void; getPexAddrs(): PexAddrs | undefined; setPexAddrs(value?: PexAddrs): Message; - getSumCase(): Message.SumCase; serializeBinary(): Uint8Array; @@ -82,11 +79,8 @@ export namespace Message { export enum SumCase { SUM_NOT_SET = 0, - - PEX_REQUEST = 1, - - PEX_ADDRS = 2, - + PEX_REQUEST = 1, + PEX_ADDRS = 2, } } diff --git a/js/proto/tendermint/p2p/pex_pb.js b/js/proto/tendermint/p2p/pex_pb.js index 9e0ce1ff9..84e273511 100644 --- a/js/proto/tendermint/p2p/pex_pb.js +++ b/js/proto/tendermint/p2p/pex_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/p2p/types_pb.d.ts b/js/proto/tendermint/p2p/types_pb.d.ts index e854a6f36..70afcf17e 100644 --- a/js/proto/tendermint/p2p/types_pb.d.ts +++ b/js/proto/tendermint/p2p/types_pb.d.ts @@ -10,14 +10,11 @@ import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; export class NetAddress extends jspb.Message { getId(): string; setId(value: string): NetAddress; - getIp(): string; setIp(value: string): NetAddress; - getPort(): number; setPort(value: number): NetAddress; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NetAddress.AsObject; static toObject(includeInstance: boolean, msg: NetAddress): NetAddress.AsObject; @@ -39,14 +36,11 @@ export namespace NetAddress { export class ProtocolVersion extends jspb.Message { getP2p(): number; setP2p(value: number): ProtocolVersion; - getBlock(): number; setBlock(value: number): ProtocolVersion; - getApp(): number; setApp(value: number): ProtocolVersion; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProtocolVersion.AsObject; static toObject(includeInstance: boolean, msg: ProtocolVersion): ProtocolVersion.AsObject; @@ -71,34 +65,26 @@ export class DefaultNodeInfo extends jspb.Message { clearProtocolVersion(): void; getProtocolVersion(): ProtocolVersion | undefined; setProtocolVersion(value?: ProtocolVersion): DefaultNodeInfo; - getDefaultNodeId(): string; setDefaultNodeId(value: string): DefaultNodeInfo; - getListenAddr(): string; setListenAddr(value: string): DefaultNodeInfo; - getNetwork(): string; setNetwork(value: string): DefaultNodeInfo; - getVersion(): string; setVersion(value: string): DefaultNodeInfo; - getChannels(): Uint8Array | string; getChannels_asU8(): Uint8Array; getChannels_asB64(): string; setChannels(value: Uint8Array | string): DefaultNodeInfo; - getMoniker(): string; setMoniker(value: string): DefaultNodeInfo; - hasOther(): boolean; clearOther(): void; getOther(): DefaultNodeInfoOther | undefined; setOther(value?: DefaultNodeInfoOther): DefaultNodeInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DefaultNodeInfo.AsObject; static toObject(includeInstance: boolean, msg: DefaultNodeInfo): DefaultNodeInfo.AsObject; @@ -125,11 +111,9 @@ export namespace DefaultNodeInfo { export class DefaultNodeInfoOther extends jspb.Message { getTxIndex(): string; setTxIndex(value: string): DefaultNodeInfoOther; - getRpcAddress(): string; setRpcAddress(value: string): DefaultNodeInfoOther; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DefaultNodeInfoOther.AsObject; static toObject(includeInstance: boolean, msg: DefaultNodeInfoOther): DefaultNodeInfoOther.AsObject; diff --git a/js/proto/tendermint/p2p/types_pb.js b/js/proto/tendermint/p2p/types_pb.js index 00eeecc00..21de549ec 100644 --- a/js/proto/tendermint/p2p/types_pb.js +++ b/js/proto/tendermint/p2p/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/privval/types_pb.d.ts b/js/proto/tendermint/privval/types_pb.d.ts index ff0f131e0..c3e862cd4 100644 --- a/js/proto/tendermint/privval/types_pb.d.ts +++ b/js/proto/tendermint/privval/types_pb.d.ts @@ -12,11 +12,9 @@ import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; export class RemoteSignerError extends jspb.Message { getCode(): number; setCode(value: number): RemoteSignerError; - getDescription(): string; setDescription(value: string): RemoteSignerError; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RemoteSignerError.AsObject; static toObject(includeInstance: boolean, msg: RemoteSignerError): RemoteSignerError.AsObject; @@ -38,7 +36,6 @@ export class PubKeyRequest extends jspb.Message { getChainId(): string; setChainId(value: string): PubKeyRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PubKeyRequest.AsObject; static toObject(includeInstance: boolean, msg: PubKeyRequest): PubKeyRequest.AsObject; @@ -62,13 +59,11 @@ export class PubKeyResponse extends jspb.Message { getPubKey(): tendermint_crypto_keys_pb.PublicKey | undefined; setPubKey(value?: tendermint_crypto_keys_pb.PublicKey): PubKeyResponse; - hasError(): boolean; clearError(): void; getError(): RemoteSignerError | undefined; setError(value?: RemoteSignerError): PubKeyResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PubKeyResponse.AsObject; static toObject(includeInstance: boolean, msg: PubKeyResponse): PubKeyResponse.AsObject; @@ -92,11 +87,9 @@ export class SignVoteRequest extends jspb.Message { clearVote(): void; getVote(): tendermint_types_types_pb.Vote | undefined; setVote(value?: tendermint_types_types_pb.Vote): SignVoteRequest; - getChainId(): string; setChainId(value: string): SignVoteRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignVoteRequest.AsObject; static toObject(includeInstance: boolean, msg: SignVoteRequest): SignVoteRequest.AsObject; @@ -121,13 +114,11 @@ export class SignedVoteResponse extends jspb.Message { getVote(): tendermint_types_types_pb.Vote | undefined; setVote(value?: tendermint_types_types_pb.Vote): SignedVoteResponse; - hasError(): boolean; clearError(): void; getError(): RemoteSignerError | undefined; setError(value?: RemoteSignerError): SignedVoteResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignedVoteResponse.AsObject; static toObject(includeInstance: boolean, msg: SignedVoteResponse): SignedVoteResponse.AsObject; @@ -151,11 +142,9 @@ export class SignProposalRequest extends jspb.Message { clearProposal(): void; getProposal(): tendermint_types_types_pb.Proposal | undefined; setProposal(value?: tendermint_types_types_pb.Proposal): SignProposalRequest; - getChainId(): string; setChainId(value: string): SignProposalRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignProposalRequest.AsObject; static toObject(includeInstance: boolean, msg: SignProposalRequest): SignProposalRequest.AsObject; @@ -180,13 +169,11 @@ export class SignedProposalResponse extends jspb.Message { getProposal(): tendermint_types_types_pb.Proposal | undefined; setProposal(value?: tendermint_types_types_pb.Proposal): SignedProposalResponse; - hasError(): boolean; clearError(): void; getError(): RemoteSignerError | undefined; setError(value?: RemoteSignerError): SignedProposalResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignedProposalResponse.AsObject; static toObject(includeInstance: boolean, msg: SignedProposalResponse): SignedProposalResponse.AsObject; @@ -245,49 +232,41 @@ export class Message extends jspb.Message { getPubKeyRequest(): PubKeyRequest | undefined; setPubKeyRequest(value?: PubKeyRequest): Message; - hasPubKeyResponse(): boolean; clearPubKeyResponse(): void; getPubKeyResponse(): PubKeyResponse | undefined; setPubKeyResponse(value?: PubKeyResponse): Message; - hasSignVoteRequest(): boolean; clearSignVoteRequest(): void; getSignVoteRequest(): SignVoteRequest | undefined; setSignVoteRequest(value?: SignVoteRequest): Message; - hasSignedVoteResponse(): boolean; clearSignedVoteResponse(): void; getSignedVoteResponse(): SignedVoteResponse | undefined; setSignedVoteResponse(value?: SignedVoteResponse): Message; - hasSignProposalRequest(): boolean; clearSignProposalRequest(): void; getSignProposalRequest(): SignProposalRequest | undefined; setSignProposalRequest(value?: SignProposalRequest): Message; - hasSignedProposalResponse(): boolean; clearSignedProposalResponse(): void; getSignedProposalResponse(): SignedProposalResponse | undefined; setSignedProposalResponse(value?: SignedProposalResponse): Message; - hasPingRequest(): boolean; clearPingRequest(): void; getPingRequest(): PingRequest | undefined; setPingRequest(value?: PingRequest): Message; - hasPingResponse(): boolean; clearPingResponse(): void; getPingResponse(): PingResponse | undefined; setPingResponse(value?: PingResponse): Message; - getSumCase(): Message.SumCase; serializeBinary(): Uint8Array; @@ -314,23 +293,14 @@ export namespace Message { export enum SumCase { SUM_NOT_SET = 0, - - PUB_KEY_REQUEST = 1, - - PUB_KEY_RESPONSE = 2, - - SIGN_VOTE_REQUEST = 3, - - SIGNED_VOTE_RESPONSE = 4, - - SIGN_PROPOSAL_REQUEST = 5, - - SIGNED_PROPOSAL_RESPONSE = 6, - - PING_REQUEST = 7, - - PING_RESPONSE = 8, - + PUB_KEY_REQUEST = 1, + PUB_KEY_RESPONSE = 2, + SIGN_VOTE_REQUEST = 3, + SIGNED_VOTE_RESPONSE = 4, + SIGN_PROPOSAL_REQUEST = 5, + SIGNED_PROPOSAL_RESPONSE = 6, + PING_REQUEST = 7, + PING_RESPONSE = 8, } } diff --git a/js/proto/tendermint/privval/types_pb.js b/js/proto/tendermint/privval/types_pb.js index 388f57893..4634d4e23 100644 --- a/js/proto/tendermint/privval/types_pb.js +++ b/js/proto/tendermint/privval/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/rpc/grpc/types_grpc_pb.js b/js/proto/tendermint/rpc/grpc/types_grpc_pb.js index b3135236c..f02c825b0 100644 --- a/js/proto/tendermint/rpc/grpc/types_grpc_pb.js +++ b/js/proto/tendermint/rpc/grpc/types_grpc_pb.js @@ -1,6 +1,7 @@ // GENERATED CODE -- DO NOT EDIT! 'use strict'; +var grpc = require('@grpc/grpc-js'); var tendermint_rpc_grpc_types_pb = require('../../../tendermint/rpc/grpc/types_pb.js'); var tendermint_abci_types_pb = require('../../../tendermint/abci/types_pb.js'); @@ -52,7 +53,7 @@ function deserialize_tendermint_rpc_grpc_ResponsePing(buffer_arg) { // ---------------------------------------- // Service Definition // -var BroadcastAPIService = exports['tendermint.rpc.grpc.BroadcastAPI'] = { +var BroadcastAPIService = exports.BroadcastAPIService = { ping: { path: '/tendermint.rpc.grpc.BroadcastAPI/Ping', requestStream: false, @@ -77,3 +78,4 @@ var BroadcastAPIService = exports['tendermint.rpc.grpc.BroadcastAPI'] = { }, }; +exports.BroadcastAPIClient = grpc.makeGenericClientConstructor(BroadcastAPIService); diff --git a/js/proto/tendermint/rpc/grpc/types_pb.d.ts b/js/proto/tendermint/rpc/grpc/types_pb.d.ts index afee84671..4ddd315bb 100644 --- a/js/proto/tendermint/rpc/grpc/types_pb.d.ts +++ b/js/proto/tendermint/rpc/grpc/types_pb.d.ts @@ -30,7 +30,6 @@ export class RequestBroadcastTx extends jspb.Message { getTx_asB64(): string; setTx(value: Uint8Array | string): RequestBroadcastTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RequestBroadcastTx.AsObject; static toObject(includeInstance: boolean, msg: RequestBroadcastTx): RequestBroadcastTx.AsObject; @@ -71,13 +70,11 @@ export class ResponseBroadcastTx extends jspb.Message { getCheckTx(): tendermint_abci_types_pb.ResponseCheckTx | undefined; setCheckTx(value?: tendermint_abci_types_pb.ResponseCheckTx): ResponseBroadcastTx; - hasDeliverTx(): boolean; clearDeliverTx(): void; getDeliverTx(): tendermint_abci_types_pb.ResponseDeliverTx | undefined; setDeliverTx(value?: tendermint_abci_types_pb.ResponseDeliverTx): ResponseBroadcastTx; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ResponseBroadcastTx.AsObject; static toObject(includeInstance: boolean, msg: ResponseBroadcastTx): ResponseBroadcastTx.AsObject; diff --git a/js/proto/tendermint/rpc/grpc/types_pb.js b/js/proto/tendermint/rpc/grpc/types_pb.js index 62dcac82d..5f985ada0 100644 --- a/js/proto/tendermint/rpc/grpc/types_pb.js +++ b/js/proto/tendermint/rpc/grpc/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/state/types_pb.d.ts b/js/proto/tendermint/state/types_pb.d.ts index 2c3657c70..36edb822e 100644 --- a/js/proto/tendermint/state/types_pb.d.ts +++ b/js/proto/tendermint/state/types_pb.d.ts @@ -19,19 +19,16 @@ export class ABCIResponses extends jspb.Message { setDeliverTxsList(value: Array): ABCIResponses; addDeliverTxs(value?: tendermint_abci_types_pb.ResponseDeliverTx, index?: number): tendermint_abci_types_pb.ResponseDeliverTx; - hasEndBlock(): boolean; clearEndBlock(): void; getEndBlock(): tendermint_abci_types_pb.ResponseEndBlock | undefined; setEndBlock(value?: tendermint_abci_types_pb.ResponseEndBlock): ABCIResponses; - hasBeginBlock(): boolean; clearBeginBlock(): void; getBeginBlock(): tendermint_abci_types_pb.ResponseBeginBlock | undefined; setBeginBlock(value?: tendermint_abci_types_pb.ResponseBeginBlock): ABCIResponses; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ABCIResponses.AsObject; static toObject(includeInstance: boolean, msg: ABCIResponses): ABCIResponses.AsObject; @@ -56,11 +53,9 @@ export class ValidatorsInfo extends jspb.Message { clearValidatorSet(): void; getValidatorSet(): tendermint_types_validator_pb.ValidatorSet | undefined; setValidatorSet(value?: tendermint_types_validator_pb.ValidatorSet): ValidatorsInfo; - getLastHeightChanged(): number; setLastHeightChanged(value: number): ValidatorsInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValidatorsInfo.AsObject; static toObject(includeInstance: boolean, msg: ValidatorsInfo): ValidatorsInfo.AsObject; @@ -84,11 +79,9 @@ export class ConsensusParamsInfo extends jspb.Message { clearConsensusParams(): void; getConsensusParams(): tendermint_types_params_pb.ConsensusParams | undefined; setConsensusParams(value?: tendermint_types_params_pb.ConsensusParams): ConsensusParamsInfo; - getLastHeightChanged(): number; setLastHeightChanged(value: number): ConsensusParamsInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConsensusParamsInfo.AsObject; static toObject(includeInstance: boolean, msg: ConsensusParamsInfo): ConsensusParamsInfo.AsObject; @@ -112,11 +105,9 @@ export class Version extends jspb.Message { clearConsensus(): void; getConsensus(): tendermint_version_types_pb.Consensus | undefined; setConsensus(value?: tendermint_version_types_pb.Consensus): Version; - getSoftware(): string; setSoftware(value: string): Version; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Version.AsObject; static toObject(includeInstance: boolean, msg: Version): Version.AsObject; @@ -140,69 +131,55 @@ export class State extends jspb.Message { clearVersion(): void; getVersion(): Version | undefined; setVersion(value?: Version): State; - getChainId(): string; setChainId(value: string): State; - getInitialHeight(): number; setInitialHeight(value: number): State; - getLastBlockHeight(): number; setLastBlockHeight(value: number): State; - hasLastBlockId(): boolean; clearLastBlockId(): void; getLastBlockId(): tendermint_types_types_pb.BlockID | undefined; setLastBlockId(value?: tendermint_types_types_pb.BlockID): State; - hasLastBlockTime(): boolean; clearLastBlockTime(): void; getLastBlockTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setLastBlockTime(value?: google_protobuf_timestamp_pb.Timestamp): State; - hasNextValidators(): boolean; clearNextValidators(): void; getNextValidators(): tendermint_types_validator_pb.ValidatorSet | undefined; setNextValidators(value?: tendermint_types_validator_pb.ValidatorSet): State; - hasValidators(): boolean; clearValidators(): void; getValidators(): tendermint_types_validator_pb.ValidatorSet | undefined; setValidators(value?: tendermint_types_validator_pb.ValidatorSet): State; - hasLastValidators(): boolean; clearLastValidators(): void; getLastValidators(): tendermint_types_validator_pb.ValidatorSet | undefined; setLastValidators(value?: tendermint_types_validator_pb.ValidatorSet): State; - getLastHeightValidatorsChanged(): number; setLastHeightValidatorsChanged(value: number): State; - hasConsensusParams(): boolean; clearConsensusParams(): void; getConsensusParams(): tendermint_types_params_pb.ConsensusParams | undefined; setConsensusParams(value?: tendermint_types_params_pb.ConsensusParams): State; - getLastHeightConsensusParamsChanged(): number; setLastHeightConsensusParamsChanged(value: number): State; - getLastResultsHash(): Uint8Array | string; getLastResultsHash_asU8(): Uint8Array; getLastResultsHash_asB64(): string; setLastResultsHash(value: Uint8Array | string): State; - getAppHash(): Uint8Array | string; getAppHash_asU8(): Uint8Array; getAppHash_asB64(): string; setAppHash(value: Uint8Array | string): State; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): State.AsObject; static toObject(includeInstance: boolean, msg: State): State.AsObject; diff --git a/js/proto/tendermint/state/types_pb.js b/js/proto/tendermint/state/types_pb.js index 7868b2af4..60a782ec1 100644 --- a/js/proto/tendermint/state/types_pb.js +++ b/js/proto/tendermint/state/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/statesync/types_pb.d.ts b/js/proto/tendermint/statesync/types_pb.d.ts index 089fd9602..828ff7ba5 100644 --- a/js/proto/tendermint/statesync/types_pb.d.ts +++ b/js/proto/tendermint/statesync/types_pb.d.ts @@ -13,25 +13,21 @@ export class Message extends jspb.Message { getSnapshotsRequest(): SnapshotsRequest | undefined; setSnapshotsRequest(value?: SnapshotsRequest): Message; - hasSnapshotsResponse(): boolean; clearSnapshotsResponse(): void; getSnapshotsResponse(): SnapshotsResponse | undefined; setSnapshotsResponse(value?: SnapshotsResponse): Message; - hasChunkRequest(): boolean; clearChunkRequest(): void; getChunkRequest(): ChunkRequest | undefined; setChunkRequest(value?: ChunkRequest): Message; - hasChunkResponse(): boolean; clearChunkResponse(): void; getChunkResponse(): ChunkResponse | undefined; setChunkResponse(value?: ChunkResponse): Message; - getSumCase(): Message.SumCase; serializeBinary(): Uint8Array; @@ -54,15 +50,10 @@ export namespace Message { export enum SumCase { SUM_NOT_SET = 0, - - SNAPSHOTS_REQUEST = 1, - - SNAPSHOTS_RESPONSE = 2, - - CHUNK_REQUEST = 3, - - CHUNK_RESPONSE = 4, - + SNAPSHOTS_REQUEST = 1, + SNAPSHOTS_RESPONSE = 2, + CHUNK_REQUEST = 3, + CHUNK_RESPONSE = 4, } } @@ -87,24 +78,19 @@ export namespace SnapshotsRequest { export class SnapshotsResponse extends jspb.Message { getHeight(): number; setHeight(value: number): SnapshotsResponse; - getFormat(): number; setFormat(value: number): SnapshotsResponse; - getChunks(): number; setChunks(value: number): SnapshotsResponse; - getHash(): Uint8Array | string; getHash_asU8(): Uint8Array; getHash_asB64(): string; setHash(value: Uint8Array | string): SnapshotsResponse; - getMetadata(): Uint8Array | string; getMetadata_asU8(): Uint8Array; getMetadata_asB64(): string; setMetadata(value: Uint8Array | string): SnapshotsResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SnapshotsResponse.AsObject; static toObject(includeInstance: boolean, msg: SnapshotsResponse): SnapshotsResponse.AsObject; @@ -128,14 +114,11 @@ export namespace SnapshotsResponse { export class ChunkRequest extends jspb.Message { getHeight(): number; setHeight(value: number): ChunkRequest; - getFormat(): number; setFormat(value: number): ChunkRequest; - getIndex(): number; setIndex(value: number): ChunkRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ChunkRequest.AsObject; static toObject(includeInstance: boolean, msg: ChunkRequest): ChunkRequest.AsObject; @@ -157,22 +140,17 @@ export namespace ChunkRequest { export class ChunkResponse extends jspb.Message { getHeight(): number; setHeight(value: number): ChunkResponse; - getFormat(): number; setFormat(value: number): ChunkResponse; - getIndex(): number; setIndex(value: number): ChunkResponse; - getChunk(): Uint8Array | string; getChunk_asU8(): Uint8Array; getChunk_asB64(): string; setChunk(value: Uint8Array | string): ChunkResponse; - getMissing(): boolean; setMissing(value: boolean): ChunkResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ChunkResponse.AsObject; static toObject(includeInstance: boolean, msg: ChunkResponse): ChunkResponse.AsObject; diff --git a/js/proto/tendermint/statesync/types_pb.js b/js/proto/tendermint/statesync/types_pb.js index 10db6b29e..e28c4c2dd 100644 --- a/js/proto/tendermint/statesync/types_pb.js +++ b/js/proto/tendermint/statesync/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/store/types_pb.d.ts b/js/proto/tendermint/store/types_pb.d.ts index 67e4e249a..c52a50fb6 100644 --- a/js/proto/tendermint/store/types_pb.d.ts +++ b/js/proto/tendermint/store/types_pb.d.ts @@ -9,11 +9,9 @@ import * as jspb from "google-protobuf"; export class BlockStoreState extends jspb.Message { getBase(): number; setBase(value: number): BlockStoreState; - getHeight(): number; setHeight(value: number): BlockStoreState; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockStoreState.AsObject; static toObject(includeInstance: boolean, msg: BlockStoreState): BlockStoreState.AsObject; diff --git a/js/proto/tendermint/store/types_pb.js b/js/proto/tendermint/store/types_pb.js index efc0dd653..3b158093a 100644 --- a/js/proto/tendermint/store/types_pb.js +++ b/js/proto/tendermint/store/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/block_pb.d.ts b/js/proto/tendermint/types/block_pb.d.ts index ceb01ae55..2a6dff63b 100644 --- a/js/proto/tendermint/types/block_pb.d.ts +++ b/js/proto/tendermint/types/block_pb.d.ts @@ -16,25 +16,21 @@ export class Block extends jspb.Message { getHeader(): tendermint_types_types_pb.Header | undefined; setHeader(value?: tendermint_types_types_pb.Header): Block; - hasData(): boolean; clearData(): void; getData(): tendermint_types_types_pb.Data | undefined; setData(value?: tendermint_types_types_pb.Data): Block; - hasEvidence(): boolean; clearEvidence(): void; getEvidence(): tendermint_types_evidence_pb.EvidenceList | undefined; setEvidence(value?: tendermint_types_evidence_pb.EvidenceList): Block; - hasLastCommit(): boolean; clearLastCommit(): void; getLastCommit(): tendermint_types_types_pb.Commit | undefined; setLastCommit(value?: tendermint_types_types_pb.Commit): Block; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Block.AsObject; static toObject(includeInstance: boolean, msg: Block): Block.AsObject; diff --git a/js/proto/tendermint/types/block_pb.js b/js/proto/tendermint/types/block_pb.js index 97f477eb7..7b6edd5d9 100644 --- a/js/proto/tendermint/types/block_pb.js +++ b/js/proto/tendermint/types/block_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/canonical_pb.d.ts b/js/proto/tendermint/types/canonical_pb.d.ts index 550878405..c39725249 100644 --- a/js/proto/tendermint/types/canonical_pb.d.ts +++ b/js/proto/tendermint/types/canonical_pb.d.ts @@ -15,13 +15,11 @@ export class CanonicalBlockID extends jspb.Message { getHash_asB64(): string; setHash(value: Uint8Array | string): CanonicalBlockID; - hasPartSetHeader(): boolean; clearPartSetHeader(): void; getPartSetHeader(): CanonicalPartSetHeader | undefined; setPartSetHeader(value?: CanonicalPartSetHeader): CanonicalBlockID; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CanonicalBlockID.AsObject; static toObject(includeInstance: boolean, msg: CanonicalBlockID): CanonicalBlockID.AsObject; @@ -42,13 +40,11 @@ export namespace CanonicalBlockID { export class CanonicalPartSetHeader extends jspb.Message { getTotal(): number; setTotal(value: number): CanonicalPartSetHeader; - getHash(): Uint8Array | string; getHash_asU8(): Uint8Array; getHash_asB64(): string; setHash(value: Uint8Array | string): CanonicalPartSetHeader; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CanonicalPartSetHeader.AsObject; static toObject(includeInstance: boolean, msg: CanonicalPartSetHeader): CanonicalPartSetHeader.AsObject; @@ -69,32 +65,25 @@ export namespace CanonicalPartSetHeader { export class CanonicalProposal extends jspb.Message { getType(): tendermint_types_types_pb.SignedMsgType; setType(value: tendermint_types_types_pb.SignedMsgType): CanonicalProposal; - getHeight(): number; setHeight(value: number): CanonicalProposal; - getRound(): number; setRound(value: number): CanonicalProposal; - getPolRound(): number; setPolRound(value: number): CanonicalProposal; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): CanonicalBlockID | undefined; setBlockId(value?: CanonicalBlockID): CanonicalProposal; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): CanonicalProposal; - getChainId(): string; setChainId(value: string): CanonicalProposal; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CanonicalProposal.AsObject; static toObject(includeInstance: boolean, msg: CanonicalProposal): CanonicalProposal.AsObject; @@ -120,29 +109,23 @@ export namespace CanonicalProposal { export class CanonicalVote extends jspb.Message { getType(): tendermint_types_types_pb.SignedMsgType; setType(value: tendermint_types_types_pb.SignedMsgType): CanonicalVote; - getHeight(): number; setHeight(value: number): CanonicalVote; - getRound(): number; setRound(value: number): CanonicalVote; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): CanonicalBlockID | undefined; setBlockId(value?: CanonicalBlockID): CanonicalVote; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): CanonicalVote; - getChainId(): string; setChainId(value: string): CanonicalVote; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CanonicalVote.AsObject; static toObject(includeInstance: boolean, msg: CanonicalVote): CanonicalVote.AsObject; diff --git a/js/proto/tendermint/types/canonical_pb.js b/js/proto/tendermint/types/canonical_pb.js index 8d5d6a708..093acda36 100644 --- a/js/proto/tendermint/types/canonical_pb.js +++ b/js/proto/tendermint/types/canonical_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/events_pb.d.ts b/js/proto/tendermint/types/events_pb.d.ts index cd516b0d5..9ce1da036 100644 --- a/js/proto/tendermint/types/events_pb.d.ts +++ b/js/proto/tendermint/types/events_pb.d.ts @@ -9,14 +9,11 @@ import * as jspb from "google-protobuf"; export class EventDataRoundState extends jspb.Message { getHeight(): number; setHeight(value: number): EventDataRoundState; - getRound(): number; setRound(value: number): EventDataRoundState; - getStep(): string; setStep(value: string): EventDataRoundState; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EventDataRoundState.AsObject; static toObject(includeInstance: boolean, msg: EventDataRoundState): EventDataRoundState.AsObject; diff --git a/js/proto/tendermint/types/events_pb.js b/js/proto/tendermint/types/events_pb.js index 59bdd691f..bec163690 100644 --- a/js/proto/tendermint/types/events_pb.js +++ b/js/proto/tendermint/types/events_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/evidence_pb.d.ts b/js/proto/tendermint/types/evidence_pb.d.ts index 2579a4603..43697e257 100644 --- a/js/proto/tendermint/types/evidence_pb.d.ts +++ b/js/proto/tendermint/types/evidence_pb.d.ts @@ -17,13 +17,11 @@ export class Evidence extends jspb.Message { getDuplicateVoteEvidence(): DuplicateVoteEvidence | undefined; setDuplicateVoteEvidence(value?: DuplicateVoteEvidence): Evidence; - hasLightClientAttackEvidence(): boolean; clearLightClientAttackEvidence(): void; getLightClientAttackEvidence(): LightClientAttackEvidence | undefined; setLightClientAttackEvidence(value?: LightClientAttackEvidence): Evidence; - getSumCase(): Evidence.SumCase; serializeBinary(): Uint8Array; @@ -44,11 +42,8 @@ export namespace Evidence { export enum SumCase { SUM_NOT_SET = 0, - - DUPLICATE_VOTE_EVIDENCE = 1, - - LIGHT_CLIENT_ATTACK_EVIDENCE = 2, - + DUPLICATE_VOTE_EVIDENCE = 1, + LIGHT_CLIENT_ATTACK_EVIDENCE = 2, } } @@ -60,25 +55,20 @@ export class DuplicateVoteEvidence extends jspb.Message { getVoteA(): tendermint_types_types_pb.Vote | undefined; setVoteA(value?: tendermint_types_types_pb.Vote): DuplicateVoteEvidence; - hasVoteB(): boolean; clearVoteB(): void; getVoteB(): tendermint_types_types_pb.Vote | undefined; setVoteB(value?: tendermint_types_types_pb.Vote): DuplicateVoteEvidence; - getTotalVotingPower(): number; setTotalVotingPower(value: number): DuplicateVoteEvidence; - getValidatorPower(): number; setValidatorPower(value: number): DuplicateVoteEvidence; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): DuplicateVoteEvidence; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DuplicateVoteEvidence.AsObject; static toObject(includeInstance: boolean, msg: DuplicateVoteEvidence): DuplicateVoteEvidence.AsObject; @@ -105,25 +95,20 @@ export class LightClientAttackEvidence extends jspb.Message { clearConflictingBlock(): void; getConflictingBlock(): tendermint_types_types_pb.LightBlock | undefined; setConflictingBlock(value?: tendermint_types_types_pb.LightBlock): LightClientAttackEvidence; - getCommonHeight(): number; setCommonHeight(value: number): LightClientAttackEvidence; - clearByzantineValidatorsList(): void; getByzantineValidatorsList(): Array; setByzantineValidatorsList(value: Array): LightClientAttackEvidence; addByzantineValidators(value?: tendermint_types_validator_pb.Validator, index?: number): tendermint_types_validator_pb.Validator; - getTotalVotingPower(): number; setTotalVotingPower(value: number): LightClientAttackEvidence; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): LightClientAttackEvidence; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LightClientAttackEvidence.AsObject; static toObject(includeInstance: boolean, msg: LightClientAttackEvidence): LightClientAttackEvidence.AsObject; @@ -150,7 +135,6 @@ export class EvidenceList extends jspb.Message { setEvidenceList(value: Array): EvidenceList; addEvidence(value?: Evidence, index?: number): Evidence; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EvidenceList.AsObject; static toObject(includeInstance: boolean, msg: EvidenceList): EvidenceList.AsObject; diff --git a/js/proto/tendermint/types/evidence_pb.js b/js/proto/tendermint/types/evidence_pb.js index 8455dc943..10b45a16f 100644 --- a/js/proto/tendermint/types/evidence_pb.js +++ b/js/proto/tendermint/types/evidence_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/params_pb.d.ts b/js/proto/tendermint/types/params_pb.d.ts index a36d5a879..af068a9e3 100644 --- a/js/proto/tendermint/types/params_pb.d.ts +++ b/js/proto/tendermint/types/params_pb.d.ts @@ -15,25 +15,21 @@ export class ConsensusParams extends jspb.Message { getBlock(): BlockParams | undefined; setBlock(value?: BlockParams): ConsensusParams; - hasEvidence(): boolean; clearEvidence(): void; getEvidence(): EvidenceParams | undefined; setEvidence(value?: EvidenceParams): ConsensusParams; - hasValidator(): boolean; clearValidator(): void; getValidator(): ValidatorParams | undefined; setValidator(value?: ValidatorParams): ConsensusParams; - hasVersion(): boolean; clearVersion(): void; getVersion(): VersionParams | undefined; setVersion(value?: VersionParams): ConsensusParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConsensusParams.AsObject; static toObject(includeInstance: boolean, msg: ConsensusParams): ConsensusParams.AsObject; @@ -56,14 +52,11 @@ export namespace ConsensusParams { export class BlockParams extends jspb.Message { getMaxBytes(): number; setMaxBytes(value: number): BlockParams; - getMaxGas(): number; setMaxGas(value: number): BlockParams; - getTimeIotaMs(): number; setTimeIotaMs(value: number): BlockParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockParams.AsObject; static toObject(includeInstance: boolean, msg: BlockParams): BlockParams.AsObject; @@ -86,16 +79,13 @@ export class EvidenceParams extends jspb.Message { getMaxAgeNumBlocks(): number; setMaxAgeNumBlocks(value: number): EvidenceParams; - hasMaxAgeDuration(): boolean; clearMaxAgeDuration(): void; getMaxAgeDuration(): google_protobuf_duration_pb.Duration | undefined; setMaxAgeDuration(value?: google_protobuf_duration_pb.Duration): EvidenceParams; - getMaxBytes(): number; setMaxBytes(value: number): EvidenceParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EvidenceParams.AsObject; static toObject(includeInstance: boolean, msg: EvidenceParams): EvidenceParams.AsObject; @@ -120,7 +110,6 @@ export class ValidatorParams extends jspb.Message { setPubKeyTypesList(value: Array): ValidatorParams; addPubKeyTypes(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValidatorParams.AsObject; static toObject(includeInstance: boolean, msg: ValidatorParams): ValidatorParams.AsObject; @@ -141,7 +130,6 @@ export class VersionParams extends jspb.Message { getAppVersion(): number; setAppVersion(value: number): VersionParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): VersionParams.AsObject; static toObject(includeInstance: boolean, msg: VersionParams): VersionParams.AsObject; @@ -161,11 +149,9 @@ export namespace VersionParams { export class HashedParams extends jspb.Message { getBlockMaxBytes(): number; setBlockMaxBytes(value: number): HashedParams; - getBlockMaxGas(): number; setBlockMaxGas(value: number): HashedParams; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HashedParams.AsObject; static toObject(includeInstance: boolean, msg: HashedParams): HashedParams.AsObject; diff --git a/js/proto/tendermint/types/params_pb.js b/js/proto/tendermint/types/params_pb.js index bf1817385..6abb99bc4 100644 --- a/js/proto/tendermint/types/params_pb.js +++ b/js/proto/tendermint/types/params_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/types_pb.d.ts b/js/proto/tendermint/types/types_pb.d.ts index 73939a4d3..de85b9033 100644 --- a/js/proto/tendermint/types/types_pb.d.ts +++ b/js/proto/tendermint/types/types_pb.d.ts @@ -14,13 +14,11 @@ import * as tendermint_types_validator_pb from "../../tendermint/types/validator export class PartSetHeader extends jspb.Message { getTotal(): number; setTotal(value: number): PartSetHeader; - getHash(): Uint8Array | string; getHash_asU8(): Uint8Array; getHash_asB64(): string; setHash(value: Uint8Array | string): PartSetHeader; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PartSetHeader.AsObject; static toObject(includeInstance: boolean, msg: PartSetHeader): PartSetHeader.AsObject; @@ -41,19 +39,16 @@ export namespace PartSetHeader { export class Part extends jspb.Message { getIndex(): number; setIndex(value: number): Part; - getBytes(): Uint8Array | string; getBytes_asU8(): Uint8Array; getBytes_asB64(): string; setBytes(value: Uint8Array | string): Part; - hasProof(): boolean; clearProof(): void; getProof(): tendermint_crypto_proof_pb.Proof | undefined; setProof(value?: tendermint_crypto_proof_pb.Proof): Part; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Part.AsObject; static toObject(includeInstance: boolean, msg: Part): Part.AsObject; @@ -78,13 +73,11 @@ export class BlockID extends jspb.Message { getHash_asB64(): string; setHash(value: Uint8Array | string): BlockID; - hasPartSetHeader(): boolean; clearPartSetHeader(): void; getPartSetHeader(): PartSetHeader | undefined; setPartSetHeader(value?: PartSetHeader): BlockID; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockID.AsObject; static toObject(includeInstance: boolean, msg: BlockID): BlockID.AsObject; @@ -108,71 +101,57 @@ export class Header extends jspb.Message { clearVersion(): void; getVersion(): tendermint_version_types_pb.Consensus | undefined; setVersion(value?: tendermint_version_types_pb.Consensus): Header; - getChainId(): string; setChainId(value: string): Header; - getHeight(): number; setHeight(value: number): Header; - hasTime(): boolean; clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): Header; - hasLastBlockId(): boolean; clearLastBlockId(): void; getLastBlockId(): BlockID | undefined; setLastBlockId(value?: BlockID): Header; - getLastCommitHash(): Uint8Array | string; getLastCommitHash_asU8(): Uint8Array; getLastCommitHash_asB64(): string; setLastCommitHash(value: Uint8Array | string): Header; - getDataHash(): Uint8Array | string; getDataHash_asU8(): Uint8Array; getDataHash_asB64(): string; setDataHash(value: Uint8Array | string): Header; - getValidatorsHash(): Uint8Array | string; getValidatorsHash_asU8(): Uint8Array; getValidatorsHash_asB64(): string; setValidatorsHash(value: Uint8Array | string): Header; - getNextValidatorsHash(): Uint8Array | string; getNextValidatorsHash_asU8(): Uint8Array; getNextValidatorsHash_asB64(): string; setNextValidatorsHash(value: Uint8Array | string): Header; - getConsensusHash(): Uint8Array | string; getConsensusHash_asU8(): Uint8Array; getConsensusHash_asB64(): string; setConsensusHash(value: Uint8Array | string): Header; - getAppHash(): Uint8Array | string; getAppHash_asU8(): Uint8Array; getAppHash_asB64(): string; setAppHash(value: Uint8Array | string): Header; - getLastResultsHash(): Uint8Array | string; getLastResultsHash_asU8(): Uint8Array; getLastResultsHash_asB64(): string; setLastResultsHash(value: Uint8Array | string): Header; - getEvidenceHash(): Uint8Array | string; getEvidenceHash_asU8(): Uint8Array; getEvidenceHash_asB64(): string; setEvidenceHash(value: Uint8Array | string): Header; - getProposerAddress(): Uint8Array | string; getProposerAddress_asU8(): Uint8Array; getProposerAddress_asB64(): string; setProposerAddress(value: Uint8Array | string): Header; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Header.AsObject; static toObject(includeInstance: boolean, msg: Header): Header.AsObject; @@ -210,7 +189,6 @@ export class Data extends jspb.Message { setTxsList(value: Array): Data; addTxs(value: Uint8Array | string, index?: number): Uint8Array | string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Data.AsObject; static toObject(includeInstance: boolean, msg: Data): Data.AsObject; @@ -230,39 +208,31 @@ export namespace Data { export class Vote extends jspb.Message { getType(): SignedMsgType; setType(value: SignedMsgType): Vote; - getHeight(): number; setHeight(value: number): Vote; - getRound(): number; setRound(value: number): Vote; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): BlockID | undefined; setBlockId(value?: BlockID): Vote; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): Vote; - getValidatorAddress(): Uint8Array | string; getValidatorAddress_asU8(): Uint8Array; getValidatorAddress_asB64(): string; setValidatorAddress(value: Uint8Array | string): Vote; - getValidatorIndex(): number; setValidatorIndex(value: number): Vote; - getSignature(): Uint8Array | string; getSignature_asU8(): Uint8Array; getSignature_asB64(): string; setSignature(value: Uint8Array | string): Vote; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Vote.AsObject; static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; @@ -289,22 +259,18 @@ export namespace Vote { export class Commit extends jspb.Message { getHeight(): number; setHeight(value: number): Commit; - getRound(): number; setRound(value: number): Commit; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): BlockID | undefined; setBlockId(value?: BlockID): Commit; - clearSignaturesList(): void; getSignaturesList(): Array; setSignaturesList(value: Array): Commit; addSignatures(value?: CommitSig, index?: number): CommitSig; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Commit.AsObject; static toObject(includeInstance: boolean, msg: Commit): Commit.AsObject; @@ -327,24 +293,20 @@ export namespace Commit { export class CommitSig extends jspb.Message { getBlockIdFlag(): BlockIDFlag; setBlockIdFlag(value: BlockIDFlag): CommitSig; - getValidatorAddress(): Uint8Array | string; getValidatorAddress_asU8(): Uint8Array; getValidatorAddress_asB64(): string; setValidatorAddress(value: Uint8Array | string): CommitSig; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): CommitSig; - getSignature(): Uint8Array | string; getSignature_asU8(): Uint8Array; getSignature_asB64(): string; setSignature(value: Uint8Array | string): CommitSig; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CommitSig.AsObject; static toObject(includeInstance: boolean, msg: CommitSig): CommitSig.AsObject; @@ -367,34 +329,27 @@ export namespace CommitSig { export class Proposal extends jspb.Message { getType(): SignedMsgType; setType(value: SignedMsgType): Proposal; - getHeight(): number; setHeight(value: number): Proposal; - getRound(): number; setRound(value: number): Proposal; - getPolRound(): number; setPolRound(value: number): Proposal; - hasBlockId(): boolean; clearBlockId(): void; getBlockId(): BlockID | undefined; setBlockId(value?: BlockID): Proposal; - hasTimestamp(): boolean; clearTimestamp(): void; getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): Proposal; - getSignature(): Uint8Array | string; getSignature_asU8(): Uint8Array; getSignature_asB64(): string; setSignature(value: Uint8Array | string): Proposal; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Proposal.AsObject; static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; @@ -424,13 +379,11 @@ export class SignedHeader extends jspb.Message { getHeader(): Header | undefined; setHeader(value?: Header): SignedHeader; - hasCommit(): boolean; clearCommit(): void; getCommit(): Commit | undefined; setCommit(value?: Commit): SignedHeader; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SignedHeader.AsObject; static toObject(includeInstance: boolean, msg: SignedHeader): SignedHeader.AsObject; @@ -455,13 +408,11 @@ export class LightBlock extends jspb.Message { getSignedHeader(): SignedHeader | undefined; setSignedHeader(value?: SignedHeader): LightBlock; - hasValidatorSet(): boolean; clearValidatorSet(): void; getValidatorSet(): tendermint_types_validator_pb.ValidatorSet | undefined; setValidatorSet(value?: tendermint_types_validator_pb.ValidatorSet): LightBlock; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LightBlock.AsObject; static toObject(includeInstance: boolean, msg: LightBlock): LightBlock.AsObject; @@ -485,20 +436,16 @@ export class BlockMeta extends jspb.Message { clearBlockId(): void; getBlockId(): BlockID | undefined; setBlockId(value?: BlockID): BlockMeta; - getBlockSize(): number; setBlockSize(value: number): BlockMeta; - hasHeader(): boolean; clearHeader(): void; getHeader(): Header | undefined; setHeader(value?: Header): BlockMeta; - getNumTxs(): number; setNumTxs(value: number): BlockMeta; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BlockMeta.AsObject; static toObject(includeInstance: boolean, msg: BlockMeta): BlockMeta.AsObject; @@ -523,19 +470,16 @@ export class TxProof extends jspb.Message { getRootHash_asU8(): Uint8Array; getRootHash_asB64(): string; setRootHash(value: Uint8Array | string): TxProof; - getData(): Uint8Array | string; getData_asU8(): Uint8Array; getData_asB64(): string; setData(value: Uint8Array | string): TxProof; - hasProof(): boolean; clearProof(): void; getProof(): tendermint_crypto_proof_pb.Proof | undefined; setProof(value?: tendermint_crypto_proof_pb.Proof): TxProof; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TxProof.AsObject; static toObject(includeInstance: boolean, msg: TxProof): TxProof.AsObject; diff --git a/js/proto/tendermint/types/types_pb.js b/js/proto/tendermint/types/types_pb.js index aeaa1003a..888838def 100644 --- a/js/proto/tendermint/types/types_pb.js +++ b/js/proto/tendermint/types/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/types/validator_pb.d.ts b/js/proto/tendermint/types/validator_pb.d.ts index ce221b924..5c5417b5f 100644 --- a/js/proto/tendermint/types/validator_pb.d.ts +++ b/js/proto/tendermint/types/validator_pb.d.ts @@ -14,16 +14,13 @@ export class ValidatorSet extends jspb.Message { setValidatorsList(value: Array): ValidatorSet; addValidators(value?: Validator, index?: number): Validator; - hasProposer(): boolean; clearProposer(): void; getProposer(): Validator | undefined; setProposer(value?: Validator): ValidatorSet; - getTotalVotingPower(): number; setTotalVotingPower(value: number): ValidatorSet; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ValidatorSet.AsObject; static toObject(includeInstance: boolean, msg: ValidatorSet): ValidatorSet.AsObject; @@ -48,19 +45,15 @@ export class Validator extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): Validator; - hasPubKey(): boolean; clearPubKey(): void; getPubKey(): tendermint_crypto_keys_pb.PublicKey | undefined; setPubKey(value?: tendermint_crypto_keys_pb.PublicKey): Validator; - getVotingPower(): number; setVotingPower(value: number): Validator; - getProposerPriority(): number; setProposerPriority(value: number): Validator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Validator.AsObject; static toObject(includeInstance: boolean, msg: Validator): Validator.AsObject; @@ -86,11 +79,9 @@ export class SimpleValidator extends jspb.Message { clearPubKey(): void; getPubKey(): tendermint_crypto_keys_pb.PublicKey | undefined; setPubKey(value?: tendermint_crypto_keys_pb.PublicKey): SimpleValidator; - getVotingPower(): number; setVotingPower(value: number): SimpleValidator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SimpleValidator.AsObject; static toObject(includeInstance: boolean, msg: SimpleValidator): SimpleValidator.AsObject; diff --git a/js/proto/tendermint/types/validator_pb.js b/js/proto/tendermint/types/validator_pb.js index 6314e5c75..38a709fc0 100644 --- a/js/proto/tendermint/types/validator_pb.js +++ b/js/proto/tendermint/types/validator_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint/version/types_pb.d.ts b/js/proto/tendermint/version/types_pb.d.ts index efa883cbf..679a48d64 100644 --- a/js/proto/tendermint/version/types_pb.d.ts +++ b/js/proto/tendermint/version/types_pb.d.ts @@ -10,11 +10,9 @@ import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; export class App extends jspb.Message { getProtocol(): number; setProtocol(value: number): App; - getSoftware(): string; setSoftware(value: string): App; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): App.AsObject; static toObject(includeInstance: boolean, msg: App): App.AsObject; @@ -35,11 +33,9 @@ export namespace App { export class Consensus extends jspb.Message { getBlock(): number; setBlock(value: number): Consensus; - getApp(): number; setApp(value: number): Consensus; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Consensus.AsObject; static toObject(includeInstance: boolean, msg: Consensus): Consensus.AsObject; diff --git a/js/proto/tendermint/version/types_pb.js b/js/proto/tendermint/version/types_pb.js index 2617a64b2..962915422 100644 --- a/js/proto/tendermint/version/types_pb.js +++ b/js/proto/tendermint/version/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/tendermint_pb.d.ts b/js/proto/tendermint_pb.d.ts index e07b68a42..749e14041 100644 --- a/js/proto/tendermint_pb.d.ts +++ b/js/proto/tendermint_pb.d.ts @@ -12,31 +12,23 @@ export class NodeInfo extends jspb.Message { getId_asU8(): Uint8Array; getId_asB64(): string; setId(value: Uint8Array | string): NodeInfo; - getListenaddress(): string; setListenaddress(value: string): NodeInfo; - getNetwork(): string; setNetwork(value: string): NodeInfo; - getVersion(): string; setVersion(value: string): NodeInfo; - getChannels(): Uint8Array | string; getChannels_asU8(): Uint8Array; getChannels_asB64(): string; setChannels(value: Uint8Array | string): NodeInfo; - getMoniker(): string; setMoniker(value: string): NodeInfo; - getRpcaddress(): string; setRpcaddress(value: string): NodeInfo; - getTxindex(): string; setTxindex(value: string): NodeInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NodeInfo.AsObject; static toObject(includeInstance: boolean, msg: NodeInfo): NodeInfo.AsObject; diff --git a/js/proto/tendermint_pb.js b/js/proto/tendermint_pb.js index f2c88d2ec..f4427001f 100644 --- a/js/proto/tendermint_pb.js +++ b/js/proto/tendermint_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/txs_pb.d.ts b/js/proto/txs_pb.d.ts index 567732c17..8311fca10 100644 --- a/js/proto/txs_pb.d.ts +++ b/js/proto/txs_pb.d.ts @@ -13,16 +13,13 @@ export class Envelope extends jspb.Message { getSignatoriesList(): Array; setSignatoriesList(value: Array): Envelope; addSignatories(value?: Signatory, index?: number): Signatory; - getTx(): Uint8Array | string; getTx_asU8(): Uint8Array; getTx_asB64(): string; setTx(value: Uint8Array | string): Envelope; - getEncoding(): Envelope.EncodingType; setEncoding(value: Envelope.EncodingType): Envelope; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Envelope.AsObject; static toObject(includeInstance: boolean, msg: Envelope): Envelope.AsObject; @@ -53,19 +50,16 @@ export class Signatory extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): Signatory; - hasPublickey(): boolean; clearPublickey(): void; getPublickey(): crypto_pb.PublicKey | undefined; setPublickey(value?: crypto_pb.PublicKey): Signatory; - hasSignature(): boolean; clearSignature(): void; getSignature(): crypto_pb.Signature | undefined; setSignature(value?: crypto_pb.Signature): Signatory; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Signatory.AsObject; static toObject(includeInstance: boolean, msg: Signatory): Signatory.AsObject; @@ -87,21 +81,17 @@ export namespace Signatory { export class Receipt extends jspb.Message { getTxtype(): number; setTxtype(value: number): Receipt; - getTxhash(): Uint8Array | string; getTxhash_asU8(): Uint8Array; getTxhash_asB64(): string; setTxhash(value: Uint8Array | string): Receipt; - getCreatescontract(): boolean; setCreatescontract(value: boolean): Receipt; - getContractaddress(): Uint8Array | string; getContractaddress_asU8(): Uint8Array; getContractaddress_asB64(): string; setContractaddress(value: Uint8Array | string): Receipt; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Receipt.AsObject; static toObject(includeInstance: boolean, msg: Receipt): Receipt.AsObject; diff --git a/js/proto/txs_pb.js b/js/proto/txs_pb.js index a266996c7..63526b378 100644 --- a/js/proto/txs_pb.js +++ b/js/proto/txs_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/proto/validator_pb.d.ts b/js/proto/validator_pb.d.ts index ae6ef0aca..45e2c9baa 100644 --- a/js/proto/validator_pb.d.ts +++ b/js/proto/validator_pb.d.ts @@ -14,16 +14,13 @@ export class Validator extends jspb.Message { getAddress_asB64(): string; setAddress(value: Uint8Array | string): Validator; - hasPublickey(): boolean; clearPublickey(): void; getPublickey(): crypto_pb.PublicKey | undefined; setPublickey(value?: crypto_pb.PublicKey): Validator; - getPower(): number; setPower(value: number): Validator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Validator.AsObject; static toObject(includeInstance: boolean, msg: Validator): Validator.AsObject; diff --git a/js/proto/validator_pb.js b/js/proto/validator_pb.js index 7d7c89680..d78d7a482 100644 --- a/js/proto/validator_pb.js +++ b/js/proto/validator_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public diff --git a/js/src/burrow.ts b/js/src/burrow.ts new file mode 100644 index 000000000..0d46522ee --- /dev/null +++ b/js/src/burrow.ts @@ -0,0 +1,122 @@ +import * as grpc from '@grpc/grpc-js'; +import { Readable } from 'stream'; +import { TxExecution } from '../proto/exec_pb'; +import { CallTx, ContractMeta } from '../proto/payload_pb'; +import { ExecutionEventsClient, IExecutionEventsClient } from '../proto/rpcevents_grpc_pb'; +import { BlockRange } from '../proto/rpcevents_pb'; +import { IQueryClient, QueryClient } from '../proto/rpcquery_grpc_pb'; +import { GetMetadataParam } from '../proto/rpcquery_pb'; +import { ITransactClient, TransactClient } from '../proto/rpctransact_grpc_pb'; +import { callTx } from './contracts/call'; +import { CallOptions, Contract, ContractInstance } from './contracts/contract'; +import { toBuffer } from './convert'; +import { getException } from './error'; +import { EventCallback, Events, latestStreamingBlockRange } from './events'; +import { Namereg } from './namereg'; + +type TxCallback = (error: grpc.ServiceError | null, txe: TxExecution) => void; + +export type Pipe = (payload: CallTx, callback: TxCallback) => void; + +export class Burrow { + readonly events: Events; + readonly namereg: Namereg; + + readonly executionEvents: IExecutionEventsClient; + readonly transact: ITransactClient; + readonly query: IQueryClient; + + readonly callPipe: Pipe; + readonly simPipe: Pipe; + + constructor(public readonly url: string, public readonly account: string) { + const credentials = grpc.credentials.createInsecure(); + this.executionEvents = new ExecutionEventsClient(url, credentials); + this.transact = new TransactClient(url, credentials); + this.query = new QueryClient(url, credentials); + + this.callPipe = this.transact.callTxSync.bind(this.transact); + this.simPipe = this.transact.callTxSim.bind(this.transact); + + // This is the execution events streaming service running on top of the raw streaming function. + this.events = new Events(this.executionEvents); + // Contracts stuff running on top of grpc + this.namereg = new Namereg(this.transact, this.query, this.account); + } + + /** + * Looks up the ABI for a deployed contract from Burrow's contract metadata store. + * Contract metadata is only stored when provided by the contract deployer so is not guaranteed to exist. + * + * @method address + * @param {string} address + * @param handler + * @throws an error if no metadata found and contract could not be instantiated + * @returns {Contract} interface object + */ + contractAt(address: string, handler?: CallOptions): Promise { + const msg = new GetMetadataParam(); + msg.setAddress(Buffer.from(address, 'hex')); + + return new Promise((resolve, reject) => + this.query.getMetadata(msg, (err, res) => { + if (err) { + reject(err); + } + const metadata = res.getMetadata(); + if (!metadata) { + throw new Error(`could not find any metadata for account ${address}`); + } + + // TODO: parse with io-ts + const abi = JSON.parse(metadata).Abi; + + const contract = new Contract(abi); + resolve(contract.at(address, this, handler)); + }), + ); + } + + call(callTx: CallTx): Promise { + return new Promise((resolve, reject) => + this.callPipe(callTx, (error, txe) => { + if (error) { + return reject(error); + } + const err = getException(txe); + if (err) { + return reject(err); + } + return resolve(txe); + }), + ); + } + + callSim(callTx: CallTx): Promise { + return new Promise((resolve, reject) => + this.simPipe(callTx, (error, txe) => { + if (error) { + return reject(error); + } + const err = getException(txe); + if (err) { + return reject(err); + } + return resolve(txe); + }), + ); + } + + listen( + signature: string, + address: string, + callback: EventCallback, + range: BlockRange = latestStreamingBlockRange, + ): Readable { + return this.events.listen(range, address, signature, callback); + } + + callTx(data: string | Uint8Array, address?: string, contractMeta: ContractMeta[] = []): CallTx { + return callTx(typeof data === 'string' ? toBuffer(data) : data, this.account, address, contractMeta); + } +} diff --git a/js/src/contracts/abi.test.ts b/js/src/contracts/abi.test.ts new file mode 100644 index 000000000..8f0fa4db6 --- /dev/null +++ b/js/src/contracts/abi.test.ts @@ -0,0 +1,121 @@ +import * as assert from 'assert'; +import { transformToFullName } from './abi'; +import { compile } from './compile'; + +const source = ` +pragma solidity >=0.0.0; + +contract foo { + uint foobar; + + function addFoobar(uint n, bool b) public { + if (b) { + foobar += n; + } + } + + function getFoobar() public view returns (uint n) { + n = foobar; + } +} +`; + +describe('ABI helpers', () => { + it('Can extract correct names from ABI', () => { + const { + code: { abi }, + } = compile(source, 'foo'); + console.log(JSON.stringify(abi)); + assert.strictEqual(transformToFullName(abi[0]), 'addFoobar(uint256,bool)'); + }); + + it('Derive Typescript contract type from ABI', () => { + // This is a nearly-working proof of concept for generating a contract's type definition + // directly from the JSON ABI... + + const abiConst = [ + { + name: 'addFoobar', + inputs: [ + { internalType: 'uint256', name: 'n', type: 'uint256' }, + { internalType: 'bool', name: 'b', type: 'bool' }, + ], + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + name: 'getFoobar', + inputs: [{ internalType: 'address', name: 'addr', type: 'address' }], + outputs: [{ internalType: 'uint256', name: 'n', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + ] as const; + + type abi = typeof abiConst; + + type Func = abi[number]; + + type FunctionName = Func['name']; + + type FuncByName = T extends { name: Name; type: 'function' } ? T : never; + + type Picker = { + [i in keyof abi]: FuncByName; + }; + + type ValueOf = T[keyof T]; + + type PickFunctionByName = ValueOf>; + + type Address = string; + + type Type = T extends 'uint256' ? number : T extends 'bool' ? boolean : T extends 'address' ? Address : never; + + // **mumble** something about distribution + type PickValue = U extends keyof T ? Pick[keyof Pick] : never; + + type TypesOf = { [k in keyof T]: Type> }; + + type FunctionInputs = PickFunctionByName['inputs']; + + type FunctionOutputs = PickFunctionByName['outputs']; + + const getFoobarABI: PickFunctionByName<'getFoobar'> = { + name: 'getFoobar', + inputs: [{ internalType: 'address', name: 'addr', type: 'address' }], + outputs: [{ internalType: 'uint256', name: 'n', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }; + + const addFoobarInputs: FunctionInputs<'addFoobar'> = [ + { internalType: 'uint256', name: 'n', type: 'uint256' }, + { internalType: 'bool', name: 'b', type: 'bool' }, + ]; + + const addFoobarArgs: TypesOf> = [1, true]; + const getFoobarArgs: TypesOf> = ['address']; + + type Args = TypesOf>; + + // Everything above this line compiles, which make me think the following should work, however... + + type Contract = { + // This line is a compiler error: TS2370: A rest parameter must be of an array type. + // Uncomment to experiment further + // [name in FunctionName]: (...args: Args) => TypesOf> + [name in FunctionName]: (...args: any[]) => TypesOf>; + }; + + // Note: my IDE actually actually seem to be type-checking these correctly + // despite the compiler error on the function arg spread above! So close! + const contract: Contract = { + // uint256, bool => () + addFoobar: (n: number, b: boolean) => [], + // address => uint256 + getFoobar: (n: Address) => [3], + }; + }); +}); diff --git a/js/src/contracts/abi.ts b/js/src/contracts/abi.ts new file mode 100644 index 000000000..d26c61e3c --- /dev/null +++ b/js/src/contracts/abi.ts @@ -0,0 +1,32 @@ +import { Event, EventInput, FunctionInput, FunctionOutput, SolidityFunction } from 'solc'; + +export type ABI = Array; + +export type Address = string; + +export type FunctionIO = FunctionInput & FunctionOutput; + +// TODO: replace with ethers js + +export function transformToFullName(abi: SolidityFunction | Event): string { + if (abi.name.indexOf('(') !== -1) { + return abi.name; + } + const typeName = (abi.inputs as Array).map((i) => i.type).join(','); + return abi.name + '(' + typeName + ')'; +} + +export function extractDisplayName(name: string): string { + const length = name.indexOf('('); + return length !== -1 ? name.substr(0, length) : name; +} + +export function extractTypeName(name: string): string { + /// TODO: make it invulnerable + const length = name.indexOf('('); + return length !== -1 ? name.substr(length + 1, name.length - 1 - (length + 1)).replace(' ', '') : ''; +} + +export function isFunction(abi: SolidityFunction | Event): abi is SolidityFunction { + return abi.type === 'function' || abi.type === 'constructor'; +} diff --git a/js/src/contracts/call.ts b/js/src/contracts/call.ts new file mode 100644 index 000000000..542ce2242 --- /dev/null +++ b/js/src/contracts/call.ts @@ -0,0 +1,186 @@ +import * as grpc from '@grpc/grpc-js'; +import { Metadata } from '@grpc/grpc-js'; +import { callErrorFromStatus } from '@grpc/grpc-js/build/src/call'; +import { AbiCoder, FunctionFragment, Interface, Result as DecodedResult } from 'ethers/lib/utils'; +import { SolidityFunction } from 'solc'; +import { Result } from '../../proto/exec_pb'; +import { CallTx, ContractMeta, TxInput } from '../../proto/payload_pb'; +import { Envelope } from '../../proto/txs_pb'; +import { Pipe } from '../burrow'; +import { abiToBurrowResult, burrowToAbiResult, toBuffer } from '../convert'; +import { Address } from './abi'; +import { CallOptions } from './contract'; + +export const DEFAULT_GAS = 1111111111; + +export { Result as DecodeResult } from 'ethers/lib/utils'; + +const WasmMagic = Buffer.from('\0asm'); + +const coder = new AbiCoder(); + +export function callTx( + data: Uint8Array, + inputAddress: Address, + contractAddress?: Address, + contractMeta: ContractMeta[] = [], +): CallTx { + const input = new TxInput(); + input.setAddress(Buffer.from(inputAddress, 'hex')); + input.setAmount(0); + + const payload = new CallTx(); + payload.setInput(input); + if (contractAddress) { + payload.setAddress(Buffer.from(contractAddress, 'hex')); + } + payload.setGaslimit(DEFAULT_GAS); + payload.setFee(0); + // if we are deploying and it looks like wasm, it must be wasm. Note that + // evm opcode 0 is stop, so this would not make any sense. + if (!contractAddress && !Buffer.compare(data.slice(0, 4), WasmMagic)) { + payload.setWasm(data); + } else { + payload.setData(data); + } + payload.setContractmetaList(contractMeta); + + return payload; +} + +export type TransactionResult = { + contractAddress: string; + height: number; + index: number; + hash: string; + type: number; + result: Result.AsObject; + resultBytes: Uint8Array; + tx: Envelope.AsObject; + caller: string | string[]; +}; + +// export function encodeFunction(abi: SolidityFunction, ...args: unknown[]): string { +// const abiInputs = abi.inputs.map((arg) => arg.type); +// return functionSignature(abi) + coder.encode(abiInputs, convert.burrowToAbi(abiInputs, args)); +// } + +export function encodeConstructor(abi: SolidityFunction | void, bytecode: string, ...args: unknown[]): string { + const abiInputs = abi ? abi.inputs.map((arg) => arg.type) : []; + return bytecode + coder.encode(abiInputs, args); +} + +export function decode(abi: SolidityFunction, output: Uint8Array): DecodedResult { + if (!abi.outputs) { + return []; + } + return coder.decode(abi.outputs as any, Buffer.from(output)); +} + +export function call(pipe: Pipe, payload: CallTx): Promise { + return new Promise((resolve, reject) => { + pipe(payload, (err, txe) => { + if (err) { + return reject(err); + } + + if (!txe) { + return reject(new Error(`call received no result after passing tx ${JSON.stringify(payload.toObject())}`)); + } + + // Handle execution reversions + const result = txe.getResult(); + const header = txe.getHeader(); + if (!result) { + return reject(new Error(`tx ${header?.getTxhash_asU8().toString()} has no result`)); + } + if (txe.hasException()) { + // Decode error message if there is one otherwise default + if (result.getReturn().length === 0) { + return reject( + callErrorFromStatus({ + code: grpc.status.ABORTED, + metadata: new Metadata(), + details: 'Execution Reverted', + }), + ); + } else { + // Strip first 4 bytes(function signature) the decode as a string + return reject( + callErrorFromStatus({ + code: grpc.status.ABORTED, + metadata: new Metadata(), + details: coder.decode(['string'], Buffer.from(result.getReturn_asU8().slice(4)))[0], + }), + ); + } + } + + // Meta Data (address, caller, height, etc) + const envelope = txe.getEnvelope(); + const receipt = txe.getReceipt(); + if (!header || !envelope || !receipt) { + return reject(new Error(``)); + } + let caller: string | string[] = envelope.getSignatoriesList().map((sig) => sig.getAddress_asB64().toUpperCase()); + if (caller.length === 1) { + caller = caller[0]; + } + return resolve({ + contractAddress: Buffer.from(receipt.getContractaddress_asU8()).toString('hex').toUpperCase(), + height: header.getHeight(), + index: header.getIndex(), + hash: Buffer.from(header.getTxhash_asU8()).toString('hex').toUpperCase(), + type: header.getTxtype(), + result: result.toObject(), + resultBytes: result.getReturn_asU8(), + tx: envelope.toObject(), + caller: caller, + }); + }); + }); +} + +export type CallResult = { + transactionResult: TransactionResult; + result: DecodedResult; +}; + +export async function callFunction( + iface: Interface, + frag: FunctionFragment, + { handler, middleware }: CallOptions, + input: Address, + pipe: Pipe, + callee: Address, + args: unknown[], +): Promise { + const data = toBuffer(iface.encodeFunctionData(frag, burrowToAbiResult(args, frag.inputs))); + const transactionResult = await call(pipe, middleware(callTx(data, input, callee))); + // Unpack return arguments + const result = abiToBurrowResult(iface.decodeFunctionResult(frag, transactionResult.resultBytes), frag.outputs); + return handler({ transactionResult, result }); +} + +// const decodeF = function (abi: Function, output: Uint8Array): DecodedResult { +// if (!output) { +// return; +// } +// +// const outputs = abi.outputs; +// const outputTypes = types(outputs); +// +// Decode raw bytes to arguments +// const raw = convert.abiToBurrow(outputTypes, coder.rawDecode(outputTypes, Buffer.from(output))); +// const result: DecodedResult = { raw: raw.slice() }; +// +// result.values = outputs.reduce(function (acc, current) { +// const value = raw.shift(); +// if (current.name) { +// acc[current.name] = value; +// } +// return acc; +// }, {}); +// +// return result; +// }; diff --git a/js/src/contracts/compile.ts b/js/src/contracts/compile.ts new file mode 100644 index 000000000..a8a4a2c33 --- /dev/null +++ b/js/src/contracts/compile.ts @@ -0,0 +1,38 @@ +import solc from 'solc'; +import { CompiledContract, Contract } from './contract'; + +// Compile solidity source code +export function compile( + source: string, + name: string, + errorSeverity: 'error' | 'warning' = 'error', +): Contract { + const desc: solc.InputDescription = { language: 'Solidity', sources: {} }; + if (!desc.sources) { + desc.sources = {}; + } + desc.sources[name] = { content: source }; + desc.settings = { outputSelection: { '*': { '*': ['*'] } } }; + + const json = solc.compile(JSON.stringify(desc)); + const compiled: solc.OutputDescription = JSON.parse(json); + const fatalErrors = compiled.errors.filter((err) => err.severity === errorSeverity); + if (fatalErrors.length) { + throw new Error(fatalErrors.map((err) => err.formattedMessage).toString()); + } + const contract = compiled.contracts[name][name]; + return new Contract( + getCompiledCode(contract), + Object.entries(compiled.contracts[name]) + .filter(([n]) => n !== name) + .map(([n, c]) => getCompiledCode(c)), + ); +} + +function getCompiledCode(contract: solc.Contract): CompiledContract { + return { + abi: contract.abi, + bytecode: contract.evm.bytecode.object, + deployedBytecode: contract.evm.deployedBytecode.object, + }; +} diff --git a/js/src/contracts/contract.ts b/js/src/contracts/contract.ts new file mode 100644 index 000000000..b7a13b481 --- /dev/null +++ b/js/src/contracts/contract.ts @@ -0,0 +1,173 @@ +import { EventFragment, Fragment, FunctionFragment, Interface, LogDescription } from 'ethers/lib/utils'; +import { Keccak } from 'sha3'; +import { CallTx, ContractMeta } from '../../proto/payload_pb'; +import { Burrow } from '../burrow'; +import { burrowToAbiResult, toBuffer } from '../convert'; +import { EventStream } from '../events'; +import { ABI, Address } from './abi'; +import { call, callFunction, CallResult, callTx, DecodeResult } from './call'; +import { EventCallback, listen } from './event'; + +export const meta: unique symbol = Symbol('meta'); + +export type InstanceMetadata = { + address: string; + contract: Contract; +}; + +export type ContractInstance = { + [key in string]?: ContractFunction | ContractEvent; +} & { + // Using a unique symbol as a key here means we cannot clash with any dynamic member of the contract + [meta]: InstanceMetadata; +}; + +export type CallOptions = typeof defaultCallOptions; + +export const defaultCallOptions = { + middleware: (callTx: CallTx) => callTx, + handler: (result: CallResult): unknown => result.result, +} as const; + +// Get metadata of a contract instance including its deployed address and the Contract it instantiates +export function getMetadata(instance: ContractInstance): InstanceMetadata { + return instance[meta]; +} + +// Since so common +export function getAddress(instance: ContractInstance): Address { + return instance[meta].address; +} + +export type CompiledContract = { + abi: ABI; + // Required to deploy a contract + bytecode?: string; + // Required to submit an ABI when deploying a contract + deployedBytecode?: string; +}; + +export class Contract { + private readonly iface: Interface; + + constructor(public readonly code: CompiledContract, private readonly childCode: CompiledContract[] = []) { + this.iface = new Interface(this.code.abi); + } + + at(address: Address, burrow: Burrow, options: CallOptions = defaultCallOptions): T { + const instance: ContractInstance = { + [meta]: { + address, + contract: this, + }, + }; + + for (const frag of Object.values(this.iface.functions)) { + attachFunction(this.iface, frag, instance, contractFunction(this.iface, frag, burrow, options, address)); + } + + for (const frag of Object.values(this.iface.events)) { + attachFunction(this.iface, frag, instance, contractEvent(this.iface, frag, burrow, address)); + } + + return instance as T; + } + + meta(): ContractMeta[] { + return [this.code, ...this.childCode].map(contractMeta).filter((m): m is ContractMeta => Boolean(m)); + } + + async deploy(burrow: Burrow, ...args: unknown[]): Promise { + return this.deployWith(burrow, defaultCallOptions, ...args); + } + + async deployWith(burrow: Burrow, options?: Partial, ...args: unknown[]): Promise { + const opts = { ...defaultCallOptions, ...options }; + if (!this.code.bytecode) { + throw new Error(`cannot deploy contract without compiled bytecode`); + } + const { middleware } = opts; + const data = Buffer.concat( + [this.code.bytecode, this.iface.encodeDeploy(burrowToAbiResult(args, this.iface.deploy.inputs))].map(toBuffer), + ); + const tx = middleware(callTx(data, burrow.account, undefined, this.meta())); + const { contractAddress } = await call(burrow.callPipe, tx); + return this.at(contractAddress, burrow, opts); + } +} + +// TODO[Silas]: integrate burrow.js with static code/type generation +type GenericFunction = (...args: I) => Promise; + +// Bare call will execute against contract +type ContractFunction = GenericFunction & { + sim: GenericFunction; + at: (address: string) => GenericFunction; + atSim: (address: string) => GenericFunction; + encode: (...args: unknown[]) => string; + decode: (output: Uint8Array) => DecodeResult; +}; + +export type ContractEvent = ((cb: EventCallback) => EventStream) & { + at: (address: string, cb: EventCallback) => EventStream; + once: () => Promise; +}; + +function contractFunction( + iface: Interface, + frag: FunctionFragment, + burrow: Burrow, + options: CallOptions, + contractAddress: string, +): ContractFunction { + const func = (...args: unknown[]) => + callFunction(iface, frag, options, burrow.account, burrow.callPipe, contractAddress, args); + func.sim = (...args: unknown[]) => + callFunction(iface, frag, options, burrow.account, burrow.simPipe, contractAddress, args); + + func.at = (address: string) => (...args: unknown[]) => + callFunction(iface, frag, options, burrow.account, burrow.callPipe, address, args); + func.atSim = (address: string) => (...args: unknown[]) => + callFunction(iface, frag, options, burrow.account, burrow.simPipe, address, args); + + func.encode = (...args: unknown[]) => iface.encodeFunctionData(frag, args); + func.decode = (output: Uint8Array) => iface.decodeFunctionResult(frag, output); + return func; +} + +function contractEvent(iface: Interface, frag: EventFragment, burrow: Burrow, contractAddress: string): ContractEvent { + const func = (cb: EventCallback) => listen(iface, frag, contractAddress, burrow, cb); + func.at = (address: string, cb: EventCallback) => listen(iface, frag, address, burrow, cb); + func.once = () => + new Promise((resolve, reject) => + listen(iface, frag, contractAddress, burrow, (err, result) => + err ? reject(err) : result ? resolve(result) : reject(new Error(`no EventResult received from callback`)), + ), + ); + return func; +} + +function contractMeta({ abi, deployedBytecode }: CompiledContract): ContractMeta | void { + // We can only calculate the codeHash if we have the deployedCode + if (abi.length == 0 || !deployedBytecode) { + return undefined; + } + const meta = new ContractMeta(); + const hasher = new Keccak(256); + const codeHash = hasher.update(deployedBytecode, 'hex').digest(); + meta.setMeta(JSON.stringify({ Abi: abi })); + meta.setCodehash(codeHash); + return meta; +} + +function attachFunction( + iface: Interface, + frag: Fragment, + instance: ContractInstance, + func: ContractFunction | ContractEvent, +): void { + if (!instance[frag.name]) { + instance[frag.name] = func; + } + instance[frag.format()] = func; +} diff --git a/js/src/contracts/event.ts b/js/src/contracts/event.ts new file mode 100644 index 000000000..4a741f7f1 --- /dev/null +++ b/js/src/contracts/event.ts @@ -0,0 +1,43 @@ +import { EventFragment, FormatTypes, Interface, LogDescription } from 'ethers/lib/utils'; +import { Keccak } from 'sha3'; +import { Burrow } from '../burrow'; +import { abiToBurrowResult, prefixedHexString } from '../convert'; +import { EventStream, latestStreamingBlockRange } from '../events'; + +export type EventCallback = (err?: Error, result?: LogDescription) => void; + +export function listen( + iface: Interface, + frag: EventFragment, + address: string, + burrow: Burrow, + callback: EventCallback, + range = latestStreamingBlockRange, +): EventStream { + const signature = sha3(frag.format(FormatTypes.sighash)); + + return burrow.events.listen(range, address, signature, (err, log) => { + if (err) { + return callback(err); + } + if (!log) { + return callback(new Error(`no LogEvent or Error provided`)); + } + try { + const result = iface.parseLog({ + topics: log.getTopicsList_asU8().map((topic) => prefixedHexString(topic)), + data: prefixedHexString(log.getData_asU8()), + }); + return callback(undefined, { + ...result, + args: abiToBurrowResult(result.args, frag.inputs), + }); + } catch (err) { + return callback(err); + } + }); +} + +function sha3(str: string) { + return new Keccak(256).update(str).digest('hex').toUpperCase(); +} diff --git a/js/src/convert.ts b/js/src/convert.ts new file mode 100644 index 000000000..72ca41f88 --- /dev/null +++ b/js/src/convert.ts @@ -0,0 +1,135 @@ +// The convert functions are based on types used by ethers AbiCoder but we redefine some types here to keep our +// functional dependency on those types minimal + +// Same as ethers hybrid array/record type used for dynamic returns +type Result = readonly T[] & { readonly [key: string]: T }; + +// Bash-in-place version of Result +type Presult = T[] & { [key: string]: T }; + +// Minimal restriction of ethers ParamType +type ParamType = { + readonly name: string; + readonly type: string; +}; + +// Minimal restrictions of ethers BigNumber +type BigNumber = { + toNumber(): number; +}; + +// Converts values from those returned by ABI decoder to those expected by Burrow's GRPC bindings +export function abiToBurrowResult(args: Result, outputs: ParamType[] | undefined): Result { + const out: Presult = []; + if (!outputs) { + return Object.freeze(out); + } + checkParamTypesAndArgs('abiToBurrow', outputs, args); + for (let i = 0; i < outputs.length; i++) { + pushValue(out, abiToBurrow(args[i], outputs[i].type), outputs[i]); + } + return Object.freeze(out); +} + +// Converts values from those returned by Burrow's GRPC bindings to those expected by ABI encoder +export function burrowToAbiResult(args: Result, inputs: ParamType[]): Result { + const out: Presult = []; + checkParamTypesAndArgs('burrowToAbi', inputs, args); + for (let i = 0; i < inputs.length; i++) { + pushValue(out, burrowToAbi(args[i], inputs[i].type), inputs[i]); + } + return Object.freeze(out); +} + +export function withoutArrayElements(result: Result): Record { + return Object.fromEntries(Object.entries(result).filter(([k]) => isNaN(Number(k)))); +} + +function abiToBurrow(arg: unknown, type: string): unknown { + if (/address/.test(type)) { + return recApply(unprefixedHexString, arg as NestedArray); + } else if (/bytes/.test(type)) { + return recApply(unprefixedHexString, arg as NestedArray); + } else if (/int/.test(type)) { + return recApply(numberToBurrow, arg as NestedArray); + } + return arg; +} + +function burrowToAbi(arg: unknown, type: string): unknown { + if (/address/.test(type)) { + return recApply(prefixedHexString, arg as NestedArray); + } else if (/bytes/.test(type)) { + return recApply(toBuffer, arg as NestedArray); + } + return arg; +} + +function numberToBurrow(arg: BigNumber): BigNumber | number { + try { + // number is limited to 53 bits, BN will throw Error + return arg.toNumber(); + } catch { + // arg does not fit into number type, so keep it as BN + return arg; + } +} + +export function unprefixedHexString(arg: string | Uint8Array): string { + if (arg instanceof Uint8Array) { + return Buffer.from(arg).toString('hex').toUpperCase(); + } + if (/^0x/i.test(arg)) { + return arg.slice(2).toUpperCase(); + } + return arg.toUpperCase(); +} + +// Adds a 0x prefix to a hex string if it doesn't have one already or returns a prefixed hex string from bytes +export function prefixedHexString(arg: string | Uint8Array): string { + if (typeof arg === 'string' && !/^0x/i.test(arg)) { + return '0x' + arg.toLowerCase(); + } + if (arg instanceof Uint8Array) { + return '0x' + Buffer.from(arg).toString('hex').toLowerCase(); + } + return arg.toLowerCase(); +} + +// Returns bytes buffer from hex string which may or may not have an 0x prefix +export function toBuffer(arg: string | Uint8Array): Buffer { + if (arg instanceof Uint8Array) { + return Buffer.from(arg); + } + if (/^0x/i.test(arg)) { + arg = arg.slice(2); + } + return Buffer.from(arg, 'hex'); +} + +type NestedArray = T | NestedArray[]; + +// Recursively applies func to an arbitrarily nested array with a single element type as described by solidity tuples +function recApply(func: (input: A) => B, args: NestedArray): NestedArray { + return Array.isArray(args) ? args.map((arg) => recApply(func, arg)) : func(args); +} + +function checkParamTypesAndArgs(functionName: string, types: ParamType[], args: ArrayLike) { + if (types.length !== args.length) { + const quantifier = types.length > args.length ? 'more' : 'fewer'; + const typesString = types.map((t) => t.name).join(', '); + const argsString = Object.values(args) + .map((a) => JSON.stringify(a)) + .join(', '); + throw new Error( + `${functionName} received ${quantifier} types than arguments: types: [${typesString}], args: [${argsString}]`, + ); + } +} + +function pushValue(out: Presult, value: unknown, type: ParamType): void { + out.push(value); + if (type.name) { + out[type.name] = value; + } +} diff --git a/js/src/error.ts b/js/src/error.ts new file mode 100644 index 000000000..becf82cfa --- /dev/null +++ b/js/src/error.ts @@ -0,0 +1,18 @@ +import { Exception } from '../proto/errors_pb'; +import { TxExecution } from '../proto/exec_pb'; + +export class TxExecutionError extends Error { + public readonly code: number; + + constructor(exception: Exception) { + super(exception.getException()); + this.code = exception.getCode(); + } +} + +export function getException(txe: TxExecution): TxExecutionError | void { + const exception = txe.hasException() ? txe.getException() : undefined; + if (exception) { + return new TxExecutionError(exception); + } +} diff --git a/js/src/events.ts b/js/src/events.ts new file mode 100644 index 000000000..47a1db5da --- /dev/null +++ b/js/src/events.ts @@ -0,0 +1,72 @@ +import * as grpc from '@grpc/grpc-js'; +import { LogEvent } from '../proto/exec_pb'; +import { IExecutionEventsClient } from '../proto/rpcevents_grpc_pb'; +import { BlockRange, BlocksRequest, Bound, EventsResponse } from '../proto/rpcevents_pb'; +import BoundType = Bound.BoundType; + +export type EventStream = grpc.ClientReadableStream; + +export type EventCallback = (err?: Error, log?: LogEvent) => void; + +export function getBlockRange(start: Bounds = 'latest', end: Bounds = 'stream'): BlockRange { + const range = new BlockRange(); + range.setStart(boundsToBound(start)); + range.setEnd(boundsToBound(end)); + return range; +} + +export const latestStreamingBlockRange = Object.freeze(getBlockRange('latest', 'stream')); + +export class Events { + constructor(private burrow: IExecutionEventsClient) {} + + stream(range: BlockRange, query: string, callback: EventCallback): EventStream { + const arg = new BlocksRequest(); + arg.setBlockrange(range); + arg.setQuery(query); + + const stream = this.burrow.events(arg); + stream.on('data', (data: EventsResponse) => { + data.getEventsList().map((event) => { + return callback(undefined, event.getLog()); + }); + }); + stream.on('error', (err: grpc.ServiceError) => err.code === grpc.status.CANCELLED || callback(err)); + return stream; + } + + listen(range: BlockRange, address: string, signature: string, callback: EventCallback): EventStream { + const filter = + "EventType = 'LogEvent' AND Address = '" + + address.toUpperCase() + + "'" + + " AND Log0 = '" + + signature.toUpperCase() + + "'"; + return this.stream(range, filter, callback); + } +} + +export type Bounds = 'first' | 'latest' | 'stream' | number; + +function boundsToBound(bounds: Bounds): Bound { + const bound = new Bound(); + bound.setIndex(0); + + switch (bounds) { + case 'first': + bound.setType(BoundType.FIRST); + break; + case 'latest': + bound.setType(BoundType.LATEST); + break; + case 'stream': + bound.setType(BoundType.STREAM); + break; + default: + bound.setType(BoundType.LATEST); + bound.setIndex(bounds); + } + + return bound; +} diff --git a/js/src/index.ts b/js/src/index.ts index 5e558d65b..f4aee56f8 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -1,5 +1,4 @@ -export { Burrow } from './lib/burrow'; -export { Contract } from './lib/contracts/contract'; -export * from './lib/utils/utils'; -export { TxInput, CallTx } from '../proto/payload_pb' -export { TxExecution } from '../proto/exec_pb'; \ No newline at end of file +export { TxExecution } from '../proto/exec_pb'; +export { CallTx, TxInput } from '../proto/payload_pb'; +export { Burrow } from './burrow'; +export { Contract } from './contracts/contract'; diff --git a/js/src/lib/burrow.ts b/js/src/lib/burrow.ts deleted file mode 100644 index 3731a689b..000000000 --- a/js/src/lib/burrow.ts +++ /dev/null @@ -1,52 +0,0 @@ -import * as grpc from "@grpc/grpc-js"; -import {makeClientConstructor} from "@grpc/grpc-js"; -import {IExecutionEventsClient} from "../../proto/rpcevents_grpc_pb"; -import {IQueryClient} from '../../proto/rpcquery_grpc_pb'; -import {ITransactClient} from '../../proto/rpctransact_grpc_pb'; -import {ContractManager} from './contracts/manager'; -import {Events} from './events'; -import {Namereg} from './namereg'; -import {Pipe} from './pipe'; - -export type Error = grpc.ServiceError; - -export class Burrow { - URL: string; - account: string; - - events: Events; - pipe: Pipe; - contracts: ContractManager; - namereg: Namereg; - - ec: IExecutionEventsClient; - tc: ITransactClient; - qc: IQueryClient; - - constructor(URL: string, account: string) { - this.URL = URL; - this.account = account; - - - this.ec = newClient('rpcevents', 'ExecutionEvents', URL); - this.tc = newClient('rpctransact', 'Transact', URL); - this.qc = newClient('rpcquery', 'Query', URL); - - // This is the execution events streaming service running on top of the raw streaming function. - this.events = new Events(this.ec); - - // Contracts stuff running on top of grpc - this.pipe = new Pipe(this.tc, this.events); - this.contracts = new ContractManager(this); - - this.namereg = new Namereg(this.tc, this.qc, this.account); - } -} - -function newClient(pkg: string, service: string, URL: string): T { - const imp = require(`../../proto/${pkg}_grpc_pb`); - // As per https://github.com/agreatfool/grpc_tools_node_protoc_ts/blob/master/examples/src/grpcjs/client.ts - const cons = makeClientConstructor(imp[`${pkg}.${service}`], service); - // ugh - return new cons(URL, grpc.credentials.createInsecure()) as unknown as T -} diff --git a/js/src/lib/client.ts b/js/src/lib/client.ts deleted file mode 100644 index 3ddf1841a..000000000 --- a/js/src/lib/client.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { Burrow } from './burrow' -import * as convert from './utils/convert'; -import * as coder from 'ethereumjs-abi'; -import { Readable } from 'stream'; -import { TxInput, CallTx } from '../../proto/payload_pb' -import { TxExecution } from '../../proto/exec_pb'; - -export type Interceptor = (result: TxExecution) => Promise; - -export class Client extends Burrow { - interceptor: Interceptor; - - constructor(url: string, account: string) { - super(url, account); - - this.interceptor = async (data) => data; - } - - deploy(msg: CallTx, callback: (err: Error, addr: Uint8Array) => void) { - this.pipe.transact(msg, (err, exec) => { - if (err) callback(err, null); - else if (exec.hasException()) callback(new Error(exec.getException().getException()), null); - else callback(null, exec.getReceipt().getContractaddress_asU8()); - }) - } - - call(msg: CallTx, callback: (err: Error, exec: Uint8Array) => void) { - this.pipe.transact(msg, (err, exec) => { - if (err) callback(err, null); - else if (exec.hasException()) callback(new Error(exec.getException().getException()), null); - else this.interceptor(exec).then(exec => callback(null, exec.getResult().getReturn_asU8())); - }) - } - - callSim(msg: CallTx, callback: (err: Error, exec: Uint8Array) => void) { - this.pipe.call(msg, (err, exec) => { - if (err) callback(err, null); - else if (exec.hasException()) callback(new Error(exec.getException().getException()), null); - else this.interceptor(exec).then(exec => callback(null, exec.getResult().getReturn_asU8())); - }) - } - - listen(signature: string, address: string, callback: (err: Error, event: any) => void): Readable { - return this.events.subContractEvents(address, signature, callback) - } - - payload(data: string, address?: string): CallTx { - const input = new TxInput(); - input.setAddress(Buffer.from(this.account, 'hex')); - input.setAmount(0); - - const payload = new CallTx(); - payload.setInput(input); - if (address) payload.setAddress(Buffer.from(address, 'hex')); - payload.setGaslimit(1000000); - payload.setFee(0); - payload.setData(Buffer.from(data, 'hex')); - - return payload - } - - encode(name: string, inputs: string[], ...args: any[]): string { - args = convert.burrowToAbi(inputs, args); - return name + convert.bytesTB(coder.rawEncode(inputs, args)); - } - - decode(data: Uint8Array, outputs: string[]): any { - return convert.abiToBurrow(outputs, coder.rawDecode(outputs, Buffer.from(data))); - } -} \ No newline at end of file diff --git a/js/src/lib/contracts/contract.ts b/js/src/lib/contracts/contract.ts deleted file mode 100644 index 34a8a3ebd..000000000 --- a/js/src/lib/contracts/contract.ts +++ /dev/null @@ -1,100 +0,0 @@ -import {SolidityEvent} from './event'; -import {SolidityFunction, Handler} from './function'; -import {Burrow} from '../burrow'; -import {Function, Event} from 'solc'; - - -export type FunctionOrEvent = Function | Event; - -export type ABI = Array - -export type Bytecode = { bytecode: string, deployedBytecode?: string } - - -export interface Handlers { - call?: Handler - deploy?: Handler -} - -const defaultHandlers: Handlers = { - call: function (result) { - return result.raw - }, - deploy: function (result) { - return result.contractAddress - } -} - -export class Contract { - abi: ABI; - address: string; - code: Bytecode; - burrow: Burrow; - handlers: Handlers; - - _constructor: any; - - constructor(abi: Array, code: string | Bytecode, address: string, burrow: Burrow, handlers?: Handlers) { - handlers = Object.assign({}, defaultHandlers, handlers); - - this.address = address; - this.abi = abi; - this.code = typeof (code) === 'string' ? {bytecode: code} : code; - this.burrow = burrow; - this.handlers = handlers; - addFunctionsToContract(this); - addEventsToContract(this); - } - -} - -const addFunctionsToContract = function (contract: Contract) { - (contract.abi.filter(json => { - return (json.type === 'function' || json.type === 'constructor'); - }) as Function[]).forEach(function (json) { - let {displayName, typeName, call, encode, decode} = SolidityFunction(json, contract.burrow); - - if (json.type === 'constructor') { - contract._constructor = call.bind(contract, false, contract.handlers.deploy, ''); - } else { - // bind the function call to the contract, specify if call or transact is desired - let execute = call.bind(contract, json.constant, contract.handlers.call, null); - execute.sim = call.bind(contract, true, contract.handlers.call, null); - // These allow the interface to be used for a generic contract of this type - execute.at = call.bind(contract, json.constant, contract.handlers.call); - execute.atSim = call.bind(contract, true, contract.handlers.call); - - execute.encode = encode.bind(contract); - execute.decode = decode.bind(contract); - - // Attach to the contract object - if (!contract[displayName]) { - contract[displayName] = execute; - } - contract[displayName][typeName] = execute; - } - }) - - // Not every abi has a constructor specification. - // If it doesn't we force a _constructor with null abi - if (!contract._constructor) { - const {call} = SolidityFunction(null, contract.burrow); - contract._constructor = call.bind(contract, false, contract.handlers.deploy, ''); - } -} - -const addEventsToContract = function (contract: Contract) { - (contract.abi.filter(json => { - return json.type === 'event' - }) as Event[]).forEach(json => { - const {displayName, typeName, call} = SolidityEvent(json, contract.burrow); - - const execute = call.bind(contract, null); - execute.once = call.bind(contract, null); - execute.at = call.bind(contract); - if (!contract[displayName]) { - contract[displayName] = execute; - } - contract[displayName][typeName] = call.bind(contract); - }) -} diff --git a/js/src/lib/contracts/event.ts b/js/src/lib/contracts/event.ts deleted file mode 100644 index 9e061aa50..000000000 --- a/js/src/lib/contracts/event.ts +++ /dev/null @@ -1,62 +0,0 @@ -import {ServiceError} from "@grpc/grpc-js"; -import * as utils from '../utils/utils'; -import * as coder from 'ethereumjs-abi'; -import * as convert from '../utils/convert'; -import sha3 from '../utils/sha3'; -import { Burrow, Error } from '../burrow'; -import { LogEvent } from '../../../proto/exec_pb' -import { Event, EventInput } from 'solc'; - -const types = (abi: Array, indexed: boolean) => - abi.filter(i => i.indexed === indexed).map(i => i.type); - -type EventResult = { - event?: string - address?: Uint8Array - args?: Record -} - -const decode = function (abi: Event, data: LogEvent): EventResult { - if (!data) return - - const argTopics = abi.anonymous ? data.getTopicsList_asU8() : data.getTopicsList_asU8().slice(1) - const indexedParamsABI = types(abi.inputs, true) - const nonIndexedParamsABI = types(abi.inputs, false) - const indexedData = Buffer.concat(argTopics) - const indexedParams = convert.abiToBurrow(indexedParamsABI, coder.rawDecode(indexedParamsABI, indexedData)) - const nonIndexedParams = convert.abiToBurrow(nonIndexedParamsABI, coder.rawDecode(nonIndexedParamsABI, Buffer.from(data.getData_asU8()))) - - return { - event: utils.transformToFullName(abi), - address: data.getAddress_asU8(), - args: abi.inputs.reduce(function (acc, current) { - acc[current.name] = current.indexed ? indexedParams.shift() : nonIndexedParams.shift() - return acc - }, {}), - }; -} - -export const SolidityEvent = function (abi: Event, burrow: Burrow) { - const name = utils.transformToFullName(abi); - const displayName = utils.extractDisplayName(name); - const typeName = utils.extractTypeName(name); - const signature = sha3(name); - - const call = function (address: string, callback: (err: Error, decoded: EventResult) => void) { - address = address || this.address; - if (!callback) throw new Error('Can not subscribe to an event without a callback.'); - - return burrow.pipe.eventSub(address, signature, (err, event) => { - if (err) callback(err, null); - let decoded: EventResult; - try { - decoded = decode(abi, event); - } catch (err) { - return callback(err, null); - } - callback(null, decoded); - }); - } - - return {displayName, typeName, call}; -} diff --git a/js/src/lib/contracts/function.ts b/js/src/lib/contracts/function.ts deleted file mode 100644 index 7e95a06da..000000000 --- a/js/src/lib/contracts/function.ts +++ /dev/null @@ -1,229 +0,0 @@ -import { Metadata } from "@grpc/grpc-js"; -import { callErrorFromStatus } from "@grpc/grpc-js/build/src/call"; -import { Keccak } from "sha3"; -import * as utils from '../utils/utils'; -import * as coder from 'ethereumjs-abi'; -import * as convert from '../utils/convert'; -import * as grpc from '@grpc/grpc-js'; -import sha3 from '../utils/sha3'; -import { TxInput, CallTx, ContractMeta } from '../../../proto/payload_pb'; -import { TxExecution, Result } from '../../../proto/exec_pb'; -import { Burrow, Error } from '../burrow'; -import { Envelope } from '../../../proto/txs_pb'; -import { Function, FunctionInput, FunctionOutput } from 'solc'; -import { ABI, Contract } from "./contract"; - -type FunctionIO = FunctionInput & FunctionOutput; - -export const DEFAULT_GAS = 1111111111; - -type TransactionResult = { - contractAddress: string - height: number - index: number - hash: string - type: number - result: Result.AsObject - tx: Envelope.AsObject - caller: string | string[] -} & DecodedResult - -type DecodedResult = { - raw?: any[] - values?: Record -} - -export type Handler = (result: TransactionResult) => any - -function fnSignature(abi: Function) { - const name = utils.transformToFullName(abi) - return sha3(name).slice(0, 8) -} - -const types = (args: Array) => args.map(arg => arg.type); - -function txPayload(data: string, account: string, address: string, contract?: Contract): CallTx { - const input = new TxInput(); - input.setAddress(Buffer.from(account, 'hex')); - input.setAmount(0); - - const payload = new CallTx(); - payload.setInput(input); - if (address) payload.setAddress(Buffer.from(address, 'hex')); - payload.setGaslimit(DEFAULT_GAS); - payload.setFee(0); - const code = Buffer.from(data, 'hex'); - // if we are deploying and it looks like wasm, it must be wasm. Note that - // evm opcode 0 is stop, so this would not make any sense. - const wasm_magic = Buffer.from('\0asm'); - if (!address && !Buffer.compare(code.slice(0, 4), wasm_magic)) { - payload.setWasm(code); - } else { - payload.setData(code); - } - // If address is null then we are creating a new contract, if we have the deployedBytecode then send it with the ABI - if (!address && contract.code.deployedBytecode) { - const meta = new ContractMeta() - // TODO: document/formalise the expected structure of the contract metadata - meta.setMeta(JSON.stringify({ Abi: contract.abi })) - const codeHash = (new Keccak(256)).update(contract.code.deployedBytecode, "hex").digest() - meta.setCodehash(codeHash) - payload.setContractmetaList([meta]) - } - - return payload -} - -const encodeF = function (abi: Function, args: Array, bytecode: string): string { - let abiInputs: string[]; - if (abi) { - abiInputs = types(abi.inputs) - args = convert.burrowToAbi(abiInputs, args) // If abi is passed, convert values accordingly - } - - // If bytecode provided then this is a creation call, bytecode goes first - if (bytecode) { - let data = bytecode - if (abi) data += convert.bytesTB(coder.rawEncode(abiInputs, args)) - return data - } else { - return fnSignature(abi) + convert.bytesTB(coder.rawEncode(abiInputs, args)) - } -} - -const decodeF = function (abi: Function, output: Uint8Array): DecodedResult { - if (!output) return - - let outputs = abi.outputs; - let outputTypes = types(outputs); - - // Decode raw bytes to arguments - let raw = convert.abiToBurrow(outputTypes, coder.rawDecode(outputTypes, Buffer.from(output))); - let result: DecodedResult = { raw: raw.slice() } - - result.values = outputs.reduce(function (acc, current) { - let value = raw.shift(); - if (current.name) { - acc[current.name] = value; - } - return acc; - }, {}); - - return result; -} - -export const SolidityFunction = function (abi: Function, burrow: Burrow) { - let isConstructor = (abi == null || abi.type === 'constructor'); - let name: string; - let displayName: string; - let typeName: string; - if (!isConstructor) { - name = utils.transformToFullName(abi); - displayName = utils.extractDisplayName(name); - typeName = utils.extractTypeName(name); - } - - // It might seem weird to include copies of the functions in here and above - // My reason is the code above can be used "functionally" whereas this version - // Uses implicit attributes of this object. - // I want to keep them separate in the case that we want to move all the functional - // components together and maybe even... write tests for them (gasp!) - const encode = function () { - // Call should always be bound to a Contract - const contract: Contract = this; - let args = Array.prototype.slice.call(arguments) - return encodeF(abi, args, isConstructor ? contract.code.bytecode : null) - } - - const decode = function (data) { - // Call should always be bound to a Contract - const contract: Contract = this; - return decodeF(abi, data) - } - - const call = async function (isSim: boolean, handler: Handler, address: string, ...args: any[]) { - // Call should always be bound to a Contract - const contract: Contract = this; - - handler = handler || function (result) { - return result - }; - address = address || contract.address; - if (isConstructor) { - address = null - } - - - let P = new Promise(function (resolve, reject) { - if (address == null && !isConstructor) reject(new Error('Address not provided to call')) - if (abi != null && abi.inputs.length !== args.length) reject(new Error('Insufficient arguments passed to function: ' + (isConstructor ? 'constructor' : name))) - // Post process the return - let post = function (error: Error, result: TxExecution) { - if (error) return reject(error) - - // Handle execution reversions - if (result.hasException()) { - // Decode error message if there is one otherwise default - if (result.getResult().getReturn().length === 0) { - return reject(callErrorFromStatus({ - code: grpc.status.ABORTED, - metadata: new Metadata(), - details: 'Execution Reverted', - })) - } else { - // Strip first 4 bytes(function signature) the decode as a string - return reject(callErrorFromStatus({ - code: grpc.status.ABORTED, - metadata: new Metadata(), - details: coder.rawDecode(['string'], Buffer.from(result.getResult().getReturn_asU8().slice(4)))[0], - })) - } - } - - // Meta Data (address, caller, height, etc) - let returnObj: TransactionResult = { - contractAddress: Buffer.from(result.getReceipt().getContractaddress_asU8()).toString('hex').toUpperCase(), - height: result.getHeader().getHeight(), - index: result.getHeader().getIndex(), - hash: Buffer.from(result.getHeader().getTxhash_asU8()).toString('hex').toUpperCase(), - type: result.getHeader().getTxtype(), - result: result.getResult().toObject(), - tx: result.getEnvelope().toObject(), - caller: convert.recApply(convert.bytesTB, result.getEnvelope().getSignatoriesList().map(sig => sig.getAddress_asU8())), - } - - // Unpack return arguments - if (!isConstructor) { - try { - let { raw, values } = decodeF(abi, result.getResult().getReturn_asU8()); - returnObj.raw = raw; - returnObj.values = values; - } catch (e) { - return reject(e) - } - } - - return resolve(returnObj); - } - - // Decide if to make a "call" or a "transaction" - // For the moment we need to use the burrowtoweb3 function to prefix bytes with 0x - // otherwise the coder will give an error with bignumber not a number - // TODO investigate if other libs or an updated lib will fix this - // let data = encodeF(abi, utils.burrowToWeb3(args), isCon ? self.code : null) - let data = encodeF(abi, args, isConstructor ? contract.code.bytecode : null) - let payload = txPayload(data, burrow.account, address, contract) - - if (isSim) { - burrow.pipe.call(payload, post) - } else { - burrow.pipe.transact(payload, post) - } - }) - - const result = await P; - return handler(result); - } - - return { displayName, typeName, call, encode, decode } -} diff --git a/js/src/lib/contracts/manager.ts b/js/src/lib/contracts/manager.ts deleted file mode 100644 index 78fd73a8c..000000000 --- a/js/src/lib/contracts/manager.ts +++ /dev/null @@ -1,46 +0,0 @@ -import {Event, Function} from 'solc'; -import {GetMetadataParam} from '../../../proto/rpcquery_pb'; -import {Burrow} from '../burrow'; -import {Contract, Handlers} from './contract'; - -type FunctionOrEvent = Function | Event; - -export class ContractManager { - burrow: Burrow; - - constructor(burrow: Burrow) { - this.burrow = burrow; - } - - async deploy(abi: Array, byteCode: string | { bytecode: string, deployedBytecode: string }, - handlers?: Handlers, ...args: any[]): Promise { - const contract = new Contract(abi, byteCode, null, this.burrow, handlers) - contract.address = await contract._constructor.apply(contract, args); - return contract; - } - - /** - * Looks up the ABI for a deployed contract from Burrow's contract metadata store. - * Contract metadata is only stored when provided by the contract deployer so is not guaranteed to exist. - * - * @method address - * @param {string} address - * @throws an error if no metadata found and contract could not be instantiated - * @returns {Contract} interface object - */ - fromAddress(address: string, handlers?: Handlers): Promise { - const msg = new GetMetadataParam(); - msg.setAddress(Buffer.from(address, 'hex')); - - return new Promise((resolve, reject) => - this.burrow.qc.getMetadata(msg, (err, res) => { - if (err) reject(err); - const metadata = res.getMetadata(); - if (!metadata) { - throw new Error(`could not find any metadata for account ${address}`) - } - const abi = JSON.parse(metadata).Abi; - resolve(new Contract(abi, null, address, this.burrow, handlers)); - })) - } -} diff --git a/js/src/lib/events.ts b/js/src/lib/events.ts deleted file mode 100644 index ede13f553..000000000 --- a/js/src/lib/events.ts +++ /dev/null @@ -1,44 +0,0 @@ -import {IExecutionEventsClient} from '../../proto/rpcevents_grpc_pb'; -import {BlocksRequest, BlockRange, Bound, EventsResponse} from '../../proto/rpcevents_pb'; -import {LogEvent} from '../../proto/exec_pb'; -import {Error} from './burrow'; -import * as grpc from '@grpc/grpc-js'; - -export type EventStream = grpc.ClientReadableStream; - -export class Events { - - constructor(private burrow: IExecutionEventsClient) { - } - - listen(query: string, callback: (err: Error, log: LogEvent) => void): EventStream { - const start = new Bound(); - start.setType(3); - start.setIndex(0); - const end = new Bound(); - end.setType(4); - end.setIndex(0); - - const range = new BlockRange(); - range.setStart(start); - range.setEnd(end); - - const arg = new BlocksRequest(); - arg.setBlockrange(range); - arg.setQuery(query); - - let stream = this.burrow.events(arg); - stream.on('data', (data: EventsResponse) => { - data.getEventsList().map(event => { - callback(null, event.getLog()); - }); - }); - stream.on('error', (err: Error) => err.code === grpc.status.CANCELLED || callback(err, null)); - return stream; - } - - subContractEvents(address: string, signature: string, callback: (err: Error, log: LogEvent) => void) { - const filter = "EventType = 'LogEvent' AND Address = '" + address.toUpperCase() + "'" + " AND Log0 = '" + signature.toUpperCase() + "'"; - return this.listen(filter, callback); - } -} diff --git a/js/src/lib/pipe.ts b/js/src/lib/pipe.ts deleted file mode 100644 index 83a751fdf..000000000 --- a/js/src/lib/pipe.ts +++ /dev/null @@ -1,32 +0,0 @@ -import {ServiceError} from "@grpc/grpc-js"; -import { ITransactClient } from '../../proto/rpctransact_grpc_pb'; -import { CallTx } from '../../proto/payload_pb'; -import { TxExecution } from '../../proto/exec_pb'; -import { Events } from './events'; -import { LogEvent } from '../../proto/exec_pb'; -import * as grpc from '@grpc/grpc-js'; - -export type TxCallback = grpc.requestCallback; - -export class Pipe { - burrow: ITransactClient; - events: Events; - - constructor(burrow: ITransactClient, events: Events) { - this.burrow = burrow; - this.events = events; - } - - transact(payload: CallTx, callback: TxCallback) { - return this.burrow.callTxSync(payload, callback) - } - - call(payload: CallTx, callback: TxCallback) { - this.burrow.callTxSim(payload, callback) - } - - eventSub(accountAddress: string, signature: string, callback: (err: ServiceError, log: LogEvent) => void) { - return this.events.subContractEvents(accountAddress, signature, callback) - } -} - diff --git a/js/src/lib/utils/convert.ts b/js/src/lib/utils/convert.ts deleted file mode 100644 index 767c5653b..000000000 --- a/js/src/lib/utils/convert.ts +++ /dev/null @@ -1,77 +0,0 @@ -import BN from 'bn.js'; - -export const recApply = function (func: (input: A) => B, args: A | A[]): B | B[] { - if (Array.isArray(args)) { - let next: any = []; - for (let i = 0; i < args.length; i++) { - next.push(recApply(func, args[i])); - }; - return next; - } - return func(args); -} - -export const addressTB = function (arg: string) { - return arg.toUpperCase(); -} - -export const addressTA = function (arg: string) { - if (!/^0x/i.test(arg)) { - return '0x' + arg; - } - return arg; -} - -export const bytesTB = function (arg: Buffer) { - return arg.toString('hex').toUpperCase(); -} - -export const bytesTA = function (arg: string) { - if (typeof (arg) === 'string' && /^0x/i.test(arg)) { - arg = arg.slice(2); - } - return Buffer.from(arg, 'hex'); -} - -export const numberTB = function (arg: BN) { - let res: BN | number; - try { - // number is limited to 53 bits, BN will throw Error - res = arg.toNumber(); - } - catch { - // arg does not fit into number type, so keep it as BN - res = arg; - } - return res; -} - -export const abiToBurrow = function (puts: string[], args: Array) { - let out: any[] = []; - for (let i = 0; i < puts.length; i++) { - if (/address/i.test(puts[i])) { - out.push(recApply(addressTB, args[i])); - } else if (/bytes/i.test(puts[i])) { - out.push(recApply(bytesTB, args[i])); - } else if (/int/i.test(puts[i])) { - out.push(recApply(numberTB, args[i])); - } else { - out.push(args[i]); - } - } - return out -} - -export const burrowToAbi = function (puts: string[], args: Array) { - let out = []; - for (let i = 0; i < puts.length; i++) { - if (/address/i.test(puts[i])) { - out.push(recApply(addressTA, args[i])); - } else if (/bytes/i.test(puts[i])) { - out.push(recApply(bytesTA, args[i])); - } else { - out.push(args[i]); - } - }; - return out; -} \ No newline at end of file diff --git a/js/src/lib/utils/sha3.ts b/js/src/lib/utils/sha3.ts deleted file mode 100644 index d6ba342ea..000000000 --- a/js/src/lib/utils/sha3.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Keccak } from 'sha3'; - -export default function SHA3(str: string) { - const hash = (new Keccak(256)).update(str); - return hash.digest('hex').toUpperCase(); -} \ No newline at end of file diff --git a/js/src/lib/utils/utils.ts b/js/src/lib/utils/utils.ts deleted file mode 100644 index e0d95c144..000000000 --- a/js/src/lib/utils/utils.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Function, FunctionInput, FunctionOutput, Event, EventInput } from 'solc'; - -type FunctionIO = FunctionInput & FunctionOutput; - -export function transformToFullName(abi: Function | Event): string { - if (abi.name.indexOf('(') !== -1) return abi.name; - const typeName = (abi.inputs as (EventInput | FunctionIO)[]).map(i => i.type).join(); - return abi.name + '(' + typeName + ')'; -} - -export function extractDisplayName(name: string): string { - let length = name.indexOf('(') - return length !== -1 ? name.substr(0, length) : name -} - -export function extractTypeName(name: string): string { - /// TODO: make it invulnerable - let length = name.indexOf('(') - return length !== -1 ? name.substr(length + 1, name.length - 1 - (length + 1)).replace(' ', '') : '' -} - -export function isFunction(object: object): boolean { - return typeof object === 'function' -} \ No newline at end of file diff --git a/js/src/lib/namereg.ts b/js/src/namereg.ts similarity index 75% rename from js/src/lib/namereg.ts rename to js/src/namereg.ts index 4bb92f543..89513e5eb 100644 --- a/js/src/lib/namereg.ts +++ b/js/src/namereg.ts @@ -1,9 +1,9 @@ -import {IQueryClient} from '../../proto/rpcquery_grpc_pb'; -import {GetNameParam} from '../../proto/rpcquery_pb'; -import {Entry} from '../../proto/names_pb'; -import {ITransactClient} from '../../proto/rpctransact_grpc_pb'; -import {TxInput, NameTx} from '../../proto/payload_pb'; -import {TxExecution} from '../../proto/exec_pb'; +import {IQueryClient} from '../proto/rpcquery_grpc_pb'; +import {GetNameParam} from '../proto/rpcquery_pb'; +import {Entry} from '../proto/names_pb'; +import {ITransactClient} from '../proto/rpctransact_grpc_pb'; +import {TxInput, NameTx} from '../proto/payload_pb'; +import {TxExecution} from '../proto/exec_pb'; import * as grpc from '@grpc/grpc-js'; export class Namereg { diff --git a/js/src/test.ts b/js/src/test.ts deleted file mode 100644 index fd137513e..000000000 --- a/js/src/test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import {Burrow} from './index'; -import * as solc from 'solc'; - -// convenience function to compile solidity in tests -export const compile = (source: string, name: string) => { - let desc: solc.InputDescription = {language: 'Solidity', sources: {}}; - desc.sources[name] = {content: source}; - desc.settings = {outputSelection: {'*': {'*': ['*']}}}; - - const json = solc.compile(JSON.stringify(desc)); - const compiled: solc.OutputDescription = JSON.parse(json); - if (compiled.errors) throw new Error(compiled.errors.map(err => err.formattedMessage).toString()); - const contract = compiled.contracts[name][name]; - return {abi: contract.abi, code: {bytecode: contract.evm.bytecode.object, deployedBytecode: contract.evm.deployedBytecode.object} }; -} - -const url = process.env.BURROW_URL || 'localhost:20997'; -const addr = process.env.SIGNING_ADDRESS || 'C9F239591C593CB8EE192B0009C6A0F2C9F8D768'; -console.log(`Connecting to Burrow at ${url}...`) -export const burrow = new Burrow(url, addr); - diff --git a/js/src/test/175.test.ts b/js/src/test/175.test.ts index c2ed9314c..589f72bc1 100644 --- a/js/src/test/175.test.ts +++ b/js/src/test/175.test.ts @@ -1,7 +1,10 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { ContractInstance, getMetadata } from '../contracts/contract'; +import { burrow } from './test'; -describe('#175', function () {it('#175', async () => { +describe('#175', function () { + it('#175', async () => { const source = ` pragma solidity >=0.0.0; contract Contract { @@ -13,22 +16,22 @@ describe('#175', function () {it('#175', async () => { return thename; } } - ` - var contract - let A2 + `; - const {abi, code} = compile(source, 'Contract') - return burrow.contracts.deploy(abi, code, null, 'contract1').then((C) => { - contract = C - return contract._constructor('contract2') - }).then((address) => { - A2 = address - return Promise.all( - [contract.getName(), // Note using the default address from the deploy - contract.getName.at(A2)]) // Using the .at() to specify the second deployed contract - }).then(([result1, result2]) => { - assert.strictEqual(result1[0], 'contract1') - assert.strictEqual(result2[0], 'contract2') - }) - }) -}) + const contract = compile(source, 'Contract'); + + const instance1 = (await contract.deploy(burrow, 'contract1')) as any; + const instance2 = await contract.deploy(burrow, 'contract2'); + + const address = getMetadata(instance2).address; + const ps = await Promise.all([ + // Note using the default address from the deploy + instance1.getName(), + // Using the .at() to specify the second deployed contract + instance1.getName.at(address)(), + ]); + const [[name1], [name2]] = ps; + assert.strictEqual(name1, 'contract1'); + assert.strictEqual(name2, 'contract2'); + }); +}); diff --git a/js/src/test/44.test.ts b/js/src/test/44.test.ts index b22fd9679..34368c68d 100644 --- a/js/src/test/44.test.ts +++ b/js/src/test/44.test.ts @@ -1,5 +1,6 @@ import * as assert from 'assert'; -import {burrow, compile} from "../test"; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('#44', function () { it('#44', async () => { @@ -16,12 +17,12 @@ describe('#44', function () { return storedData; } } - ` - const {abi, code} = compile(source, 'SimpleStorage'); - const contract: any = await burrow.contracts.deploy(abi, code); - await contract.set('88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'); + `; + const contract = compile(source, 'SimpleStorage'); + const instance: any = await contract.deploy(burrow); + await instance.set('88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'); - const data = await contract.get(); - assert.deepStrictEqual(data,[ '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F']); - }) -}) + const data = await instance.get(); + assert.deepStrictEqual([...data], ['88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F']); + }); +}); diff --git a/js/src/test/45.test.ts b/js/src/test/45.test.ts index c06f274e4..f9c7bbf1b 100644 --- a/js/src/test/45.test.ts +++ b/js/src/test/45.test.ts @@ -1,9 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('#45', function () { - - it('nottherealbatman', async () => { + it('Set/get memory string', async () => { const source = ` pragma solidity >=0.0.0; contract Test { @@ -21,17 +21,17 @@ describe('#45', function () { return _name; } } - ` - const {abi, code} = compile(source, 'Test') - return burrow.contracts.deploy(abi, code).then((contract: any) => - contract.setName('Batman') - .then(() => contract.getName()) - ).then((value) => { - assert.deepStrictEqual(value, ['Batman']) - }) - }) - - it('rguikers', async () => { + `; + const contract = compile(source, 'Test'); + return contract + .deploy(burrow) + .then((instance: any) => instance.setName('Batman').then(() => instance.getName())) + .then((value) => { + assert.deepStrictEqual(value, ['Batman']); + }); + }); + + it('get number/address', async () => { const source = ` pragma solidity >=0.0.0; contract Test { @@ -45,15 +45,14 @@ describe('#45', function () { } } - ` - - const {abi, code} = compile(source, 'Test') - return burrow.contracts.deploy(abi, code).then((contract: any) => - Promise.all([contract.getAddress(), contract.getNumber()]) - .then(([address, number]) => { - assert.strictEqual(address[0].length, 40) - assert.strictEqual(number[0], 100) - }) - ) - }) -}) + `; + + const contract = compile(source, 'Test'); + return contract.deploy(burrow).then((instance: any) => + Promise.all([instance.getAddress(), instance.getNumber()]).then(([address, number]) => { + assert.strictEqual(address[0].length, 40); + assert.strictEqual(number[0], 100); + }), + ); + }); +}); diff --git a/js/src/test/46.test.ts b/js/src/test/46.test.ts index 0154fdc84..7f002a8c9 100644 --- a/js/src/test/46.test.ts +++ b/js/src/test/46.test.ts @@ -1,7 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; -describe('#46', function () {it('#46', async () => { +describe('#46', function () { + it('#46', async () => { const source = ` pragma solidity >=0.0.0; contract Test{ @@ -20,14 +22,16 @@ describe('#46', function () {it('#46', async () => { return _name; } } - ` + `; - const {abi, code} = compile(source, 'Test') - return burrow.contracts.deploy(abi, code) - .then((contract: any) => contract.setName('Batman') - .then(() => Promise.all([contract.getNameConstant(), contract.getName()]))) + const contract = compile(source, 'Test'); + return contract + .deploy(burrow) + .then((instance: any) => + instance.setName('Batman').then(() => Promise.all([instance.getNameConstant(), instance.getName()])), + ) .then(([constant, nonConstant]) => { - assert.strictEqual(constant[0], nonConstant[0]) - }) - }) -}) + assert.strictEqual(constant[0], nonConstant[0]); + }); + }); +}); diff --git a/js/src/test/47.test.ts b/js/src/test/47.test.ts index cf38fbae9..dfbe416ec 100644 --- a/js/src/test/47.test.ts +++ b/js/src/test/47.test.ts @@ -1,7 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; -describe('#47', function () {it('#47', async () => { +describe('#47', function () { + it('#47', async () => { const source = ` pragma solidity >=0.0.0; contract Test{ @@ -16,13 +18,14 @@ describe('#47', function () {it('#47', async () => { return _withoutSpace; } } - ` - const {abi, code} = compile(source, 'Test') - return burrow.contracts.deploy(abi, code) - .then((contract: any) => Promise.all([contract.getWithSpaceConstant(), contract.getWithoutSpaceConstant()])) + `; + const contract = compile(source, 'Test'); + return contract + .deploy(burrow) + .then((instance: any) => Promise.all([instance.getWithSpaceConstant(), instance.getWithoutSpaceConstant()])) .then(([withSpace, withoutSpace]) => { - assert.deepStrictEqual(withSpace, [' Pieter']) - assert.deepStrictEqual(withoutSpace, ['Pieter']) - }) - }) -}) + assert.deepStrictEqual(withSpace, [' Pieter']); + assert.deepStrictEqual(withoutSpace, ['Pieter']); + }); + }); +}); diff --git a/js/src/test/48.test.ts b/js/src/test/48.test.ts index 06f974c25..547a06c78 100644 --- a/js/src/test/48.test.ts +++ b/js/src/test/48.test.ts @@ -1,7 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; -describe('#48', function () {it('#48', async () => { +describe('#48', function () { + it('#48', async () => { const source = ` pragma solidity >=0.0.0; contract Test { @@ -20,13 +22,14 @@ describe('#48', function () {it('#48', async () => { } } - ` - const {abi, code} = compile(source, 'Test') - return burrow.contracts.deploy(abi, code) - .then((contract: any) => contract.getCombination()) + `; + const contract = compile(source, 'Test'); + return contract + .deploy(burrow) + .then((instance: any) => instance.getCombination()) .then(([number, address]) => { - assert.strictEqual(number, 100) - assert.strictEqual(address.length, 40) - }) - }) -}) + assert.strictEqual(number, 100); + assert.strictEqual(address.length, 40); + }); + }); +}); diff --git a/js/src/test/50.test.ts b/js/src/test/50.test.ts index d7d692545..184ca5afe 100644 --- a/js/src/test/50.test.ts +++ b/js/src/test/50.test.ts @@ -1,7 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; -describe('#50', function () {it('#50', async () => { +describe('#50', function () { + it('#50', async () => { const source = ` pragma solidity >=0.0.0; contract SimpleStorage { @@ -15,13 +17,11 @@ describe('#50', function () {it('#50', async () => { return storedData; } } - ` - const {abi, code} = compile(source, 'SimpleStorage') - return burrow.contracts.deploy(abi, code) - .then((contract: any) => contract.set(42) - .then(() => contract.get.call()) - ).then((value) => { - assert.deepStrictEqual(value, [42]) - }) - }) -}) + `; + const contract = compile(source, 'SimpleStorage'); + const instance = await contract.deploy(burrow); + await instance.set(42); + const value = await instance.get.call(); + assert.deepStrictEqual([...value], [42]); + }); +}); diff --git a/js/src/test/61.test.ts b/js/src/test/61.test.ts index 6cfa28c39..066aa4e76 100644 --- a/js/src/test/61.test.ts +++ b/js/src/test/61.test.ts @@ -1,7 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; -describe('#61', function () {it('#61', async () => { +describe('#61', function () { + it('#61', async () => { const source = ` pragma solidity >=0.0.0; contract SimpleStorage { @@ -15,12 +17,10 @@ describe('#61', function () {it('#61', async () => { return storedData; } } - ` - const {abi, code} = compile(source, 'SimpleStorage') - return burrow.contracts.deploy(abi, code, null, '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F') - .then((contract: any) => contract.get()) - .then((value) => { - assert.deepStrictEqual(value, ['88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F']) - }) - }) -}) + `; + const contract = compile(source, 'SimpleStorage'); + const instance = await contract.deploy(burrow, '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'); + const value = await instance.get(); + assert.deepStrictEqual([...value], ['88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F']); + }); +}); diff --git a/js/src/test/README.md b/js/src/test/README.md index 1dc989cd6..ffdb5eccf 100644 --- a/js/src/test/README.md +++ b/js/src/test/README.md @@ -1,123 +1,5 @@ -# Test Framework +# Integration Tests -Specialized functions are available in `lib/test.js` to make testing interactions with the Burrow server easier. The general idea is that the JavaScript library interacting with the Burrow server is very complex so we reduce the complexity by decoupling their interactions with each other. The decoupling is achieved by replacing either the client or the server (at different times) with a _test vector_ that simulates its behavior. The test vector is an automatic recording of the conversation between the two. +This folder contains integration tests that expect a live Burrow instance with which to communicate. -We replace this: - -``` -client <-> server -(complex) (complex) -``` - -with this: - -``` -client <-> test vector <-> server -(complex) (simple) (complex) -``` - -so that the client can be tested in isolation: - -``` -client <-> test vector -(complex) (simple) -``` - -and the server can be tested in isolation: - -``` -test vector <-> server -(simple) (complex) -``` - -For more background on this technique see [Integrated Tests Are A Scam](https://vimeo.com/80533536). - -## Usage in Tests - -A standard [Mocha](https://mochajs.org/) test file structure looks like this: - -```JavaScript -'use strict' - -const assert = require('assert') - -before(function () { - // Set up artifacts for testing. -}) - -after(function () { - // Clean up test artifacts. -}) - -it(`description of the test`, function () { - // Compute results. - assert.strictEqual(results, expectations) -}) -``` - -The `test` library will do all of the heavy lifting of creating a blockchain and making it possible to record and playback the test vector if you structure your code like this: - -```JavaScript -'use strict' - -const assert = require('assert') -const Promise = require('bluebird') -const test = require('../../lib/test') - -const vector = test.Vector() - -describe('HTTP', function () { - before(vector.before(__dirname, {protocol: 'http:'}) - after(vector.after())it('sets and gets a value from a contract', vector.it(function (manager) { - const source = ` - contract SimpleStorage { - uint storedData; - - function set(uint x) { - storedData = x; - } - - function get() constant returns (uint retVal) { - return storedData; - } - } - ` - - return compile(manager, source, 'SimpleStorage').then((contract) => - Promise.fromCallback((callback) => - contract.set(42, callback) - ).then(() => - Promise.fromCallback((callback) => - contract.get(callback) - ) - ) - ).then((value) => { - assert.strictEqual(value, 42) - }) - }) -}) -``` - -Notice that the callback passed to `vector.it` is called with the `manager` object. - -## Commands - -Tests written like this can then be used by the following commands: - -To test the library against pre-recorded vectors: - -``` -yarn test -``` - -To test the library against Burrow while automatically recording vectors: - -``` -TEST=record yarn test -``` - -To test Burrow against pre-recorded vectors without exercising the client: - -``` -TEST=server yarn test -``` +The [tesh.sh](test.sh) runner script provides a suitable wrapper. diff --git a/js/src/test/abis.test.ts b/js/src/test/abis.test.ts index 72d066df9..ba05beda4 100644 --- a/js/src/test/abis.test.ts +++ b/js/src/test/abis.test.ts @@ -1,8 +1,9 @@ import * as assert from 'assert'; -import {burrow, compile} from "../test"; +import { compile } from '../contracts/compile'; +import { getAddress } from '../contracts/contract'; +import { burrow } from './test'; describe('Abi', function () { - const source = ` pragma solidity >=0.0.0; @@ -11,17 +12,17 @@ contract random { return 55; } } - ` + `; // TODO: understand why abi storage isn't working it('Call contract via burrow side Abi', async () => { - const {abi, code} = compile(source, 'random') - const contractIn: any = await burrow.contracts.deploy(abi, code) - await burrow.namereg.set('random', contractIn.address) - const entry = await burrow.namereg.get('random') + const contract = compile(source, 'random'); + const instance: any = await contract.deploy(burrow); + await burrow.namereg.set('random', getAddress(instance)); + const entry = await burrow.namereg.get('random'); const address = entry.getData(); - console.log(address) - const contractOut: any = await burrow.contracts.fromAddress(address) - const number = await contractOut.getRandomNumber() - assert.strictEqual(number[0], 55) - }) -}) + console.log(address); + const contractOut: any = await contract.at(address, burrow); + const number = await contractOut.getRandomNumber(); + assert.strictEqual(number[0], 55); + }); +}); diff --git a/js/src/test/bn.test.ts b/js/src/test/bn.test.ts index 1eebe55d7..2872a62ce 100644 --- a/js/src/test/bn.test.ts +++ b/js/src/test/bn.test.ts @@ -1,10 +1,11 @@ import * as assert from 'assert'; -import { burrow, compile } from '../test'; -import BN from 'bn.js'; +import { BigNumber } from 'ethers/lib/ethers'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('BN', function () { - it('BN', async () => { - const source = ` + it('BN', async () => { + const source = ` pragma solidity >=0.0.0; contract Test { function mul(int a, int b) public pure returns (int) { @@ -15,23 +16,20 @@ describe('BN', function () { return 1e19; } } - ` - const { abi, code } = compile(source, 'Test') - let contract: any = await burrow.contracts.deploy(abi, code); + `; + const contract = compile(source, 'Test'); + const instance = await contract.deploy(burrow); - await contract.getNumber() - .then(([number]) => { - assert.strictEqual(new BN('10000000000000000000').cmp(number), 0) - }) + const [number] = await instance.getNumber(); + const expected = BigNumber.from('10000000000000000000'); + assert.ok(expected.eq(number)); - await contract.mul(100, -300) - .then(([number]) => { - assert.strictEqual(number, -30000) - }) + await instance.mul(100, -300).then(([number]: any) => { + assert.strictEqual(number, -30000); + }); - await contract.mul(new BN('18446744073709551616'), 102) - .then(([number]) => { - assert.strictEqual(new BN('1881567895518374264832').cmp(number), 0) - }) - }) -}) + await instance.mul(BigNumber.from('18446744073709551616'), 102).then(([number]: any) => { + assert.ok(BigNumber.from('1881567895518374264832').eq(number)); + }); + }); +}); diff --git a/js/src/test/contract-event.test.ts b/js/src/test/contract-event.test.ts index 622d68f4a..b658bcbb3 100644 --- a/js/src/test/contract-event.test.ts +++ b/js/src/test/contract-event.test.ts @@ -1,8 +1,9 @@ -import {Contract} from '..'; -import {burrow, compile} from "../test"; +import { compile } from '../contracts/compile'; +import { ContractEvent, getAddress } from '../contracts/contract'; +import { Contract } from '../index'; +import { burrow } from './test'; describe('Nested contract event emission', function () { - it('#38', async () => { const source = ` pragma solidity >=0.0.0; @@ -13,17 +14,17 @@ describe('Nested contract event emission', function () { emit Event(); } } - ` - const {abi, code} = compile(source, 'Contract') - const contract: any = await burrow.contracts.deploy(abi, code) - const secondContract: any = new Contract(abi, null, contract.address, burrow) - const stream = secondContract.Event.at(contract.address, function (error, event) { + `; + const contract = compile(source, 'Contract'); + const instance: any = await contract.deploy(burrow); + const event = instance.Event as ContractEvent; + const stream = event.at(getAddress(instance), function (error, result) { if (error) { - throw error + throw error; } else { - stream.cancel() + stream.cancel(); } - secondContract.announce() - }) - }) -}) + instance.announce(); + }); + }); +}); diff --git a/js/src/test/event-listen.test.ts b/js/src/test/event-listen.test.ts index ba66713b5..7f9c4fddc 100644 --- a/js/src/test/event-listen.test.ts +++ b/js/src/test/event-listen.test.ts @@ -1,8 +1,10 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { LogDescription } from 'ethers/lib/utils'; +import { compile } from '../contracts/compile'; +import { ContractEvent } from '../contracts/contract'; +import { burrow } from './test'; describe('Event listening', function () { - it('listens to an event from a contract', async () => { const source = ` pragma solidity >=0.0.0; @@ -29,47 +31,35 @@ describe('Event listening', function () { ); } } - ` + `; - const {abi, code} = compile(source, 'Contract') - const contract: any = await burrow.contracts.deploy(abi, code) - const promise = new Promise((resolve, reject) => { - const stream = contract.Pay((error, result) => { - if (error) { + const contract = compile(source, 'Contract'); + const instance = await contract.deploy(burrow); + const promise = new Promise((resolve, reject) => { + const pay = instance.Pay as ContractEvent; + const stream = pay((error, result) => { + if (error || !result) { reject(error); } else { - const actual = Object.assign( - {}, - result.args, - {amount: Number(result.args.amount)} - ) - - assert.deepStrictEqual( - actual, - { - originator: '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F', - beneficiary: '721584FA4F1B9F51950018073A8E5ECF47F2D3B8', - amount: 1, - - servicename: 'Energy', - - nickname: 'wasmachine', - - providername: 'Eneco', - - randomBytes: '000000000000000000000000000000000000000000000000DEADFEEDBEEFFACE' - } - ) - - stream.cancel() - resolve() + resolve(result); + stream.cancel(); } }); - }) + }); + await instance.announce(); - await contract.announce() + const result = await promise; - return promise - }) + assert.strictEqual(result.args.originator, '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'); + assert.strictEqual(result.args.beneficiary, '721584FA4F1B9F51950018073A8E5ECF47F2D3B8'); + assert.strictEqual(Number(result.args.amount), 1); + assert.strictEqual(result.args.servicename, 'Energy'); + assert.strictEqual(result.args.nickname, 'wasmachine'); + assert.strictEqual(result.args.providername, 'Eneco'); + const randomBytes = result.args.randomBytes as Buffer; + assert.strictEqual( + randomBytes.toString('hex').toUpperCase(), + '000000000000000000000000000000000000000000000000DEADFEEDBEEFFACE', + ); + }); }); - diff --git a/js/src/test/event.test.ts b/js/src/test/event.test.ts index df2ff5734..7f42eff77 100644 --- a/js/src/test/event.test.ts +++ b/js/src/test/event.test.ts @@ -1,5 +1,7 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { ContractEvent } from '../contracts/contract'; +import { burrow } from './test'; describe('event', function () { it('listens to an event from a contract', async () => { @@ -14,26 +16,27 @@ describe('event', function () { emit Event(msg.sender); } } - ` - const {abi, code} = compile(source, 'Contract') - const contract: any = await burrow.contracts.deploy(abi, code) + `; + const contract = compile(source, 'Contract'); + const instance: any = await contract.deploy(burrow); let count = 0; - const stream = contract.Event((error, event) => { + const event = instance.Event as ContractEvent; + const stream = event((error, event) => { if (error) { - throw(error) + throw error; } else { - assert.strictEqual(event.args.from.length, 40) + assert.strictEqual(event?.args?.from?.length, 40); - count++ + count++; if (count === 2) { - stream.cancel() + stream.cancel(); } } - }) + }); - contract.announce() - contract.announce() - }) -}) + instance.announce(); + instance.announce(); + }); +}); diff --git a/js/src/test/flipper.test.ts b/js/src/test/flipper.test.ts index cefd87bef..17788aad9 100644 --- a/js/src/test/flipper.test.ts +++ b/js/src/test/flipper.test.ts @@ -1,21 +1,22 @@ -import * as assert from "assert"; -import { burrow } from "../test"; +import * as assert from 'assert'; import fs from 'fs'; +import { Contract } from '../contracts/contract'; +import { burrow } from './test'; describe('Wasm flipper:', function () { - let TestContract + let TestContract: any; - before(async () => { - const abi: any[] = JSON.parse(fs.readFileSync('src/test/flipper.abi', 'utf-8')) - const wasm: string = fs.readFileSync('src/test/flipper.wasm').toString('hex') - TestContract = await burrow.contracts.deploy(abi, wasm, null, true) - }) + before(async () => { + const abi: any[] = JSON.parse(fs.readFileSync('src/test/flipper.abi', 'utf-8')); + const wasm: string = fs.readFileSync('src/test/flipper.wasm').toString('hex'); + TestContract = await new Contract({ abi, bytecode: wasm }).deploy(burrow, true); + }); - it('Flip', async () => { - let output = await TestContract.get() - assert.strictEqual(output[0], true) - await TestContract.flip() - output = await TestContract.get() - assert.strictEqual(output[0], false) - }) -}) + it('Flip', async () => { + let output = await TestContract.get(); + assert.strictEqual(output[0], true); + await TestContract.flip(); + output = await TestContract.get(); + assert.strictEqual(output[0], false); + }); +}); diff --git a/js/src/test/functional.test.ts b/js/src/test/functional.test.ts index 12167619f..accd58766 100644 --- a/js/src/test/functional.test.ts +++ b/js/src/test/functional.test.ts @@ -1,8 +1,10 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; -import { Contract } from '..'; +import { compile } from '../contracts/compile'; +import { getMetadata } from '../contracts/contract'; +import { burrow } from './test'; -describe('Functional Contract Usage', function () {it('#Constructor usage', async () => { +describe('Functional Contract Usage', function () { + it('#Constructor usage', async () => { const source = ` pragma solidity >=0.0.0; contract Test { @@ -28,33 +30,39 @@ describe('Functional Contract Usage', function () {it('#Constructor usage', asyn } } - ` - const {abi, code} = compile(source, 'Test') - const contract: any = new Contract(abi, code, null, burrow) - - let A1 - let A2 - - assert.strictEqual(contract.address, null) - - // Use the _contructor method to creat two contracts - return Promise.all( - [contract._constructor('88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'), - contract._constructor('ABCDEFABCDEFABCDEFABCDEFABCDEFABCDEF0123')]) - .then(([address1, address2]) => { - assert.strictEqual(contract.address, null) - A1 = address1 - A2 = address2 - - return Promise.all( - [contract.getCombination.at(A1), - contract.getCombination.at(A2)]) - }) - .then(([object1, object2]) => { - const expected1 = [100, A1, 'hello moto', '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'] - const expected2 = [100, A2, 'hello moto', '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', 'ABCDEFABCDEFABCDEFABCDEFABCDEFABCDEF0123'] - assert.deepEqual(object1, expected1) - assert.deepEqual(object2, expected2) - }) - }) -}) + `; + const contract = compile(source, 'Test'); + + const [instance1, instance2] = await Promise.all([ + contract.deploy(burrow, '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F'), + contract.deploy(burrow, 'ABCDEFABCDEFABCDEFABCDEFABCDEFABCDEF0123'), + ]); + + const address1 = getMetadata(instance1).address; + const address2 = getMetadata(instance2).address; + + const [ret1, ret2] = await Promise.all([ + instance1.getCombination.at(address1)(), + instance1.getCombination.at(address2)(), + ]); + + const expected1 = [ + 100, + address1, + 'hello moto', + '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', + '88977A37D05A4FE86D09E88C88A49C2FCF7D6D8F', + ]; + const expected2 = [ + 100, + address2, + 'hello moto', + '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', + 'ABCDEFABCDEFABCDEFABCDEFABCDEFABCDEF0123', + ]; + assert.deepStrictEqual([...ret1], expected1); + assert.deepStrictEqual([...ret2], expected2); + // Check we are assigning names to hybrid record/array Result object + assert.strictEqual(ret2._saying, 'hello moto'); + }); +}); diff --git a/js/src/test/get-set.test.ts b/js/src/test/get-set.test.ts index 439f4b2f9..9d6f75487 100644 --- a/js/src/test/get-set.test.ts +++ b/js/src/test/get-set.test.ts @@ -1,5 +1,6 @@ -import * as assert from "assert"; -import {burrow, compile} from "../test"; +import * as assert from 'assert'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('Setting and Getting Values:', function () { const source = ` @@ -56,41 +57,41 @@ contract GetSet { return output; } } -` +`; - const testUint = 42 - const testBytes = 'DEADBEEF00000000000000000000000000000000000000000000000000000000' - const testString = 'Hello World!' - const testBool = true + const testUint = 42; + const testBytes = 'DEADBEEF00000000000000000000000000000000000000000000000000000000'; + const testString = 'Hello World!'; + const testBool = true; - let TestContract + let TestContract: any; before(async () => { - const {abi, code} = compile(source, 'GetSet') - TestContract = await burrow.contracts.deploy(abi, code) - }) + const contract = compile(source, 'GetSet'); + TestContract = await contract.deploy(burrow); + }); it('Uint', async () => { - await TestContract.setUint(testUint) - const output = await TestContract.getUint() - assert.strictEqual(output[0], testUint) - }) + await TestContract.setUint(testUint); + const output = await TestContract.getUint(); + assert.strictEqual(output[0], testUint); + }); it('Bool', async () => { - await TestContract.setBool(testBool) - const output = await TestContract.getBool() - assert.strictEqual(output[0], testBool) - }) + await TestContract.setBool(testBool); + const output = await TestContract.getBool(); + assert.strictEqual(output[0], testBool); + }); it('Bytes', async () => { - await TestContract.setBytes(testBytes) - const output = await TestContract.getBytes() - assert.strictEqual(output[0], testBytes) - }) + await TestContract.setBytes(testBytes); + const output = await TestContract.getBytes(); + assert.strictEqual(output[0], testBytes); + }); it('String', async () => { - await TestContract.setString(testString) - const output = await TestContract.getString() - assert.strictEqual(output[0], testString) - }) -}) + await TestContract.setString(testString); + const output = await TestContract.getString(); + assert.strictEqual(output[0], testString); + }); +}); diff --git a/js/src/test/handler-overwriting.test.ts b/js/src/test/handler-overwriting.test.ts index a608a3c78..1a22fd5db 100644 --- a/js/src/test/handler-overwriting.test.ts +++ b/js/src/test/handler-overwriting.test.ts @@ -1,6 +1,10 @@ import * as assert from 'assert'; -import {burrow, compile} from "../test"; - +import { Result } from 'ethers/lib/utils'; +import { CallResult } from '../contracts/call'; +import { compile } from '../contracts/compile'; +import { getMetadata } from '../contracts/contract'; +import { withoutArrayElements } from "../convert"; +import { burrow } from './test'; describe('Testing Per-contract handler overwriting', function () { // {handlers: {call: function (result) { return {super: result.values, man: result.raw} }}}) @@ -26,25 +30,28 @@ describe('Testing Per-contract handler overwriting', function () { } } - ` - - const {abi, code} = compile(source, 'Test') - const contract: any = await burrow.contracts.deploy(abi, code, { - call: function (result_1) { - return {values: result_1.values, raw: result_1.raw}; - } + `; + + const instance: any = await compile(source, 'Test').deployWith(burrow, { + handler: function ({ result }: CallResult) { + return { + values: withoutArrayElements(result), + raw: [...result], + }; + }, }); - let address = contract.address; - const returnObject = await contract.getCombination(); + const address = getMetadata(instance).address; + const returnObject = await instance.getCombination(); const expected = { values: { _number: 100, _address: address, _saying: 'hello moto', - _randomBytes: '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE' + _randomBytes: '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', }, - raw: [100, address, 'hello moto', '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE'] + raw: [100, address, 'hello moto', '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE'], }; assert.deepStrictEqual(returnObject, expected); - }) -}) + }); +}); + diff --git a/js/src/test/infloop.test.ts b/js/src/test/infloop.test.ts index a134b2f24..8734507db 100644 --- a/js/src/test/infloop.test.ts +++ b/js/src/test/infloop.test.ts @@ -1,9 +1,10 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; -describe.skip('Really Long Loop', function () { - let contract - this.timeout(1000000) +describe('Really Long Loop', function () { + let instance: any; + this.timeout(1000000); before(async () => { const source = ` @@ -14,7 +15,7 @@ describe.skip('Really Long Loop', function () { return sub.getString(); } } - contract c { + contract c { string s = "secret"; uint n = 0; function getString() public returns (string memory){ @@ -24,19 +25,29 @@ describe.skip('Really Long Loop', function () { return s; } } - ` + `; - const {abi, code} = compile(source, 'main') - const c = await burrow.contracts.deploy(abi, code.bytecode); - contract = c; - }) + const contract = compile(source, 'main'); + instance = await contract.deployWith(burrow, { + middleware: (callTx) => { + // Normal gas for deploy (when address === '') + if (callTx.getAddress()) { + // Hardly any for call + callTx.setGaslimit(11); + } + return callTx; + }, + }); + }); it('It catches a revert when gas runs out', async () => { - return contract.test() - .then((str) => { - throw new Error('Did not catch revert error') - }).catch((err) => { - assert.strictEqual(err.message, 'ERR_EXECUTION_REVERT') + await instance + .test() + .then((str: string) => { + throw new Error('Did not catch revert error'); }) - }) -}) + .catch((err: Error) => { + assert.match(err.message, /Error 5: insufficient gas/); + }); + }); +}); diff --git a/js/src/test/memory-bytes.test.ts b/js/src/test/memory-bytes.test.ts index 658fb55b1..13ad30531 100644 --- a/js/src/test/memory-bytes.test.ts +++ b/js/src/test/memory-bytes.test.ts @@ -1,16 +1,16 @@ import * as assert from 'assert'; -import {burrow, compile} from "../test"; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; - -describe('issue #21', function () { - let contract: any; +describe('memory bytes', function () { + let instance: any; before(async () => { const source = ` pragma solidity >=0.0.0; contract c { - function getBytes() public pure returns (byte[10] memory){ - byte[10] memory b; + function getBytes() public pure returns (bytes1[10] memory){ + bytes1[10] memory b; string memory s = "hello"; bytes memory sb = bytes(s); @@ -20,33 +20,27 @@ describe('issue #21', function () { return b; } - function deeper() public pure returns (byte[12][100] memory s, uint count) { + function deeper() public pure returns (bytes1[12][100] memory s, uint count) { count = 42; return (s, count); } } - ` + `; - const {abi, code} = compile(source, 'c') - return burrow.contracts.deploy(abi, code).then((c) => { - contract = c - }) - }) + const contract = compile(source, 'c'); + instance = await contract.deploy(burrow); + }); it('gets the static byte array decoded properly', async () => { - return contract.getBytes() - .then((bytes) => { - assert.deepStrictEqual( - bytes, - [['68', '65', '6C', '6C', '6F', '00', '00', '00', '00', 'FF']] - ) - }) - }) - - it('returns multiple values correctly from a function', function () { - return contract.deeper() - .then((values) => { - assert.strictEqual(Number(values[1]), 42) - }) - }) -}) + const [bytes] = await instance.getBytes(); + assert.deepStrictEqual( + bytes.map((b: Buffer) => b.toString('hex').toUpperCase()), + ['68', '65', '6C', '6C', '6F', '00', '00', '00', '00', 'FF'], + ); + }); + + it('returns multiple values correctly from a function', async () => { + const values = await instance.deeper(); + assert.strictEqual(values[1], 42); + }); +}); diff --git a/js/src/test/namereg.test.ts b/js/src/test/namereg.test.ts index 8f75d9a96..4b0cffc2c 100644 --- a/js/src/test/namereg.test.ts +++ b/js/src/test/namereg.test.ts @@ -1,13 +1,12 @@ import * as assert from 'assert'; -import {burrow} from "../test"; - +import { burrow } from './test'; describe('Namereg', function () { - this.timeout(10 * 1000) + this.timeout(10 * 1000); it('Sets and gets a name correctly', async () => { - await burrow.namereg.set('DOUG', 'ABCDEF0123456789', 5000, 100) - const entry = await burrow.namereg.get('DOUG') - assert.strictEqual(entry.getData(), 'ABCDEF0123456789') + await burrow.namereg.set('DOUG', 'ABCDEF0123456789', 5000, 100); + const entry = await burrow.namereg.get('DOUG'); + assert.strictEqual(entry.getData(), 'ABCDEF0123456789'); }); -}) +}); diff --git a/js/src/test/return-types.test.ts b/js/src/test/return-types.test.ts index 0fdc7c4d3..e6ac608c7 100644 --- a/js/src/test/return-types.test.ts +++ b/js/src/test/return-types.test.ts @@ -1,8 +1,11 @@ import * as assert from 'assert'; -import {burrow, compile} from "../test"; +import { compile } from '../contracts/compile'; +import { getAddress } from '../contracts/contract'; +import { withoutArrayElements } from '../convert'; +import { burrow } from './test'; describe('Multiple return types', function () { - it('#42', async () => { + it('can decode multiple returns', async () => { const source = ` pragma solidity >=0.0.0; contract Test { @@ -23,23 +26,31 @@ describe('Multiple return types', function () { } } - ` - const {abi, code} = compile(source, 'Test') - const contract: any = await burrow.contracts.deploy(abi, code, { - call: function (result) { - return {values: result.values, raw: result.raw} - } - }) + `; + const contract = compile(source, 'Test'); + const instance: any = await contract.deployWith(burrow, { + handler: function ({ result }) { + return { + values: withoutArrayElements(result), + raw: [...result], + }; + }, + }); const expected = { values: { _number: 100, - _address: contract.address, + _address: getAddress(instance), _saying: 'hello moto', - _randomBytes: '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE' + _randomBytes: '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', }, - raw: [100, contract.address, 'hello moto', '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE'] - } - const result = await contract.getCombination(); - assert.deepStrictEqual(result, expected) - }) -}) + raw: [ + 100, + getAddress(instance), + 'hello moto', + '000000000000000000000000000000000000000000000000DEADBEEFFEEDFACE', + ], + }; + const result = await instance.getCombination(); + assert.deepStrictEqual(result, expected); + }); +}); diff --git a/js/src/test/revert.test.ts b/js/src/test/revert.test.ts index c8a9e7412..70195a767 100644 --- a/js/src/test/revert.test.ts +++ b/js/src/test/revert.test.ts @@ -1,9 +1,10 @@ -import * as assert from 'assert'; -import {burrow, compile} from '../test'; import * as grpc from '@grpc/grpc-js'; +import * as assert from 'assert'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('REVERT constant', function () { - let contract: any; + let instance: any; before(async () => { const source = ` @@ -18,28 +19,26 @@ describe('REVERT constant', function () { } } } - ` - - const {abi, code} = compile(source, 'c') - contract = await burrow.contracts.deploy(abi, code) - }) + `; + instance = await compile(source, 'c').deploy(burrow); + }); it('gets the string when revert not called', async () => { - return contract.getString(42) - .then((str) => { - assert.deepStrictEqual(str, ['secret']) - }) - }) + return instance.getString(42).then((str: string) => { + assert.deepStrictEqual(str, ['secret']); + }); + }); - it('It catches a revert with the revert string', - async () => { - return contract.getString(1) - .then((str) => { - throw new Error('Did not catch revert error') - }).catch((err: grpc.ServiceError) => { - assert.strictEqual(err.code, grpc.status.ABORTED) - assert.strictEqual(err.message, '10 ABORTED: Did not pass correct key') - }) - }) -}) + it('It catches a revert with the revert string', async () => { + return instance + .getString(1) + .then((str: string) => { + throw new Error('Did not catch revert error'); + }) + .catch((err: grpc.ServiceError) => { + assert.strictEqual(err.code, grpc.status.ABORTED); + assert.strictEqual(err.message, '10 ABORTED: Did not pass correct key'); + }); + }); +}); diff --git a/js/src/test/revert2.test.ts b/js/src/test/revert2.test.ts index f5ba86a81..9f7558a8c 100644 --- a/js/src/test/revert2.test.ts +++ b/js/src/test/revert2.test.ts @@ -1,9 +1,10 @@ -import * as assert from 'assert'; -import {burrow, compile} from '../test'; import * as grpc from '@grpc/grpc-js'; +import * as assert from 'assert'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('REVERT non-constant', function () { - let contract: any; + let instance: any; before(async () => { const source = ` @@ -20,29 +21,26 @@ describe('REVERT non-constant', function () { } } } - ` + `; - const {abi, code} = compile(source, 'c') - return burrow.contracts.deploy(abi, code).then((c) => { - contract = c - }) - }) + instance = await compile(source, 'c').deploy(burrow); + }); it('gets the string when revert not called', async () => { - return contract.getString(42) - .then((str) => { - assert.deepStrictEqual(str, ['secret']) - }) - }) + return instance.getString(42).then((str: string) => { + assert.deepStrictEqual(str, ['secret']); + }); + }); - it('It catches a revert with the revert string', - async () => { - return contract.getString(1) - .then((str) => { - throw new Error('Did not catch revert error') - }).catch((err: grpc.ServiceError) => { - assert.strictEqual(err.code, grpc.status.ABORTED) - assert.strictEqual(err.message, '10 ABORTED: Did not pass correct key') - }) - }) -}) + it('It catches a revert with the revert string', async () => { + return instance + .getString(1) + .then((str: string) => { + throw new Error('Did not catch revert error'); + }) + .catch((err: grpc.ServiceError) => { + assert.strictEqual(err.code, grpc.status.ABORTED); + assert.strictEqual(err.message, '10 ABORTED: Did not pass correct key'); + }); + }); +}); diff --git a/js/src/test/revert3.test.ts b/js/src/test/revert3.test.ts index 1e5cc6752..66de75b8f 100644 --- a/js/src/test/revert3.test.ts +++ b/js/src/test/revert3.test.ts @@ -1,9 +1,10 @@ -import * as assert from 'assert'; -import {burrow, compile} from '../test'; import * as grpc from '@grpc/grpc-js'; +import * as assert from 'assert'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('REVERT non-constant', function () { - let contract + let instance: any; before(async () => { const source = ` @@ -20,21 +21,19 @@ describe('REVERT non-constant', function () { } } } - ` + `; - const {abi, code} = compile(source, 'c') - return burrow.contracts.deploy(abi, code).then((c) => { - contract = c - }) - }) + instance = await compile(source, 'c').deploy(burrow); + }); - it('It catches a revert with the revert string', - async () => { - return contract.getString(1) - .then((str) => { - throw new Error('Did not catch revert error') - }).catch((err: grpc.ServiceError) => { - assert.strictEqual(err.code, grpc.status.ABORTED) - }) - }) -}) + it('It catches a revert with the revert string', async () => { + return instance + .getString(1) + .then((str: any) => { + throw new Error('Did not catch revert error'); + }) + .catch((err: grpc.ServiceError) => { + assert.strictEqual(err.code, grpc.status.ABORTED); + }); + }); +}); diff --git a/js/src/test/simple-storage.test.ts b/js/src/test/simple-storage.test.ts index 4e9bc9705..aab4922bd 100644 --- a/js/src/test/simple-storage.test.ts +++ b/js/src/test/simple-storage.test.ts @@ -1,5 +1,6 @@ import * as assert from 'assert'; -import {burrow, compile} from '../test'; +import { compile } from '../contracts/compile'; +import { burrow } from './test'; describe('Simple storage', function () { it('sets and gets a value from a contract', async () => { @@ -16,13 +17,13 @@ describe('Simple storage', function () { return storedData; } } - ` - const {abi, code} = compile(source, 'SimpleStorage') - return burrow.contracts.deploy(abi, code) - .then((contract: any) => contract.set(42) - .then(() => contract.get()) - ).then((value) => { - assert.deepStrictEqual(value, [42]) - }) - }) -}) + `; + const contract = compile(source, 'SimpleStorage'); + return contract + .deploy(burrow) + .then((instance: any) => instance.set(42).then(() => instance.get())) + .then((value) => { + assert.deepStrictEqual([...value], [42]); + }); + }); +}); diff --git a/js/src/test/test.ts b/js/src/test/test.ts new file mode 100644 index 000000000..6f7222a8c --- /dev/null +++ b/js/src/test/test.ts @@ -0,0 +1,5 @@ +import { Burrow } from '../index'; + +const url = process.env.BURROW_URL || 'localhost:20123'; +const addr = process.env.SIGNING_ADDRESS || 'C9F239591C593CB8EE192B0009C6A0F2C9F8D768'; +export const burrow = new Burrow(url, addr); diff --git a/js/tsconfig.json b/js/tsconfig.json index a62723570..2a60e64ed 100644 --- a/js/tsconfig.json +++ b/js/tsconfig.json @@ -4,14 +4,22 @@ "outDir": "dist", "preserveSymlinks": true, "esModuleInterop": true, + "alwaysStrict": true, "sourceMap": true, "declaration": true, + "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "strictBindCallApply": true, + "strictPropertyInitialization": true, + "lib": ["ES2020", "DOM"], "typeRoots": [ "./types", "./node_modules/@types"] }, "exclude": [ "node_modules", "dist", "types", - "src/test/" + "test/" ] } diff --git a/js/types/solc/index.d.ts b/js/types/solc/index.d.ts index 516d05c37..5f82f2c5f 100644 --- a/js/types/solc/index.d.ts +++ b/js/types/solc/index.d.ts @@ -1,84 +1,84 @@ declare module 'solc' { - export type Function = { - type: 'function' | 'constructor' | 'fallback' - name: string - inputs: Array - outputs?: Array - stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable' - payable?: boolean - constant?: boolean - }; + export type SolidityFunction = { + type: 'function' | 'constructor' | 'fallback'; + name: string; + inputs: Array; + outputs?: Array; + stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable'; + payable?: boolean; + constant?: boolean; + }; - export type Event = { - type: 'event' - name: string - inputs: Array - anonymous: boolean - }; + export type Event = { + type: 'event'; + name: string; + inputs: Array; + anonymous: boolean; + }; - export type FunctionInput = { - name: string - type: string - components?: FunctionInput[] - internalType?: string - }; + export type FunctionInput = { + name: string; + type: string; + components?: FunctionInput[]; + internalType?: string; + }; - export type FunctionOutput = FunctionInput; - export type EventInput = FunctionInput & {indexed?: boolean}; + export type FunctionOutput = FunctionInput; + export type EventInput = FunctionInput & { indexed?: boolean }; - type Bytecode = { - linkReferences: any - object: string - opcodes: string - sourceMap: string - } + type Bytecode = { + linkReferences: any; + object: string; + opcodes: string; + sourceMap: string; + }; - type Contract = { - assembly: any - evm: { - bytecode: Bytecode - deployedBytecode: Bytecode - } - functionHashes: any - gasEstimates: any - abi: (Function | Event)[] - opcodes: string - runtimeBytecode: string - srcmap: string - srcmapRuntime: string - } + type Contract = { + assembly: any; + evm: { + bytecode: Bytecode; + deployedBytecode: Bytecode; + }; + functionHashes: any; + gasEstimates: any; + abi: (SolidityFunction | Event)[]; + opcodes: string; + runtimeBytecode: string; + srcmap: string; + srcmapRuntime: string; + }; - type Source = { - AST: any - } + type Source = { + AST: any; + }; - export type InputDescription = { - language: string - sources?: Record - settings?: { - outputSelection: Record>> - } - } + export type InputDescription = { + language: string; + sources?: Record; + settings?: { + outputSelection: Record>>; + }; + }; - type Error = { - sourceLocation?: { - file: string, - start: number, - end: number - } - type: string - component: string, - severity: "error" | "warning" - message: string - formattedMessage?: string - } + type Error = { + sourceLocation?: { + file: string; + start: number; + end: number; + }; + type: string; + component: string; + severity: 'error' | 'warning'; + message: string; + formattedMessage?: string; + }; - export type OutputDescription = { - contracts: Record> - errors: Array - sourceList: Array - sources: Record - } + export type OutputDescription = { + contracts: Record>; + errors: Array; + sourceList: Array; + sources: Record; + }; - export function compile(input: string): string; + export function compile(input: string): string; } diff --git a/js/test.sh b/js/with-burrow.sh similarity index 85% rename from js/test.sh rename to js/with-burrow.sh index 4392a0c2b..99b6f6ff9 100755 --- a/js/test.sh +++ b/js/with-burrow.sh @@ -10,5 +10,6 @@ cd $this export SIGNING_ADDRESS="$key1_addr" export BURROW_URL="$BURROW_HOST:$BURROW_GRPC_PORT" -mocha --bail --exit -r ts-node/register "$1" +"$@" + test_exit=$? diff --git a/js/yarn.lock b/js/yarn.lock index 1f11e5fa9..ac4497bed 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -2,253 +2,548 @@ # yarn lockfile v1 -"@grpc/grpc-js@^1.2.10": - version "1.2.10" - resolved "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.2.10.tgz#f316d29a45fcc324e923d593cb849d292b1ed598" - integrity sha512-wj6GkNiorWYaPiIZ767xImmw7avMMVUweTvPFg4mJWOxz2180DKwfuxhJJZ7rpc1+7D3mX/v8vJdxTuIo71Ieg== +"@babel/code-frame@7.12.11": + version "7.12.11" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" + integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== dependencies: - "@types/node" ">=12.12.47" - google-auth-library "^6.1.1" - semver "^6.2.0" + "@babel/highlight" "^7.10.4" + +"@babel/helper-validator-identifier@^7.14.0": + version "7.14.0" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz#d26cad8a47c65286b15df1547319a5d0bcf27288" + integrity sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A== -"@types/bn.js@^4.11.3": - version "4.11.6" - resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" - integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg== +"@babel/highlight@^7.10.4": + version "7.14.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.0.tgz#3197e375711ef6bf834e67d0daec88e4f46113cf" + integrity sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg== dependencies: - "@types/node" "*" + "@babel/helper-validator-identifier" "^7.14.0" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@eslint/eslintrc@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.0.tgz#99cc0a0584d72f1df38b900fb062ba995f395547" + integrity sha512-2ZPCc+uNbjV5ERJr+aKSPRwZgKd2z11x0EgLvb1PURmUrn9QNRXFqje0Ldq454PfAVyaJYyrDvvIKSFP4NnBog== + dependencies: + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" -"@types/ethereumjs-abi@^0.6.3": - version "0.6.3" - resolved "https://registry.yarnpkg.com/@types/ethereumjs-abi/-/ethereumjs-abi-0.6.3.tgz#eb5ed09fd86b9e2b1c0eb75d1e9bc29c50715c86" - integrity sha512-DnHvqPkrJS5w4yZexTa5bdPNb8IyKPYciou0+zZCIg5fpzvGtyptTvshy0uZKzti2/k/markwjlxWRBWt7Mjuw== +"@ethersproject/abi@5.1.2", "@ethersproject/abi@^5.1.0": + version "5.1.2" + resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.1.2.tgz#a8e75cd0455e6dc9e4861c3d1c22bbe436c1d775" + integrity sha512-uMhoQVPX0UtfzTpekYQSEUcJGDgsJ25ifz+SV6PDETWaUFhcR8RNgb1QPTASP13inW8r6iy0/Xdq9D5hK2pNvA== + dependencies: + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + +"@ethersproject/abstract-provider@5.1.0", "@ethersproject/abstract-provider@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.1.0.tgz#1f24c56cda5524ef4ed3cfc562a01d6b6f8eeb0b" + integrity sha512-8dJUnT8VNvPwWhYIau4dwp7qe1g+KgdRm4XTWvjkI9gAT2zZa90WF5ApdZ3vl1r6NDmnn6vUVvyphClRZRteTQ== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/networks" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/web" "^5.1.0" + +"@ethersproject/abstract-signer@5.1.0", "@ethersproject/abstract-signer@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.1.0.tgz#744c7a2d0ebe3cc0bc38294d0f53d5ca3f4e49e3" + integrity sha512-qQDMkjGZSSJSKl6AnfTgmz9FSnzq3iEoEbHTYwjDlEAv+LNP7zd4ixCcVWlWyk+2siud856M5CRhAmPdupeN9w== dependencies: - "@types/node" "*" + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" -"@types/mocha@^8.2.0": - version "8.2.0" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-8.2.0.tgz#3eb56d13a1de1d347ecb1957c6860c911704bc44" - integrity sha512-/Sge3BymXo4lKc31C8OINJgXLaw+7vL1/L1pGiBNpGrBiT8FQiaFpSYV0uhTaG4y78vcMBTMFsWaHDvuD+xGzQ== +"@ethersproject/address@5.1.0", "@ethersproject/address@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.1.0.tgz#3854fd7ebcb6af7597de66f847c3345dae735b58" + integrity sha512-rfWQR12eHn2cpstCFS4RF7oGjfbkZb0oqep+BfrT+gWEGWG2IowJvIsacPOvzyS1jhNF4MQ4BS59B04Mbovteg== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/rlp" "^5.1.0" -"@types/node@*": - version "13.13.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.2.tgz#160d82623610db590a64e8ca81784e11117e5a54" - integrity sha512-LB2R1Oyhpg8gu4SON/mfforE525+Hi/M1ineICEDftqNVTyFg1aRIeGuTvXAoWHc4nbrFncWtJgMmoyRvuGh7A== +"@ethersproject/base64@5.1.0", "@ethersproject/base64@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.1.0.tgz#27240c174d0a4e13f6eae87416fd876caf7f42b6" + integrity sha512-npD1bLvK4Bcxz+m4EMkx+F8Rd7CnqS9DYnhNu0/GlQBXhWjvfoAZzk5HJ0f1qeyp8d+A86PTuzLOGOXf4/CN8g== + dependencies: + "@ethersproject/bytes" "^5.1.0" -"@types/node@>=12.12.47": - version "14.14.33" - resolved "https://registry.npmjs.org/@types/node/-/node-14.14.33.tgz#9e4f8c64345522e4e8ce77b334a8aaa64e2b6c78" - integrity sha512-oJqcTrgPUF29oUP8AsUqbXGJNuPutsetaa9kTQAQce5Lx5dTYWV02ScBiT/k1BX/Z7pKeqedmvp39Wu4zR7N7g== +"@ethersproject/basex@5.1.0", "@ethersproject/basex@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.1.0.tgz#80da2e86f9da0cb5ccd446b337364d791f6a131c" + integrity sha512-vBKr39bum7DDbOvkr1Sj19bRMEPA4FnST6Utt6xhDzI7o7L6QNkDn2yrCfP+hnvJGhZFKtLygWwqlTBZoBXYLg== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/properties" "^5.1.0" -"@ungap/promise-all-settled@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" - integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== +"@ethersproject/bignumber@5.1.1", "@ethersproject/bignumber@^5.1.0": + version "5.1.1" + resolved "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.1.1.tgz#84812695253ccbc639117f7ac49ee1529b68e637" + integrity sha512-AVz5iqz7+70RIqoQTznsdJ6DOVBYciNlvO+AlQmPTB6ofCvoihI9bQdr6wljsX+d5W7Yc4nyvQvP4JMzg0Agig== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + bn.js "^4.4.0" -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== +"@ethersproject/bytes@5.1.0", "@ethersproject/bytes@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.1.0.tgz#55dfa9c4c21df1b1b538be3accb50fb76d5facfd" + integrity sha512-sGTxb+LVjFxJcJeUswAIK6ncgOrh3D8c192iEJd7mLr95V6du119rRfYT/b87WPkZ5I3gRBUYIYXtdgCWACe8g== + dependencies: + "@ethersproject/logger" "^5.1.0" -abort-controller@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" - integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== +"@ethersproject/constants@5.1.0", "@ethersproject/constants@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.1.0.tgz#4e7da6367ea0e9be87585d8b09f3fccf384b1452" + integrity sha512-0/SuHrxc8R8k+JiLmJymxHJbojUDWBQqO+b+XFdwaP0jGzqC09YDy/CAlSZB6qHsBifY8X3I89HcK/oMqxRdBw== dependencies: - event-target-shim "^5.0.0" + "@ethersproject/bignumber" "^5.1.0" -agent-base@6: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== +"@ethersproject/contracts@5.1.1": + version "5.1.1" + resolved "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.1.1.tgz#c66cb6d618fcbd73e20a6b808e8f768b2b781d0b" + integrity sha512-6WwktLJ0DFWU8pDkgH4IGttQHhQN4SnwKFu9h+QYVe48VGWtbDu4W8/q/7QA1u/HWlWMrKxqawPiZUJj0UMvOw== + dependencies: + "@ethersproject/abi" "^5.1.0" + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + +"@ethersproject/hash@5.1.0", "@ethersproject/hash@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.1.0.tgz#40961d64837d57f580b7b055e0d74174876d891e" + integrity sha512-fNwry20yLLPpnRRwm3fBL+2ksgO+KMadxM44WJmRIoTKzy4269+rbq9KFoe2LTqq2CXJM2CE70beGaNrpuqflQ== + dependencies: + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + +"@ethersproject/hdnode@5.1.0", "@ethersproject/hdnode@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.1.0.tgz#2bf5c4048935136ce83e9242e1bd570afcc0bc83" + integrity sha512-obIWdlujloExPHWJGmhJO/sETOOo7SEb6qemV4f8kyFoXg+cJK+Ta9SvBrj7hsUK85n3LZeZJZRjjM7oez3Clg== + dependencies: + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/basex" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/pbkdf2" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/signing-key" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/wordlists" "^5.1.0" + +"@ethersproject/json-wallets@5.1.0", "@ethersproject/json-wallets@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.1.0.tgz#bba7af2e520e8aea4d3829d80520db5d2e4fb8d2" + integrity sha512-00n2iBy27w8zrGZSiU762UOVuzCQZxUZxopsZC47++js6xUFuI74DHcJ5K/2pddlF1YBskvmMuboEu1geK8mnA== + dependencies: + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/hdnode" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/pbkdf2" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/random" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + aes-js "3.0.0" + scrypt-js "3.0.1" + +"@ethersproject/keccak256@5.1.0", "@ethersproject/keccak256@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.1.0.tgz#fdcd88fb13bfef4271b225cdd8dec4d315c8e60e" + integrity sha512-vrTB1W6AEYoadww5c9UyVJ2YcSiyIUTNDRccZIgwTmFFoSHwBtcvG1hqy9RzJ1T0bMdATbM9Hfx2mJ6H0i7Hig== dependencies: - debug "4" + "@ethersproject/bytes" "^5.1.0" + js-sha3 "0.5.7" -ansi-bgblack@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgblack/-/ansi-bgblack-0.1.1.tgz#a68ba5007887701b6aafbe3fa0dadfdfa8ee3ca2" - integrity sha1-poulAHiHcBtqr74/oNrf36juPKI= +"@ethersproject/logger@5.1.0", "@ethersproject/logger@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.1.0.tgz#4cdeeefac029373349d5818f39c31b82cc6d9bbf" + integrity sha512-wtUaD1lBX10HBXjjKV9VHCBnTdUaKQnQ2XSET1ezglqLdPdllNOIlLfhyCRqXm5xwcjExVI5ETokOYfjPtaAlw== + +"@ethersproject/networks@5.1.0", "@ethersproject/networks@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.1.0.tgz#f537290cb05aa6dc5e81e910926c04cfd5814bca" + integrity sha512-A/NIrIED/G/IgU1XUukOA3WcFRxn2I4O5GxsYGA5nFlIi+UZWdGojs85I1VXkR1gX9eFnDXzjE6OtbgZHjFhIA== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/logger" "^5.1.0" -ansi-bgblue@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgblue/-/ansi-bgblue-0.1.1.tgz#67bdc04edc9b9b5278969da196dea3d75c8c3613" - integrity sha1-Z73ATtybm1J4lp2hlt6j11yMNhM= +"@ethersproject/pbkdf2@5.1.0", "@ethersproject/pbkdf2@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.1.0.tgz#6b740a85dc780e879338af74856ca2c0d3b24d19" + integrity sha512-B8cUbHHTgs8OtgJIafrRcz/YPDobVd5Ru8gTnShOiM9EBuFpYHQpq3+8iQJ6pyczDu6HP/oc/njAsIBhwFZYew== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" -ansi-bgcyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgcyan/-/ansi-bgcyan-0.1.1.tgz#58489425600bde9f5507068dd969ebfdb50fe768" - integrity sha1-WEiUJWAL3p9VBwaN2Wnr/bUP52g= +"@ethersproject/properties@5.1.0", "@ethersproject/properties@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.1.0.tgz#9484bd6def16595fc6e4bdc26f29dff4d3f6ac42" + integrity sha512-519KKTwgmH42AQL3+GFV3SX6khYEfHsvI6v8HYejlkigSDuqttdgVygFTDsGlofNFchhDwuclrxQnD5B0YLNMg== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/logger" "^5.1.0" -ansi-bggreen@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bggreen/-/ansi-bggreen-0.1.1.tgz#4e3191248529943f4321e96bf131d1c13816af49" - integrity sha1-TjGRJIUplD9DIelr8THRwTgWr0k= +"@ethersproject/providers@5.1.2": + version "5.1.2" + resolved "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.1.2.tgz#4e4459698903f911402fe91aa7544eb07f3921ed" + integrity sha512-GqsS8rd+eyd4eNkcNgzZ4l9IRULBPUZa7JPnv22k4MHflMobUseyhfbVnmoN5bVNNkOxjV1IPTw9i0sV1hwdpg== + dependencies: + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/basex" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/networks" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/random" "^5.1.0" + "@ethersproject/rlp" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/web" "^5.1.0" + bech32 "1.1.4" + ws "7.2.3" + +"@ethersproject/random@5.1.0", "@ethersproject/random@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/random/-/random-5.1.0.tgz#0bdff2554df03ebc5f75689614f2d58ea0d9a71f" + integrity sha512-+uuczLQZ4+no9cP6TCoCktXx0u2YbNaRT7lRkSt12d8263e702f0u+4JnnRO8Qmv5nylWJebnqCHzyxP+6mLqw== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" -ansi-bgmagenta@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgmagenta/-/ansi-bgmagenta-0.1.1.tgz#9b28432c076eaa999418672a3efbe19391c2c7a1" - integrity sha1-myhDLAduqpmUGGcqPvvhk5HCx6E= +"@ethersproject/rlp@5.1.0", "@ethersproject/rlp@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.1.0.tgz#700f4f071c27fa298d3c1d637485fefe919dd084" + integrity sha512-vDTyHIwNPrecy55gKGZ47eJZhBm8LLBxihzi5ou+zrSvYTpkSTWRcKUlXFDFQVwfWB+P5PGyERAdiDEI76clxw== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" -ansi-bgred@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgred/-/ansi-bgred-0.1.1.tgz#a76f92838382ba43290a6c1778424f984d6f1041" - integrity sha1-p2+Sg4OCukMpCmwXeEJPmE1vEEE= +"@ethersproject/sha2@5.1.0", "@ethersproject/sha2@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.1.0.tgz#6ca42d1a26884b3e32ffa943fe6494af7211506c" + integrity sha512-+fNSeZRstOpdRJpdGUkRONFCaiAqWkc91zXgg76Nlp5ndBQE25Kk5yK8gCPG1aGnCrbariiPr5j9DmrYH78JCA== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + hash.js "1.1.3" + +"@ethersproject/signing-key@5.1.0", "@ethersproject/signing-key@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.1.0.tgz#6eddfbddb6826b597b9650e01acf817bf8991b9c" + integrity sha512-tE5LFlbmdObG8bY04NpuwPWSRPgEswfxweAI1sH7TbP0ml1elNfqcq7ii/3AvIN05i5U0Pkm3Tf8bramt8MmLw== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + bn.js "^4.4.0" + elliptic "6.5.4" + +"@ethersproject/solidity@5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.1.0.tgz#095a9c75244edccb26c452c155736d363399b954" + integrity sha512-kPodsGyo9zg1g9XSXp1lGhFaezBAUUsAUB1Vf6OkppE5Wksg4Et+x3kG4m7J/uShDMP2upkJtHNsIBK2XkVpKQ== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/strings" "^5.1.0" -ansi-bgwhite@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgwhite/-/ansi-bgwhite-0.1.1.tgz#6504651377a58a6ececd0331994e480258e11ba8" - integrity sha1-ZQRlE3elim7OzQMxmU5IAljhG6g= +"@ethersproject/strings@5.1.0", "@ethersproject/strings@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.1.0.tgz#0f95a56c3c8c9d5510a06c241d818779750e2da5" + integrity sha512-perBZy0RrmmL0ejiFGUOlBVjMsUceqLut3OBP3zP96LhiJWWbS8u1NqQVgN4/Gyrbziuda66DxiQocXhsvx+Sw== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/logger" "^5.1.0" -ansi-bgyellow@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgyellow/-/ansi-bgyellow-0.1.1.tgz#c3fe2eb08cd476648029e6874d15a0b38f61d44f" - integrity sha1-w/4usIzUdmSAKeaHTRWgs49h1E8= +"@ethersproject/transactions@5.1.1", "@ethersproject/transactions@^5.1.0": + version "5.1.1" + resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.1.1.tgz#5a6bbb25fb062c3cc75eb0db12faefcdd3870813" + integrity sha512-Nwgbp09ttIVN0OoUBatCXaHxR7grWPHbozJN8v7AXDLrl6nnOIBEMDh+yJTnosSQlFhcyjfTGGN+Mx6R8HdvMw== + dependencies: + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/rlp" "^5.1.0" + "@ethersproject/signing-key" "^5.1.0" + +"@ethersproject/units@5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/units/-/units-5.1.0.tgz#b6ab3430ebc22adc3cb4839516496f167bee3ad5" + integrity sha512-isvJrx6qG0nKWfxsGORNjmOq/nh175fStfvRTA2xEKrGqx8JNJY83fswu4GkILowfriEM/eYpretfJnfzi7YhA== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/logger" "^5.1.0" -ansi-black@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-black/-/ansi-black-0.1.1.tgz#f6185e889360b2545a1ec50c0bf063fc43032453" - integrity sha1-9hheiJNgslRaHsUMC/Bj/EMDJFM= +"@ethersproject/wallet@5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.1.0.tgz#134c5816eaeaa586beae9f9ff67891104a2c9a15" + integrity sha512-ULmUtiYQLTUS+y3DgkLzRhFEK10zMwmjOthnjiZxee3Q/MVwr3rnmuAnXIUZrPjna6hvUPnyRIdW5XuF0Ld0YQ== + dependencies: + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/hdnode" "^5.1.0" + "@ethersproject/json-wallets" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/random" "^5.1.0" + "@ethersproject/signing-key" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/wordlists" "^5.1.0" + +"@ethersproject/web@5.1.0", "@ethersproject/web@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.1.0.tgz#ed56bbe4e3d9a8ffe3b2ed882da5c62d3551381b" + integrity sha512-LTeluWgTq04+RNqAkVhpydPcRZK/kKxD2Vy7PYGrAD27ABO9kTqTBKwiOuzTyAHKUQHfnvZbXmxBXJAGViSDcA== dependencies: - ansi-wrap "0.1.0" + "@ethersproject/base64" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + +"@ethersproject/wordlists@5.1.0", "@ethersproject/wordlists@^5.1.0": + version "5.1.0" + resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.1.0.tgz#54eb9ef3a00babbff90ffe124e19c89e07e6aace" + integrity sha512-NsUCi/TpBb+oTFvMSccUkJGtp5o/84eOyqp5q5aBeiNBSLkYyw21znRn9mAmxZgySpxgruVgKbaapnYPgvctPQ== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + +"@grpc/grpc-js@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.3.0.tgz#c6febaaf00ce7f53b5ec52c7cf3e2a4725b82bcb" + integrity sha512-fiL7ZaGg2HBiFtmv6m34d5jEgEtNXfctjzB3f7b3iuT7olBX4mHLMOqOBmGTTSOTfNRQJH5+vsyk6mEz3I0Q7Q== + dependencies: + "@types/node" ">=12.12.47" + +"@nodelib/fs.scandir@2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" + integrity sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA== + dependencies: + "@nodelib/fs.stat" "2.0.4" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.4", "@nodelib/fs.stat@^2.0.2": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz#a3f2dd61bab43b8db8fa108a121cfffe4c676655" + integrity sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz#cce9396b30aa5afe9e3756608f5831adcb53d063" + integrity sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow== + dependencies: + "@nodelib/fs.scandir" "2.1.4" + fastq "^1.6.0" + +"@types/google-protobuf@^3.15.2": + version "3.15.2" + resolved "https://registry.yarnpkg.com/@types/google-protobuf/-/google-protobuf-3.15.2.tgz#70753e948cabeb416d71299dc35c3f562a10fb0f" + integrity sha512-ubeqvw7sl6CdgeiIilsXB2jIFoD/D0F+/LIEp7xEBEXRNtDJcf05FRINybsJtL7GlkWOUVn6gJs2W9OF+xI6lg== + +"@types/json-schema@^7.0.3": + version "7.0.7" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" + integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== + +"@types/mocha@^8.2.2": + version "8.2.2" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-8.2.2.tgz#91daa226eb8c2ff261e6a8cbf8c7304641e095e0" + integrity sha512-Lwh0lzzqT5Pqh6z61P3c3P5nm6fzQK/MMHl9UKeneAeInVflBSz1O2EkX6gM6xfJd7FBXBY5purtLx7fUiZ7Hw== + +"@types/node@>=12.12.47": + version "14.14.33" + resolved "https://registry.npmjs.org/@types/node/-/node-14.14.33.tgz#9e4f8c64345522e4e8ce77b334a8aaa64e2b6c78" + integrity sha512-oJqcTrgPUF29oUP8AsUqbXGJNuPutsetaa9kTQAQce5Lx5dTYWV02ScBiT/k1BX/Z7pKeqedmvp39Wu4zR7N7g== + +"@typescript-eslint/eslint-plugin@^4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.22.0.tgz#3d5f29bb59e61a9dba1513d491b059e536e16dbc" + integrity sha512-U8SP9VOs275iDXaL08Ln1Fa/wLXfj5aTr/1c0t0j6CdbOnxh+TruXu1p4I0NAvdPBQgoPjHsgKn28mOi0FzfoA== + dependencies: + "@typescript-eslint/experimental-utils" "4.22.0" + "@typescript-eslint/scope-manager" "4.22.0" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + lodash "^4.17.15" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/experimental-utils@4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.22.0.tgz#68765167cca531178e7b650a53456e6e0bef3b1f" + integrity sha512-xJXHHl6TuAxB5AWiVrGhvbGL8/hbiCQ8FiWwObO3r0fnvBdrbWEDy1hlvGQOAWc6qsCWuWMKdVWlLAEMpxnddg== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/scope-manager" "4.22.0" + "@typescript-eslint/types" "4.22.0" + "@typescript-eslint/typescript-estree" "4.22.0" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + +"@typescript-eslint/parser@^4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.22.0.tgz#e1637327fcf796c641fe55f73530e90b16ac8fe8" + integrity sha512-z/bGdBJJZJN76nvAY9DkJANYgK3nlRstRRi74WHm3jjgf2I8AglrSY+6l7ogxOmn55YJ6oKZCLLy+6PW70z15Q== + dependencies: + "@typescript-eslint/scope-manager" "4.22.0" + "@typescript-eslint/types" "4.22.0" + "@typescript-eslint/typescript-estree" "4.22.0" + debug "^4.1.1" + +"@typescript-eslint/scope-manager@4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.22.0.tgz#ed411545e61161a8d702e703a4b7d96ec065b09a" + integrity sha512-OcCO7LTdk6ukawUM40wo61WdeoA7NM/zaoq1/2cs13M7GyiF+T4rxuA4xM+6LeHWjWbss7hkGXjFDRcKD4O04Q== + dependencies: + "@typescript-eslint/types" "4.22.0" + "@typescript-eslint/visitor-keys" "4.22.0" + +"@typescript-eslint/types@4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.22.0.tgz#0ca6fde5b68daf6dba133f30959cc0688c8dd0b6" + integrity sha512-sW/BiXmmyMqDPO2kpOhSy2Py5w6KvRRsKZnV0c4+0nr4GIcedJwXAq+RHNK4lLVEZAJYFltnnk1tJSlbeS9lYA== + +"@typescript-eslint/typescript-estree@4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.22.0.tgz#b5d95d6d366ff3b72f5168c75775a3e46250d05c" + integrity sha512-TkIFeu5JEeSs5ze/4NID+PIcVjgoU3cUQUIZnH3Sb1cEn1lBo7StSV5bwPuJQuoxKXlzAObjYTilOEKRuhR5yg== + dependencies: + "@typescript-eslint/types" "4.22.0" + "@typescript-eslint/visitor-keys" "4.22.0" + debug "^4.1.1" + globby "^11.0.1" + is-glob "^4.0.1" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/visitor-keys@4.22.0": + version "4.22.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.22.0.tgz#169dae26d3c122935da7528c839f42a8a42f6e47" + integrity sha512-nnMu4F+s4o0sll6cBSsTeVsT4cwxB7zECK3dFxzEjPBii9xLpq4yqqsy/FU5zMfan6G60DKZSCXAa3sHJZrcYw== + dependencies: + "@typescript-eslint/types" "4.22.0" + eslint-visitor-keys "^2.0.0" + +"@ungap/promise-all-settled@1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" + integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +acorn-jsx@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b" + integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng== + +acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -ansi-blue@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-blue/-/ansi-blue-0.1.1.tgz#15b804990e92fc9ca8c5476ce8f699777c21edbf" - integrity sha1-FbgEmQ6S/JyoxUds6PaZd3wh7b8= +aes-js@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d" + integrity sha1-4h3xCtbCBTKVvLuNq0Cwnb6ofk0= + +ajv@^6.10.0, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== dependencies: - ansi-wrap "0.1.0" + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" -ansi-bold@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bold/-/ansi-bold-0.1.1.tgz#3e63950af5acc2ae2e670e6f67deb115d1a5f505" - integrity sha1-PmOVCvWswq4uZw5vZ96xFdGl9QU= +ajv@^8.0.1: + version "8.2.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.2.0.tgz#c89d3380a784ce81b2085f48811c4c101df4c602" + integrity sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA== dependencies: - ansi-wrap "0.1.0" + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" -ansi-colors@4.1.1: +ansi-colors@4.1.1, ansi-colors@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== -ansi-colors@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-0.2.0.tgz#72c31de2a0d9a2ccd0cac30cc9823eeb2f6434b5" - integrity sha1-csMd4qDZoszQysMMyYI+6y9kNLU= - dependencies: - ansi-bgblack "^0.1.1" - ansi-bgblue "^0.1.1" - ansi-bgcyan "^0.1.1" - ansi-bggreen "^0.1.1" - ansi-bgmagenta "^0.1.1" - ansi-bgred "^0.1.1" - ansi-bgwhite "^0.1.1" - ansi-bgyellow "^0.1.1" - ansi-black "^0.1.1" - ansi-blue "^0.1.1" - ansi-bold "^0.1.1" - ansi-cyan "^0.1.1" - ansi-dim "^0.1.1" - ansi-gray "^0.1.1" - ansi-green "^0.1.1" - ansi-grey "^0.1.1" - ansi-hidden "^0.1.1" - ansi-inverse "^0.1.1" - ansi-italic "^0.1.1" - ansi-magenta "^0.1.1" - ansi-red "^0.1.1" - ansi-reset "^0.1.1" - ansi-strikethrough "^0.1.1" - ansi-underline "^0.1.1" - ansi-white "^0.1.1" - ansi-yellow "^0.1.1" - lazy-cache "^2.0.1" - -ansi-cyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" - integrity sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM= - dependencies: - ansi-wrap "0.1.0" - -ansi-dim@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-dim/-/ansi-dim-0.1.1.tgz#40de4c603aa8086d8e7a86b8ff998d5c36eefd6c" - integrity sha1-QN5MYDqoCG2Oeoa4/5mNXDbu/Ww= - dependencies: - ansi-wrap "0.1.0" - -ansi-gray@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251" - integrity sha1-KWLPVOyXksSFEKPetSRDaGHvclE= - dependencies: - ansi-wrap "0.1.0" - -ansi-green@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-green/-/ansi-green-0.1.1.tgz#8a5d9a979e458d57c40e33580b37390b8e10d0f7" - integrity sha1-il2al55FjVfEDjNYCzc5C44Q0Pc= - dependencies: - ansi-wrap "0.1.0" - -ansi-grey@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-grey/-/ansi-grey-0.1.1.tgz#59d98b6ac2ba19f8a51798e9853fba78339a33c1" - integrity sha1-WdmLasK6GfilF5jphT+6eDOaM8E= - dependencies: - ansi-wrap "0.1.0" - -ansi-hidden@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-hidden/-/ansi-hidden-0.1.1.tgz#ed6a4c498d2bb7cbb289dbf2a8d1dcc8567fae0f" - integrity sha1-7WpMSY0rt8uyidvyqNHcyFZ/rg8= - dependencies: - ansi-wrap "0.1.0" - -ansi-inverse@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-inverse/-/ansi-inverse-0.1.1.tgz#b6af45826fe826bfb528a6c79885794355ccd269" - integrity sha1-tq9Fgm/oJr+1KKbHmIV5Q1XM0mk= - dependencies: - ansi-wrap "0.1.0" - -ansi-italic@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-italic/-/ansi-italic-0.1.1.tgz#104743463f625c142a036739cf85eda688986f23" - integrity sha1-EEdDRj9iXBQqA2c5z4XtpoiYbyM= - dependencies: - ansi-wrap "0.1.0" - -ansi-magenta@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-magenta/-/ansi-magenta-0.1.1.tgz#063b5ba16fb3f23e1cfda2b07c0a89de11e430ae" - integrity sha1-BjtboW+z8j4c/aKwfAqJ3hHkMK4= - dependencies: - ansi-wrap "0.1.0" - -ansi-red@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" - integrity sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw= - dependencies: - ansi-wrap "0.1.0" - ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -259,65 +554,25 @@ ansi-regex@^3.0.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= -ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== - -ansi-reset@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-reset/-/ansi-reset-0.1.1.tgz#e7e71292c3c7ddcd4d62ef4a6c7c05980911c3b7" - integrity sha1-5+cSksPH3c1NYu9KbHwFmAkRw7c= - dependencies: - ansi-wrap "0.1.0" - -ansi-strikethrough@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-strikethrough/-/ansi-strikethrough-0.1.1.tgz#d84877140b2cff07d1c93ebce69904f68885e568" - integrity sha1-2Eh3FAss/wfRyT685pkE9oiF5Wg= - dependencies: - ansi-wrap "0.1.0" +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== -ansi-styles@^3.2.0: +ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: color-convert "^1.9.0" -ansi-styles@^4.1.0: +ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== dependencies: color-convert "^2.0.1" -ansi-underline@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-underline/-/ansi-underline-0.1.1.tgz#dfc920f4c97b5977ea162df8ffb988308aaa71a4" - integrity sha1-38kg9Ml7WXfqFi34/7mIMIqqcaQ= - dependencies: - ansi-wrap "0.1.0" - -ansi-white@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-white/-/ansi-white-0.1.1.tgz#9c77b7c193c5ee992e6011d36ec4c921b4578944" - integrity sha1-nHe3wZPF7pkuYBHTbsTJIbRXiUQ= - dependencies: - ansi-wrap "0.1.0" - -ansi-wrap@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" - integrity sha1-qCJQ3bABXponyoLoLqYDu/pF768= - -ansi-yellow@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-yellow/-/ansi-yellow-0.1.1.tgz#cb9356f2f46c732f0e3199e6102955a77da83c1d" - integrity sha1-y5NW8vRscy8OMZnmEClVp32oPB0= - dependencies: - ansi-wrap "0.1.0" - anymatch@~3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" @@ -344,126 +599,53 @@ arg@^4.1.0: resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== -argparse@^1.0.10, argparse@^1.0.7: +argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== dependencies: sprintf-js "~1.0.2" -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= - -array-sort@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/array-sort/-/array-sort-0.1.4.tgz#662855eaeb671b4188df4451b2f24a0753992b23" - integrity sha512-BNcM+RXxndPxiZ2rd76k6nyQLRZr2/B/sdi8pQ+Joafr5AH279L40dfokSUTp8O+AaqYjXWhblBWa2st2nc4fQ== - dependencies: - default-compare "^1.0.0" - get-value "^2.0.6" - kind-of "^5.0.2" - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= - -arrify@^2.0.0: +argparse@^2.0.1: version "2.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" - integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -autolinker@~0.28.0: - version "0.28.1" - resolved "https://registry.yarnpkg.com/autolinker/-/autolinker-0.28.1.tgz#0652b491881879f0775dace0cdca3233942a4e47" - integrity sha1-BlK0kYgYefB3XazgzcoyM5QqTkc= - dependencies: - gulp-header "^1.7.1" +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= -base64-js@^1.0.2: - version "1.3.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1" - integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g== - -base64-js@^1.3.0: +base64-js@^1.3.1: version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -bignumber.js@^9.0.0: - version "9.0.1" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.1.tgz#8d7ba124c882bfd8e43260c67475518d0689e4e5" - integrity sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA== +bech32@1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" + integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== binary-extensions@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -bip66@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/bip66/-/bip66-1.1.5.tgz#01fa8748785ca70955d5011217d1b3139969ca22" - integrity sha1-AfqHSHhcpwlV1QESF9GzE5lpyiI= - dependencies: - safe-buffer "^5.0.1" - -bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.8, bn.js@^4.11.9: +bn.js@^4.11.9, bn.js@^4.4.0: version "4.12.0" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== -bn.js@^5.1.3: - version "5.1.3" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.1.3.tgz#beca005408f642ebebea80b042b4d18d2ac0ee6b" - integrity sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ== - brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -472,23 +654,7 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@~3.0.2: +braces@^3.0.1, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -505,66 +671,38 @@ browser-stdout@1.3.1: resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== -browserify-aes@^1.0.6: - version "1.2.0" - resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" - integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -buffer-equal-constant-time@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" - integrity sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= - buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk= - -buffer@5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.6.0.tgz#a31749dc7d81d84db08abf937b6b8c4033f62786" - integrity sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw== +buffer@6.0.3: + version "6.0.3" + resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" + base64-js "^1.3.1" + ieee754 "^1.2.1" -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -camelcase@^5.0.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== camelcase@^6.0.0: version "6.2.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + chalk@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" @@ -573,10 +711,10 @@ chalk@^4.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chokidar@3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b" - integrity sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ== +chokidar@3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" + integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== dependencies: anymatch "~3.1.1" braces "~3.0.2" @@ -586,53 +724,27 @@ chokidar@3.4.3: normalize-path "~3.0.0" readdirp "~3.5.0" optionalDependencies: - fsevents "~2.1.2" + fsevents "~2.3.1" chownr@^1.1.1: version "1.1.4" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -672,104 +784,42 @@ commander@~2.20.3: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -concat-with-sourcemaps@*: - version "1.1.0" - resolved "https://registry.yarnpkg.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz#d4ea93f05ae25790951b99e7b3b09e3908a4082e" - integrity sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg== - dependencies: - source-map "^0.6.1" - console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= - core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= -create-frame@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/create-frame/-/create-frame-1.0.0.tgz#8b95f2691e3249b6080443e33d0bad9f8f6975aa" - integrity sha1-i5XyaR4ySbYIBEPjPQutn49pdao= - dependencies: - define-property "^0.2.5" - extend-shallow "^2.0.1" - isobject "^3.0.0" - lazy-cache "^2.0.2" - -create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" - integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-hmac@^1.1.4: - version "1.1.7" - resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" - integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -date.js@^0.3.1: - version "0.3.3" - resolved "https://registry.yarnpkg.com/date.js/-/date.js-0.3.3.tgz#ef1e92332f507a638795dbb985e951882e50bbda" - integrity sha512-HgigOS3h3k6HnW011nAb43c5xx5rBXk8P2v/WIT9Zv4koIaVXiH2BURguI78VVp+5Qc076T7OR378JViCnZtBw== +cross-spawn@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== dependencies: - debug "~3.1.0" + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" -debug@4: +debug@4.3.1, debug@^4.0.1, debug@^4.1.1: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== dependencies: ms "2.1.2" -debug@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.2.0.tgz#7f150f93920e94c58f5574c2fd01a3110effe7f1" - integrity sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg== - dependencies: - ms "2.1.2" - -debug@^2.2.0, debug@^2.3.3: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - debug@^3.2.6: version "3.2.6" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" @@ -777,61 +827,20 @@ debug@^3.2.6: dependencies: ms "^2.1.1" -debug@~3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== - dependencies: - ms "2.0.0" - -decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= - decamelize@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== -default-compare@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/default-compare/-/default-compare-1.0.0.tgz#cb61131844ad84d84788fb68fd01681ca7781a2f" - integrity sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ== - dependencies: - kind-of "^5.0.2" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" +deep-is@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= delegates@^1.0.0: version "1.0.0" @@ -843,30 +852,33 @@ detect-libc@^1.0.2: resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= -diff@4.0.2, diff@^4.0.1: +diff@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" + integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== + +diff@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -drbg.js@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/drbg.js/-/drbg.js-1.0.1.tgz#3e36b6c42b37043823cdbc332d58f31e2445480b" - integrity sha1-Pja2xCs3BDgjzbwzLVjzHiRFSAs= +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== dependencies: - browserify-aes "^1.0.6" - create-hash "^1.1.2" - create-hmac "^1.1.4" + path-type "^4.0.0" -ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf" - integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== dependencies: - safe-buffer "^5.0.1" + esutils "^2.0.2" -elliptic@^6.5.2: +elliptic@6.5.4: version "6.5.4" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== dependencies: bn.js "^4.11.9" @@ -877,146 +889,232 @@ elliptic@^6.5.2: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -ent@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" - integrity sha1-6WQhkyWiHQX0RGai9obtbOX13R0= +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" -error-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/error-symbol/-/error-symbol-0.1.0.tgz#0a4dae37d600d15a29ba453d8ef920f1844333f6" - integrity sha1-Ck2uN9YA0VopukU9jvkg8YRDM/Y= +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== escape-string-regexp@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +eslint-plugin-prettier@^3.3.1: + version "3.4.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz#cdbad3bf1dbd2b177e9825737fe63b476a08f0c7" + integrity sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-scope@^5.0.0, eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-utils@^2.0.0, eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint@^7.25.0: + version "7.25.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.25.0.tgz#1309e4404d94e676e3e831b3a3ad2b050031eb67" + integrity sha512-TVpSovpvCNpLURIScDRB6g5CYu/ZFq9GfX2hLNIV4dSBKxIWojeDODvYl3t0k0VtMxYeR8OXPCFE5+oHMlGfhw== + dependencies: + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.4.0" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.4.0" + esutils "^2.0.2" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash "^4.17.21" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.4" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== + dependencies: + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" + esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -ethereumjs-abi@^0.6.8: - version "0.6.8" - resolved "https://registry.yarnpkg.com/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz#71bc152db099f70e62f108b7cdfca1b362c6fcae" - integrity sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA== +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== dependencies: - bn.js "^4.11.8" - ethereumjs-util "^6.0.0" - -ethereumjs-util@^6.0.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.2.0.tgz#23ec79b2488a7d041242f01e25f24e5ad0357960" - integrity sha512-vb0XN9J2QGdZGIEKG2vXM+kUdEivUfU6Wmi5y0cg+LRhDYKnXIZ/Lz7XjFbHRR9VIKq2lVGLzGBkA++y2nOdOQ== - dependencies: - "@types/bn.js" "^4.11.3" - bn.js "^4.11.0" - create-hash "^1.1.2" - ethjs-util "0.1.6" - keccak "^2.0.0" - rlp "^2.2.3" - secp256k1 "^3.0.1" - -ethjs-util@0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/ethjs-util/-/ethjs-util-0.1.6.tgz#f308b62f185f9fe6237132fb2a9818866a5cd536" - integrity sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w== - dependencies: - is-hex-prefixed "1.0.0" - strip-hex-prefix "1.0.0" - -event-target-shim@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" - integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== + estraverse "^5.1.0" -evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" + estraverse "^5.2.0" -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= - dependencies: - is-extendable "^0.1.0" +estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" +estraverse@^5.1.0, estraverse@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" + integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +ethers@^5.1.4: + version "5.1.4" + resolved "https://registry.npmjs.org/ethers/-/ethers-5.1.4.tgz#8ae973705ed962f8f41dc59693704002a38dd18b" + integrity sha512-EAPQ/fgGRu0PoR/VNFnHTMOtG/IZ0AItdW55C9T8ffmVu0rnyllZL404eBF66elJehOLz2kxnUrhXpE7TCpW7g== + dependencies: + "@ethersproject/abi" "5.1.2" + "@ethersproject/abstract-provider" "5.1.0" + "@ethersproject/abstract-signer" "5.1.0" + "@ethersproject/address" "5.1.0" + "@ethersproject/base64" "5.1.0" + "@ethersproject/basex" "5.1.0" + "@ethersproject/bignumber" "5.1.1" + "@ethersproject/bytes" "5.1.0" + "@ethersproject/constants" "5.1.0" + "@ethersproject/contracts" "5.1.1" + "@ethersproject/hash" "5.1.0" + "@ethersproject/hdnode" "5.1.0" + "@ethersproject/json-wallets" "5.1.0" + "@ethersproject/keccak256" "5.1.0" + "@ethersproject/logger" "5.1.0" + "@ethersproject/networks" "5.1.0" + "@ethersproject/pbkdf2" "5.1.0" + "@ethersproject/properties" "5.1.0" + "@ethersproject/providers" "5.1.2" + "@ethersproject/random" "5.1.0" + "@ethersproject/rlp" "5.1.0" + "@ethersproject/sha2" "5.1.0" + "@ethersproject/signing-key" "5.1.0" + "@ethersproject/solidity" "5.1.0" + "@ethersproject/strings" "5.1.0" + "@ethersproject/transactions" "5.1.1" + "@ethersproject/units" "5.1.0" + "@ethersproject/wallet" "5.1.0" + "@ethersproject/web" "5.1.0" + "@ethersproject/wordlists" "5.1.0" + +fast-deep-equal@^3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^3.1.1: + version "3.2.5" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661" + integrity sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + picomatch "^2.2.1" -extend@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -"falsey@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/falsey/-/falsey-0.3.2.tgz#b21c90c5c34660fc192bf909575db95b6880d597" - integrity sha512-lxEuefF5MBIVDmE6XeqCdM4BWk1+vYmGZtkbKZ/VFcg6uBBw6fXNEbWmxCjDdQlFc9hy450nkiWwM3VAW6G1qg== - dependencies: - kind-of "^5.0.2" - -fast-text-encoding@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz#ec02ac8e01ab8a319af182dae2681213cfe9ce53" - integrity sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig== +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== +fastq@^1.6.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.11.0.tgz#bb9fb955a07130a918eb63c1f5161cc32a5d0858" + integrity sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g== + dependencies: + reusify "^1.0.4" -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" + flat-cache "^3.0.4" fill-range@^7.0.1: version "7.0.1" @@ -1033,41 +1131,28 @@ find-up@5.0.0: locate-path "^6.0.0" path-exists "^4.0.0" -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== dependencies: - locate-path "^3.0.0" + flatted "^3.1.0" + rimraf "^3.0.2" flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= - -for-own@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b" - integrity sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs= - dependencies: - for-in "^1.0.1" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= - dependencies: - map-cache "^0.2.2" +flatted@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469" + integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA== -fs-exists-sync@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" - integrity sha1-mC1ok6+RjnLQjeyehnP/K1qNat0= +follow-redirects@^1.12.1: + version "1.14.0" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.0.tgz#f5d260f95c5f8c105894491feee5dc8993b402fe" + integrity sha512-0vRwd7RKQBTt+mgu87mtYeofLFZpTas2S9zY+jIeuLJMNvudIgF52nr19q40HOwH5RrhWIPuj9puybzSJiRrVg== fs-extra@^0.30.0: version "0.30.0" @@ -1092,10 +1177,15 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= -fsevents@~2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" - integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== +fsevents@~2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= gauge@~2.7.3: version "2.7.4" @@ -1111,42 +1201,17 @@ gauge@~2.7.3: strip-ansi "^3.0.1" wide-align "^1.1.0" -gaxios@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/gaxios/-/gaxios-4.1.0.tgz#e8ad466db5a4383c70b9d63bfd14dfaa87eb0099" - integrity sha512-vb0to8xzGnA2qcgywAjtshOKKVDf2eQhJoiL6fHhgW5tVN7wNk7egnYIO9zotfn3lQ3De1VPdf7V5/BWfCtCmg== - dependencies: - abort-controller "^3.0.0" - extend "^3.0.2" - https-proxy-agent "^5.0.0" - is-stream "^2.0.0" - node-fetch "^2.3.0" - -gcp-metadata@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/gcp-metadata/-/gcp-metadata-4.2.1.tgz#31849fbcf9025ef34c2297c32a89a1e7e9f2cd62" - integrity sha512-tSk+REe5iq/N+K+SK1XjZJUrFPuDqGZVzCy2vocIHIGmPlTGsa8owXMJwGkrXr73NO0AzhPW4MF2DEHz7P2AVw== - dependencies: - gaxios "^4.0.0" - json-bigint "^1.0.0" - -get-caller-file@^2.0.1: +get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-object@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/get-object/-/get-object-0.2.0.tgz#d92ff7d5190c64530cda0543dac63a3d47fe8c0c" - integrity sha1-2S/31RkMZFMM2gVD2sY6PUf+jAw= +glob-parent@^5.0.0, glob-parent@^5.1.0: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: - is-number "^2.0.2" - isobject "^0.2.0" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + is-glob "^4.0.1" glob-parent@~5.1.0: version "5.1.1" @@ -1167,37 +1232,36 @@ glob@7.1.6, glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -google-auth-library@^6.1.1: - version "6.1.4" - resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-6.1.4.tgz#bc70c4f3b6681ae5273343466bcef37577b7ee44" - integrity sha512-q0kYtGWnDd9XquwiQGAZeI2Jnglk7NDi0cChE4tWp6Kpo/kbqnt9scJb0HP+/xqt03Beqw/xQah1OPrci+pOxw== - dependencies: - arrify "^2.0.0" - base64-js "^1.3.0" - ecdsa-sig-formatter "^1.0.11" - fast-text-encoding "^1.0.0" - gaxios "^4.0.0" - gcp-metadata "^4.2.0" - gtoken "^5.0.4" - jws "^4.0.0" - lru-cache "^6.0.0" +globals@^12.1.0: + version "12.4.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" + integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== + dependencies: + type-fest "^0.8.1" -google-p12-pem@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/google-p12-pem/-/google-p12-pem-3.0.3.tgz#673ac3a75d3903a87f05878f3c75e06fc151669e" - integrity sha512-wS0ek4ZtFx/ACKYF3JhyGe5kzH7pgiQ7J5otlumqR9psmWMYc+U9cErKlCYVYHoUaidXHdZ2xbo34kB+S+24hA== +globals@^13.6.0: + version "13.8.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.8.0.tgz#3e20f504810ce87a8d72e55aecf8435b50f4c1b3" + integrity sha512-rHtdA6+PDBIjeEvA91rpqzEvk/k3/i7EeNQiryiWuJH0Hw9cpyJMAt2jtbAwUaRdhD+573X4vWw6IcjKPasi9Q== dependencies: - node-forge "^0.10.0" + type-fest "^0.20.2" -google-protobuf@3.12.4: - version "3.12.4" - resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.12.4.tgz#fd89b7e5052cdb35a80f9b455612851d542a5c9f" - integrity sha512-ItTn8YepDQMHEMHloUPH+FDaTPiHTnbsMvP50aXfbI65IK3AA5+wXlHSygJH8xz+h1g4gu7V+CK5X1/SaGITsA== +globby@^11.0.1: + version "11.0.3" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" + integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.1.1" + ignore "^5.1.4" + merge2 "^1.3.0" + slash "^3.0.0" -google-protobuf@^3.14.0: - version "3.14.0" - resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.14.0.tgz#20373d22046e63831a5110e11a84f713cc43651e" - integrity sha512-bwa8dBuMpOxg7COyqkW6muQuvNnWgVN8TX/epDRGW5m0jcrmq2QJyCyiV8ZE2/6LaIIqJtiv9bYokFhfpy/o6w== +google-protobuf@3.15.8, google-protobuf@^3.15.8: + version "3.15.8" + resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.15.8.tgz#5f3948905e4951c867d6bc143f385a80e2a39efe" + integrity sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw== graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: version "4.2.3" @@ -1209,92 +1273,22 @@ growl@1.10.5: resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== -grpc-tools@^1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/grpc-tools/-/grpc-tools-1.10.0.tgz#687c0599715fc8c02e93496f8f37f89bc9840ef7" - integrity sha512-tEbO16TuXV+aJPTMK4FCd4Jw6uzR/wm4h3u27MmZQlWLETp3bL/6KQdVM6xujNx8N1Mbj0/Be2f/0SedzGm0dQ== +grpc-tools@^1.11.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/grpc-tools/-/grpc-tools-1.11.1.tgz#25b3f9f47f4a691b2b1a44ee47e9603c189e2034" + integrity sha512-QNz6xuiyBuHXKu78bv5PAOzv/EBKkH54OgeTkHyFkic8TrY8oiifs6hozRJQxJb+L7k+udWYmPvfK76Pgt4JhA== dependencies: node-pre-gyp "^0.15.0" -grpc_tools_node_protoc_ts@^5.1.3: - version "5.1.3" - resolved "https://registry.npmjs.org/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.1.3.tgz#c24d6470b6f0204a7ec920cee0f057fcb11eea66" - integrity sha512-BiElSWEmRgrhWFV/+yFtRiqxC3D/nrk1g0GezJ/9ZrJxUvu/0sBVeqe4rTmkFFqQVZTRX1+MNOVeOJKDmQ41Xg== +grpc_tools_node_protoc_ts@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.2.1.tgz#6f328596b38552196ea8fea62cc67cd8c34a7440" + integrity sha512-6uXvrxHkl0ax2EZIqIGL7qcgIj9Nspi+gbuGPDN20/yS4a/jvWCCUxjF2XHwBK/AKdgL0pMpW0shnyhPNPiLsA== dependencies: - google-protobuf "3.12.4" + google-protobuf "3.15.8" handlebars "4.7.6" - handlebars-helpers "0.10.0" -gtoken@^5.0.4: - version "5.2.0" - resolved "https://registry.yarnpkg.com/gtoken/-/gtoken-5.2.0.tgz#7f1e029f9472bb8899d6911c03c66f7ad985c849" - integrity sha512-qbf6JWEYFMj3WMAluvYXl8GAiji6w8d9OmAGCbBg0xF4xD/yu6ZaO6BhoXNddRjKcOUpZD81iea1H5B45gAo1g== - dependencies: - gaxios "^4.0.0" - google-p12-pem "^3.0.3" - jws "^4.0.0" - mime "^2.2.0" - -gulp-header@^1.7.1: - version "1.8.12" - resolved "https://registry.yarnpkg.com/gulp-header/-/gulp-header-1.8.12.tgz#ad306be0066599127281c4f8786660e705080a84" - integrity sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ== - dependencies: - concat-with-sourcemaps "*" - lodash.template "^4.4.0" - through2 "^2.0.0" - -handlebars-helper-create-frame@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/handlebars-helper-create-frame/-/handlebars-helper-create-frame-0.1.0.tgz#8aa51d10aeb6408fcc6605d40d77356288487a03" - integrity sha1-iqUdEK62QI/MZgXUDXc1YohIegM= - dependencies: - create-frame "^1.0.0" - isobject "^3.0.0" - -handlebars-helpers@0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/handlebars-helpers/-/handlebars-helpers-0.10.0.tgz#663d49e718928eafbead1473419ed7bc24bcd45a" - integrity sha512-QiyhQz58u/DbuV41VnfpE0nhy6YCH4vB514ajysV8SoKmP+DxU+pR+fahVyNECHj+jiwEN2VrvxD/34/yHaLUg== - dependencies: - arr-flatten "^1.1.0" - array-sort "^0.1.4" - create-frame "^1.0.0" - define-property "^1.0.0" - "falsey" "^0.3.2" - for-in "^1.0.2" - for-own "^1.0.0" - get-object "^0.2.0" - get-value "^2.0.6" - handlebars "^4.0.11" - handlebars-helper-create-frame "^0.1.0" - handlebars-utils "^1.0.6" - has-value "^1.0.0" - helper-date "^1.0.1" - helper-markdown "^1.0.0" - helper-md "^0.2.2" - html-tag "^2.0.0" - is-even "^1.0.0" - is-glob "^4.0.0" - is-number "^4.0.0" - kind-of "^6.0.0" - lazy-cache "^2.0.2" - logging-helpers "^1.0.0" - micromatch "^3.1.4" - relative "^3.0.2" - striptags "^3.1.0" - to-gfm-code-block "^0.1.1" - year "^0.2.1" - -handlebars-utils@^1.0.2, handlebars-utils@^1.0.4, handlebars-utils@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/handlebars-utils/-/handlebars-utils-1.0.6.tgz#cb9db43362479054782d86ffe10f47abc76357f9" - integrity sha512-d5mmoQXdeEqSKMtQQZ9WkiUcO1E3tPbWxluCK9hVgIDPzQa9WsKo3Lbe/sGflTe7TomHEeZaOgwIkyIr1kfzkw== - dependencies: - kind-of "^6.0.0" - typeof-article "^0.1.1" - -handlebars@4.7.6, handlebars@^4.0.11: +handlebars@4.7.6: version "4.7.6" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.6.tgz#d4c05c1baf90e9945f77aa68a7a219aa4a7df74e" integrity sha512-1f2BACcBfiwAfStCKZNrUCgqNZkGsAT7UM3kkYtXuLo0KnaVfjKOyf7PRzB6++aK9STyT1Pd2ZCPe3EGOXleXA== @@ -1306,6 +1300,11 @@ handlebars@4.7.6, handlebars@^4.0.11: optionalDependencies: uglify-js "^3.1.4" +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + has-flag@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" @@ -1316,44 +1315,13 @@ has-unicode@^2.0.0: resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -hash-base@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - integrity sha1-X8hoaEfs1zSZQDMZprCj8/auSRg= +hash.js@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846" + integrity sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA== dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" + inherits "^2.0.3" + minimalistic-assert "^1.0.0" hash.js@^1.0.0, hash.js@^1.0.3: version "1.1.7" @@ -1368,39 +1336,6 @@ he@1.2.0: resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== -helper-date@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/helper-date/-/helper-date-1.0.1.tgz#12fedea3ad8e44a7ca4c4efb0ff4104a5120cffb" - integrity sha512-wU3VOwwTJvGr/w5rZr3cprPHO+hIhlblTJHD6aFBrKLuNbf4lAmkawd2iK3c6NbJEvY7HAmDpqjOFSI5/+Ey2w== - dependencies: - date.js "^0.3.1" - handlebars-utils "^1.0.4" - moment "^2.18.1" - -helper-markdown@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/helper-markdown/-/helper-markdown-1.0.0.tgz#ee7e9fc554675007d37eb90f7853b13ce74f3e10" - integrity sha512-AnDqMS4ejkQK0MXze7pA9TM3pu01ZY+XXsES6gEE0RmCGk5/NIfvTn0NmItfyDOjRAzyo9z6X7YHbHX4PzIvOA== - dependencies: - handlebars-utils "^1.0.2" - highlight.js "^9.12.0" - remarkable "^1.7.1" - -helper-md@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/helper-md/-/helper-md-0.2.2.tgz#c1f59d7e55bbae23362fd8a0e971607aec69d41f" - integrity sha1-wfWdflW7riM2L9ig6XFgeuxp1B8= - dependencies: - ent "^2.2.0" - extend-shallow "^2.0.1" - fs-exists-sync "^0.1.0" - remarkable "^1.6.2" - -highlight.js@^9.12.0: - version "9.18.5" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.5.tgz#d18a359867f378c138d6819edfc2a8acd5f29825" - integrity sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA== - hmac-drbg@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -1410,22 +1345,6 @@ hmac-drbg@^1.0.1: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -html-tag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/html-tag/-/html-tag-2.0.0.tgz#36c3bc8d816fd30b570d5764a497a641640c2fed" - integrity sha512-XxzooSo6oBoxBEUazgjdXj7VwTn/iSTSZzTYKzYY6I916tkaYzypHxy+pbVU1h+0UQ9JlVf5XkNQyxOAiiQO1g== - dependencies: - is-self-closing "^1.0.1" - kind-of "^6.0.0" - -https-proxy-agent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2" - integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA== - dependencies: - agent-base "6" - debug "4" - iconv-lite@^0.4.4: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" @@ -1433,10 +1352,10 @@ iconv-lite@^0.4.4: dependencies: safer-buffer ">= 2.1.2 < 3" -ieee754@^1.1.4: - version "1.1.13" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" - integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg== +ieee754@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== ignore-walk@^3.0.1: version "3.0.3" @@ -1445,6 +1364,29 @@ ignore-walk@^3.0.1: dependencies: minimatch "^3.0.4" +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.1.4: + version "5.1.8" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" + integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== + +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -1453,97 +1395,22 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -info-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/info-symbol/-/info-symbol-0.1.0.tgz#27841d72867ddb4242cd612d79c10633881c6a78" - integrity sha1-J4QdcoZ920JCzWEtecEGM4gcang= - -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: +inherits@2, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== ini@~1.3.0: version "1.3.8" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-even@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-even/-/is-even-1.0.0.tgz#76b5055fbad8d294a86b6a949015e1c97b717c06" - integrity sha1-drUFX7rY0pSoa2qUkBXhyXtxfAY= - dependencies: - is-odd "^0.1.2" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== dependencies: - is-plain-object "^2.0.4" + binary-extensions "^2.0.0" is-extglob@^2.1.1: version "2.1.1" @@ -1562,6 +1429,11 @@ is-fullwidth-code-point@^2.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" @@ -1569,72 +1441,17 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: dependencies: is-extglob "^2.1.1" -is-hex-prefixed@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" - integrity sha1-fY035q135dEnFIkTxXPggtd39VQ= - -is-number@^2.0.2: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== - is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-odd@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-0.1.2.tgz#bc573b5ce371ef2aad6e6f49799b72bef13978a7" - integrity sha1-vFc7XONx7yqtbm9JeZtyvvE5eKc= - dependencies: - is-number "^3.0.0" - is-plain-obj@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-self-closing@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-self-closing/-/is-self-closing-1.0.1.tgz#5f406b527c7b12610176320338af0fa3896416e4" - integrity sha512-E+60FomW7Blv5GXTlYee2KDrnG6srxF7Xt1SjrhWUGUEsTFIqY/nq2y3DaftCsgUMdh89V07IVfhY9KIJhLezg== - dependencies: - self-closing-tags "^1.0.1" - -is-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" - integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isarray@1.0.0, isarray@~1.0.0: +isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= @@ -1644,42 +1461,50 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= -isobject@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-0.2.0.tgz#a3432192f39b910b5f02cc989487836ec70aa85e" - integrity sha1-o0MhkvObkQtfAsyYlIeDbscKqF4= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= +js-sha3@0.5.7: + version "0.5.7" + resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz#0d4ffd8002d5333aabaf4a23eed2f6374c9f28e7" + integrity sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc= js-sha3@0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== -js-yaml@3.14.0: - version "3.14.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.0.tgz#a7a34170f26a21bb162424d8adacb4113a69e482" - integrity sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A== +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.0.0.tgz#f426bc0ff4b4051926cd588c71113183409a121f" + integrity sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q== + dependencies: + argparse "^2.0.1" + +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== dependencies: argparse "^1.0.7" esprima "^4.0.0" -json-bigint@^1.0.0: +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/json-bigint/-/json-bigint-1.0.0.tgz#ae547823ac0cad8398667f8cd9ef4730f5b01ff1" - integrity sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ== - dependencies: - bignumber.js "^9.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= jsonfile@^2.1.0: version "2.4.0" @@ -1688,57 +1513,6 @@ jsonfile@^2.1.0: optionalDependencies: graceful-fs "^4.1.6" -jwa@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/jwa/-/jwa-2.0.0.tgz#a7e9c3f29dae94027ebcaf49975c9345593410fc" - integrity sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA== - dependencies: - buffer-equal-constant-time "1.0.1" - ecdsa-sig-formatter "1.0.11" - safe-buffer "^5.0.1" - -jws@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jws/-/jws-4.0.0.tgz#2d4e8cf6a318ffaa12615e9dec7e86e6c97310f4" - integrity sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg== - dependencies: - jwa "^2.0.0" - safe-buffer "^5.0.1" - -keccak@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/keccak/-/keccak-2.1.0.tgz#734ea53f2edcfd0f42cdb8d5f4c358fef052752b" - integrity sha512-m1wbJRTo+gWbctZWay9i26v5fFnYkOn7D5PCxJ3fZUGUEb49dE1Pm4BREUYCt/aoO6di7jeoGmhvqN9Nzylm3Q== - dependencies: - bindings "^1.5.0" - inherits "^2.0.4" - nan "^2.14.0" - safe-buffer "^5.2.0" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.1.0, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0, kind-of@^5.0.2: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - klaw@^1.0.0: version "1.3.1" resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" @@ -1746,20 +1520,13 @@ klaw@^1.0.0: optionalDependencies: graceful-fs "^4.1.9" -lazy-cache@^2.0.1, lazy-cache@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-2.0.2.tgz#b9190a4f913354694840859f8a8f7084d8822264" - integrity sha1-uRkKT5EzVGlIQIWfio9whNiCImQ= - dependencies: - set-getter "^0.1.0" - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" + prelude-ls "^1.2.1" + type-check "~0.4.0" locate-path@^6.0.0: version "6.0.0" @@ -1768,33 +1535,25 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" -lodash._reinterpolate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= - -lodash.template@^4.4.0: +lodash.clonedeep@^4.5.0: version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" - integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.templatesettings "^4.0.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= -lodash.templatesettings@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" - integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== - dependencies: - lodash._reinterpolate "^3.0.0" +lodash.flatten@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" + integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= -log-ok@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/log-ok/-/log-ok-0.1.1.tgz#bea3dd36acd0b8a7240d78736b5b97c65444a334" - integrity sha1-vqPdNqzQuKckDXhza1uXxlREozQ= - dependencies: - ansi-green "^0.1.1" - success-symbol "^0.1.0" +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= + +lodash@^4.17.15, lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-symbols@4.0.0: version "4.0.0" @@ -1803,27 +1562,6 @@ log-symbols@4.0.0: dependencies: chalk "^4.0.0" -log-utils@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/log-utils/-/log-utils-0.2.1.tgz#a4c217a0dd9a50515d9b920206091ab3d4e031cf" - integrity sha1-pMIXoN2aUFFdm5ICBgkas9TgMc8= - dependencies: - ansi-colors "^0.2.0" - error-symbol "^0.1.0" - info-symbol "^0.1.0" - log-ok "^0.1.1" - success-symbol "^0.1.0" - time-stamp "^1.0.1" - warning-symbol "^0.1.0" - -logging-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/logging-helpers/-/logging-helpers-1.0.0.tgz#b5a37b32ad53eb0137c58c7898a47b175ddb7c36" - integrity sha512-qyIh2goLt1sOgQQrrIWuwkRjUx4NUcEqEGAcYqD8VOnOC6ItwkrVE8/tA4smGpjzyp4Svhc6RodDp9IO5ghpyA== - dependencies: - isobject "^3.0.0" - log-utils "^0.2.1" - lru-cache@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" @@ -1836,55 +1574,23 @@ make-error@^1.1.1: resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= - dependencies: - object-visit "^1.0.0" - -md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" - integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - memorystream@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI= -micromatch@^3.1.4: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -mime@^2.2.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-2.5.0.tgz#2b4af934401779806ee98026bb42e8c1ae1876b1" - integrity sha512-ft3WayFSFUVBuJj7BMLKAQcSlItKtfjsKDDsii3rqFDAZ7t11zRe8ASw/GlmivGwVUYtwkQrxiGGpL6gFvB0ag== +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +micromatch@^4.0.2: + version "4.0.4" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" + integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== + dependencies: + braces "^3.0.1" + picomatch "^2.2.3" minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" @@ -1923,14 +1629,6 @@ minizlib@^1.2.1: dependencies: minipass "^2.9.0" -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - mkdirp@^0.5.0, mkdirp@^0.5.3: version "0.5.5" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" @@ -1938,78 +1636,56 @@ mkdirp@^0.5.0, mkdirp@^0.5.3: dependencies: minimist "^1.2.5" -mocha@^8.2.1: - version "8.2.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-8.2.1.tgz#f2fa68817ed0e53343d989df65ccd358bc3a4b39" - integrity sha512-cuLBVfyFfFqbNR0uUKbDGXKGk+UDFe6aR4os78XIrMQpZl/nv7JYHcvP5MFIAb374b2zFXsdgEGwmzMtP0Xg8w== +mocha@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-8.3.2.tgz#53406f195fa86fbdebe71f8b1c6fb23221d69fcc" + integrity sha512-UdmISwr/5w+uXLPKspgoV7/RXZwKRTiTjJ2/AC5ZiEztIoOYdfKb19+9jNmEInzx5pBsCyJQzarAxqIGBNYJhg== dependencies: "@ungap/promise-all-settled" "1.1.2" ansi-colors "4.1.1" browser-stdout "1.3.1" - chokidar "3.4.3" - debug "4.2.0" - diff "4.0.2" + chokidar "3.5.1" + debug "4.3.1" + diff "5.0.0" escape-string-regexp "4.0.0" find-up "5.0.0" glob "7.1.6" growl "1.10.5" he "1.2.0" - js-yaml "3.14.0" + js-yaml "4.0.0" log-symbols "4.0.0" minimatch "3.0.4" - ms "2.1.2" - nanoid "3.1.12" + ms "2.1.3" + nanoid "3.1.20" serialize-javascript "5.0.1" strip-json-comments "3.1.1" - supports-color "7.2.0" + supports-color "8.1.1" which "2.0.2" wide-align "1.1.3" - workerpool "6.0.2" - yargs "13.3.2" - yargs-parser "13.1.2" + workerpool "6.1.0" + yargs "16.2.0" + yargs-parser "20.2.4" yargs-unparser "2.0.0" -moment@^2.18.1: - version "2.24.0" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b" - integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - ms@2.1.2, ms@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -nan@^2.14.0: - version "2.14.1" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" - integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw== - -nanoid@3.1.12: - version "3.1.12" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.12.tgz#6f7736c62e8d39421601e4a0c77623a97ea69654" - integrity sha512-1qstj9z5+x491jfiC4Nelk+f8XBad7LN20PmyWINJEMRSf3wcAjAWysw1qaA8z6NSKe2sjq1hRSDpBH5paCb6A== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" +ms@2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +nanoid@3.1.20: + version "3.1.20" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.20.tgz#badc263c6b1dcf14b71efaa85f6ab4c1d6cfc788" + integrity sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= needle@^2.5.0: version "2.6.0" @@ -2025,16 +1701,6 @@ neo-async@^2.6.0: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== -node-fetch@^2.3.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== - -node-forge@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3" - integrity sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA== - node-pre-gyp@^0.15.0: version "0.15.0" resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.15.0.tgz#c2fc383276b74c7ffa842925241553e8b40f1087" @@ -2105,29 +1771,6 @@ object-assign@^4.1.0: resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= - dependencies: - isobject "^3.0.0" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= - dependencies: - isobject "^3.0.1" - once@^1.3.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" @@ -2135,6 +1778,18 @@ once@^1.3.0: dependencies: wrappy "1" +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -2153,13 +1808,6 @@ osenv@^0.1.4: os-homedir "^1.0.0" os-tmpdir "^1.0.0" -p-limit@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -2167,13 +1815,6 @@ p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - p-locate@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -2181,20 +1822,12 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" path-exists@^4.0.0: version "4.0.0" @@ -2206,21 +1839,68 @@ path-is-absolute@^1.0.0: resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + picomatch@^2.0.4, picomatch@^2.2.1: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= +picomatch@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.3.tgz#465547f359ccc206d3c48e46a1bcb89bf7ee619d" + integrity sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg== + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier-plugin-organize-imports@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-1.1.1.tgz#7f1ac1a13d4d1752dc16881894dde1c10ccbf3c0" + integrity sha512-rFA1lnek1FYkMGthm4xBKME41qUKItTovuo24bCGZu/Vu1n3gW71UPLAkIdwewwkZCe29gRVweSOPXvAdckFuw== + +prettier@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" @@ -2238,7 +1918,7 @@ rc@^1.2.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -readable-stream@^2.0.6, readable-stream@~2.3.6: +readable-stream@^2.0.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -2258,63 +1938,30 @@ readdirp@~3.5.0: dependencies: picomatch "^2.2.1" -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -relative@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/relative/-/relative-3.0.2.tgz#0dcd8ec54a5d35a3c15e104503d65375b5a5367f" - integrity sha1-Dc2OxUpdNaPBXhBFA9ZTdbWlNn8= - dependencies: - isobject "^2.0.0" - -remarkable@^1.6.2, remarkable@^1.7.1: - version "1.7.4" - resolved "https://registry.yarnpkg.com/remarkable/-/remarkable-1.7.4.tgz#19073cb960398c87a7d6546eaa5e50d2022fcd00" - integrity sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg== - dependencies: - argparse "^1.0.10" - autolinker "~0.28.0" - -repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= +regexpp@^3.0.0, regexpp@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" + integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= -require-from-string@^2.0.0: +require-from-string@^2.0.0, require-from-string@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== rimraf@^2.2.8, rimraf@^2.6.1: version "2.7.1" @@ -2323,43 +1970,35 @@ rimraf@^2.2.8, rimraf@^2.6.1: dependencies: glob "^7.1.3" -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" + glob "^7.1.3" -rlp@^2.2.3: - version "2.2.4" - resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.4.tgz#d6b0e1659e9285fc509a5d169a9bd06f704951c1" - integrity sha512-fdq2yYCWpAQBhwkZv+Z8o/Z4sPmYm1CUq6P7n6lVTOdb949CnqA0sndXal5C1NleSVSZm6q5F3iEbauyVln/iw== +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== dependencies: - bn.js "^4.11.1" - -safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" - integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== + queue-microtask "^1.2.2" safe-buffer@^5.1.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +safe-buffer@^5.1.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" + integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== + safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= - dependencies: - ret "~0.1.10" - "safer-buffer@>= 2.1.2 < 3": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -2370,34 +2009,22 @@ sax@^1.2.4: resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== -secp256k1@^3.0.1: - version "3.8.0" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.8.0.tgz#28f59f4b01dbee9575f56a47034b7d2e3b3b352d" - integrity sha512-k5ke5avRZbtl9Tqx/SA7CbY3NF6Ro+Sj9cZxezFzuBlLDmyqPiL8hJJ+EmzD8Ig4LUDByHJ3/iPOVoRixs/hmw== - dependencies: - bindings "^1.5.0" - bip66 "^1.1.5" - bn.js "^4.11.8" - create-hash "^1.2.0" - drbg.js "^1.0.1" - elliptic "^6.5.2" - nan "^2.14.0" - safe-buffer "^5.1.2" - -self-closing-tags@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/self-closing-tags/-/self-closing-tags-1.0.1.tgz#6c5fa497994bb826b484216916371accee490a5d" - integrity sha512-7t6hNbYMxM+VHXTgJmxwgZgLGktuXtVVD5AivWzNTdJBM4DBjnDKDzkf2SrNjihaArpeJYNjxkELBu1evI4lQA== +scrypt-js@3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" + integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== semver@^5.3.0, semver@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@^6.2.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^7.2.1, semver@^7.3.2: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" serialize-javascript@5.0.1: version "5.0.1" @@ -2406,85 +2033,57 @@ serialize-javascript@5.0.1: dependencies: randombytes "^2.1.0" -set-blocking@^2.0.0, set-blocking@~2.0.0: +set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= -set-getter@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/set-getter/-/set-getter-0.1.0.tgz#d769c182c9d5a51f409145f2fba82e5e86e80376" - integrity sha1-12nBgsnVpR9AkUXy+6guXoboA3Y= - dependencies: - to-object-path "^0.3.0" - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== +sha3@^2.1.4: + version "2.1.4" + resolved "https://registry.npmjs.org/sha3/-/sha3-2.1.4.tgz#000fac0fe7c2feac1f48a25e7a31b52a6492cc8f" + integrity sha512-S8cNxbyb0UGUM2VhRD4Poe5N58gJnJsLJ5vC7FYWGUmGhcsj4++WaIOBFVDxlG0W3To6xBuiRh+i0Qp2oNCOtg== dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" + buffer "6.0.3" -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.11" - resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" - integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" + shebang-regex "^3.0.0" -sha3@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/sha3/-/sha3-2.1.3.tgz#ab05b841b2bce347765db31f57fe2a3134b9fb48" - integrity sha512-Io53D4o9qOmf3Ow9p/DoGLQiQHhtuR0ulbyambvRSG+OX5yXExk2yYfvjHtb7AtOyk6K6+sPeK/qaowWc/E/GA== - dependencies: - buffer "5.6.0" +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== signal-exit@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -solc@^0.6.1: - version "0.6.6" - resolved "https://registry.yarnpkg.com/solc/-/solc-0.6.6.tgz#0d4b9c2e7105dd6015583f5e1c5ba6a35861ea71" - integrity sha512-p0IO/1fRaHWKN+qR+mUivpwnBpFYD8EoFAzT8VL4lmllNwsyEO7TJJAc2QK0XUeWOYOT92NWKhDNNNLTVbHShA== +solc@^0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/solc/-/solc-0.8.4.tgz#c7e606e5fc07f3fe37414bc3dd868404399ea8bb" + integrity sha512-krEdbucX9yY362l79gXTK2UHhsZ02aQjQOYTzcgTd/waApueo3yWGzjX0CDJ1ByOuW46WuKAyzfbRWdFNr6OYQ== dependencies: command-exists "^1.2.8" commander "3.0.2" + follow-redirects "^1.12.1" fs-extra "^0.30.0" js-sha3 "0.8.0" memorystream "^0.3.1" @@ -2492,17 +2091,6 @@ solc@^0.6.1: semver "^5.5.0" tmp "0.0.33" -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - source-map-support@^0.5.17: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" @@ -2511,41 +2099,16 @@ source-map-support@^0.5.17: buffer-from "^1.0.0" source-map "^0.6.0" -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - source-map@^0.6.0, source-map@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - string-width@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -2563,14 +2126,14 @@ string-width@^1.0.1: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" string_decoder@~1.1.1: version "1.1.1" @@ -2593,21 +2156,14 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-hex-prefix@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz#0c5f155fef1151373377de9dbb588da05500e36f" - integrity sha1-DF8VX+8RUTczd96du1iNoFUA428= +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== dependencies: - is-hex-prefixed "1.0.0" + ansi-regex "^5.0.0" -strip-json-comments@3.1.1: +strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -2617,23 +2173,40 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= -striptags@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/striptags/-/striptags-3.1.1.tgz#c8c3e7fdd6fb4bb3a32a3b752e5b5e3e38093ebd" - integrity sha1-yMPn/db7S7OjKjt1LltePjgJPr0= +supports-color@8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" -success-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/success-symbol/-/success-symbol-0.1.0.tgz#24022e486f3bf1cdca094283b769c472d3b72897" - integrity sha1-JAIuSG878c3KCUKDt2nEctO3KJc= +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" -supports-color@7.2.0, supports-color@^7.1.0: +supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" +table@^6.0.4: + version "6.6.0" + resolved "https://registry.yarnpkg.com/table/-/table-6.6.0.tgz#905654b79df98d9e9a973de1dd58682532c40e8e" + integrity sha512-iZMtp5tUvcnAdtHpZTWLPF0M7AgiQsURR2DwmxnJwSy8I3+cY+ozzVvYha3BOLG2TB+L0CqjIz+91htuj6yCXg== + dependencies: + ajv "^8.0.1" + lodash.clonedeep "^4.5.0" + lodash.flatten "^4.4.0" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.0" + strip-ansi "^6.0.0" + tar@^4.4.2: version "4.4.13" resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" @@ -2647,18 +2220,10 @@ tar@^4.4.2: safe-buffer "^5.1.2" yallist "^3.0.3" -through2@^2.0.0: - version "2.0.5" - resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" - integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== - dependencies: - readable-stream "~2.3.6" - xtend "~4.0.1" - -time-stamp@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" - integrity sha1-dkpaEa9QVhkhsTPztE5hhofg9cM= +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= tmp@0.0.33: version "0.0.33" @@ -2667,26 +2232,6 @@ tmp@0.0.33: dependencies: os-tmpdir "~1.0.2" -to-gfm-code-block@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/to-gfm-code-block/-/to-gfm-code-block-0.1.1.tgz#25d045a5fae553189e9637b590900da732d8aa82" - integrity sha1-JdBFpfrlUxielje1kJANpzLYqoI= - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -2694,16 +2239,6 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - ts-node@^9.1.1: version "9.1.1" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" @@ -2716,17 +2251,39 @@ ts-node@^9.1.1: source-map-support "^0.5.17" yn "3.1.1" -typeof-article@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/typeof-article/-/typeof-article-0.1.1.tgz#9f07e733c3fbb646ffa9e61c08debacd460e06af" - integrity sha1-nwfnM8P7tkb/qeYcCN66zUYOBq8= +tslib@^1.8.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tsutils@^3.17.1: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== dependencies: - kind-of "^3.1.0" + tslib "^1.8.1" -typescript@^4.1.3: - version "4.1.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7" - integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg== +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +typescript@^4.2.4: + version "4.2.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" + integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg== uglify-js@^3.1.4: version "3.9.1" @@ -2735,50 +2292,24 @@ uglify-js@^3.1.4: dependencies: commander "~2.20.3" -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + punycode "^2.1.0" util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= -warning-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/warning-symbol/-/warning-symbol-0.1.0.tgz#bb31dd11b7a0f9d67ab2ed95f457b65825bbad21" - integrity sha1-uzHdEbeg+dZ6su2V9Fe2WCW7rSE= - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= +v8-compile-cache@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== -which@2.0.2: +which@2.0.2, which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== @@ -2792,39 +2323,44 @@ wide-align@1.1.3, wide-align@^1.1.0: dependencies: string-width "^1.0.2 || 2" +word-wrap@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + wordwrap@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= -workerpool@6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.0.2.tgz#e241b43d8d033f1beb52c7851069456039d1d438" - integrity sha512-DSNyvOpFKrNusaaUwk+ej6cBj1bmhLcBfj80elGk+ZIo5JSkq+unB1dLKEOcNfJDZgjGICfhQ0Q5TbP0PvF4+Q== +workerpool@6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.1.0.tgz#a8e038b4c94569596852de7a8ea4228eefdeb37b" + integrity sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg== -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= -xtend@~4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" - integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== +ws@7.2.3: + version "7.2.3" + resolved "https://registry.npmjs.org/ws/-/ws-7.2.3.tgz#a5411e1fb04d5ed0efee76d26d5c46d830c39b46" + integrity sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ== -y18n@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" - integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== yallist@^3.0.0, yallist@^3.0.3: version "3.1.1" @@ -2836,13 +2372,15 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yargs-parser@13.1.2, yargs-parser@^13.1.2: - version "13.1.2" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" - integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" +yargs-parser@20.2.4: + version "20.2.4" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== + +yargs-parser@^20.2.2: + version "20.2.7" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw== yargs-unparser@2.0.0: version "2.0.0" @@ -2854,26 +2392,18 @@ yargs-unparser@2.0.0: flat "^5.0.2" is-plain-obj "^2.1.0" -yargs@13.3.2: - version "13.3.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" - integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== +yargs@16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.2" - -year@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/year/-/year-0.2.1.tgz#4083ae520a318b23ec86037f3000cb892bdf9bb0" - integrity sha1-QIOuUgoxiyPshgN/MADLiSvfm7A= + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" yn@3.1.1: version "3.1.1" diff --git a/rpc/rpctransact/rpctransact.pb.go b/rpc/rpctransact/rpctransact.pb.go index 40d3a1aed..2b720baea 100644 --- a/rpc/rpctransact/rpctransact.pb.go +++ b/rpc/rpctransact/rpctransact.pb.go @@ -14,12 +14,12 @@ import ( proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" golang_proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/ptypes/duration" github_com_hyperledger_burrow_crypto "github.com/hyperledger/burrow/crypto" _ "github.com/hyperledger/burrow/execution/exec" _ "github.com/hyperledger/burrow/txs" github_com_hyperledger_burrow_txs "github.com/hyperledger/burrow/txs" payload "github.com/hyperledger/burrow/txs/payload" + _ "google.golang.org/protobuf/types/known/durationpb" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000..fb57ccd13 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + +