From 8e65f0db2044caf17e723c092567e530e6e1f076 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 13 Sep 2023 23:48:48 +0800 Subject: [PATCH 01/11] add missing proto files --- proto/google/protobuf/duration.proto | 115 ++++++++++++++++++++ proto/google/protobuf/timestamp.proto | 144 ++++++++++++++++++++++++++ 2 files changed, 259 insertions(+) create mode 100644 proto/google/protobuf/duration.proto create mode 100644 proto/google/protobuf/timestamp.proto diff --git a/proto/google/protobuf/duration.proto b/proto/google/protobuf/duration.proto new file mode 100644 index 0000000..41f40c2 --- /dev/null +++ b/proto/google/protobuf/duration.proto @@ -0,0 +1,115 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/durationpb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DurationProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Duration represents a signed, fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". It is related to Timestamp in that the difference between +// two Timestamp values is a Duration and it can be added or subtracted +// from a Timestamp. Range is approximately +-10,000 years. +// +// # Examples +// +// Example 1: Compute Duration from two Timestamps in pseudo code. +// +// Timestamp start = ...; +// Timestamp end = ...; +// Duration duration = ...; +// +// duration.seconds = end.seconds - start.seconds; +// duration.nanos = end.nanos - start.nanos; +// +// if (duration.seconds < 0 && duration.nanos > 0) { +// duration.seconds += 1; +// duration.nanos -= 1000000000; +// } else if (duration.seconds > 0 && duration.nanos < 0) { +// duration.seconds -= 1; +// duration.nanos += 1000000000; +// } +// +// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +// +// Timestamp start = ...; +// Duration duration = ...; +// Timestamp end = ...; +// +// end.seconds = start.seconds + duration.seconds; +// end.nanos = start.nanos + duration.nanos; +// +// if (end.nanos < 0) { +// end.seconds -= 1; +// end.nanos += 1000000000; +// } else if (end.nanos >= 1000000000) { +// end.seconds += 1; +// end.nanos -= 1000000000; +// } +// +// Example 3: Compute Duration from datetime.timedelta in Python. +// +// td = datetime.timedelta(days=3, minutes=10) +// duration = Duration() +// duration.FromTimedelta(td) +// +// # JSON Mapping +// +// In JSON format, the Duration type is encoded as a string rather than an +// object, where the string ends in the suffix "s" (indicating seconds) and +// is preceded by the number of seconds, with nanoseconds expressed as +// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +// microsecond should be expressed in JSON format as "3.000001s". +// +message Duration { + // Signed seconds of the span of time. Must be from -315,576,000,000 + // to +315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + int64 seconds = 1; + + // Signed fractions of a second at nanosecond resolution of the span + // of time. Durations less than one second are represented with a 0 + // `seconds` field and a positive or negative `nanos` field. For durations + // of one second or more, a non-zero value for the `nanos` field must be + // of the same sign as the `seconds` field. Must be from -999,999,999 + // to +999,999,999 inclusive. + int32 nanos = 2; +} diff --git a/proto/google/protobuf/timestamp.proto b/proto/google/protobuf/timestamp.proto new file mode 100644 index 0000000..fd0bc07 --- /dev/null +++ b/proto/google/protobuf/timestamp.proto @@ -0,0 +1,144 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/timestamppb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TimestampProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// Example 5: Compute Timestamp from Java `Instant.now()`. +// +// Instant now = Instant.now(); +// +// Timestamp timestamp = +// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +// .setNanos(now.getNano()).build(); +// +// Example 6: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() +// ) to obtain a formatter capable of generating timestamps in this format. +// +message Timestamp { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + int32 nanos = 2; +} -- 2.45.2 From 559461b2c9a57ccc95c77112b3a7e779a372c5e9 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 13 Sep 2023 23:52:19 +0800 Subject: [PATCH 02/11] remove hard-coded record types --- .../registry/v1beta1/attributes.proto | 131 - .../vulcanize/registry/v1beta1/registry.proto | 21 +- scripts/create-proto-files.sh | 8 +- src/account.ts | 4 - src/messages/registry.ts | 6 +- src/proto/google/protobuf/any.ts | 101 - .../vulcanize/registry/v1beta1/attributes.ts | 2591 ----------------- .../vulcanize/registry/v1beta1/registry.ts | 26 +- src/types.ts | 19 +- yarn.lock | 1531 +++++----- 10 files changed, 801 insertions(+), 3637 deletions(-) delete mode 100644 proto/vulcanize/registry/v1beta1/attributes.proto delete mode 100644 src/proto/google/protobuf/any.ts delete mode 100644 src/proto/vulcanize/registry/v1beta1/attributes.ts diff --git a/proto/vulcanize/registry/v1beta1/attributes.proto b/proto/vulcanize/registry/v1beta1/attributes.proto deleted file mode 100644 index 0d23bd7..0000000 --- a/proto/vulcanize/registry/v1beta1/attributes.proto +++ /dev/null @@ -1,131 +0,0 @@ -syntax = "proto3"; -package vulcanize.registry.v1beta1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/cerc-io/laconicd/x/registry/types"; - -message ServiceProviderRegistration { - string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""]; - string laconic_id = 2 [(gogoproto.moretags) = "json:\"laconicId\" yaml:\"laconicId\""]; - X500 x500 = 3 [(gogoproto.moretags) = "json:\"x500\" yaml:\"x500\""]; - string type = 4 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string version = 6 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; -} - -message X500 { - string common_name = 1 [(gogoproto.moretags) = "json:\"commonName\" yaml:\"commonName\""]; - string organization_unit = 2 [(gogoproto.moretags) = "json:\"organizationUnit\" yaml:\"organizationUnit\""]; - string organization_name = 3 [(gogoproto.moretags) = "json:\"organizationName\" yaml:\"organizationName\""]; - string locality_name = 4 [(gogoproto.moretags) = "json:\"localityName\" yaml:\"localityName\""]; - string state_name = 5 [(gogoproto.moretags) = "json:\"stateName\" yaml:\"stateName\""]; - string country = 6 [(gogoproto.moretags) = "json:\"country\" yaml:\"country\""]; -} - -message WebsiteRegistrationRecord { - string url = 1 [(gogoproto.moretags) = "json:\"url\" yaml:\"url\""]; - string repo_registration_record_cid = 2 - [(gogoproto.moretags) = "json:\"repoRegistrationRecordCID\" yaml:\"repoRegistrationRecordCID\""]; - string build_artifact_cid = 3 [(gogoproto.moretags) = "json:\"buildArtifactCID\" yaml:\"buildArtifactCID\""]; - string tls_cert_cid = 4 [(gogoproto.moretags) = "json:\"TLSCertCID\" yaml:\"TLSCertCID\""]; - string type = 5 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string version = 6 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; -} - -message ApplicationRecord { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; - string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""]; - string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string homepage = 5 [(gogoproto.moretags) = "json:\"homepage\" yaml:\"homepage\""]; - string license = 6 [(gogoproto.moretags) = "json:\"license\" yaml:\"license\""]; - string author = 7 [(gogoproto.moretags) = "json:\"author\" yaml:\"author\""]; - repeated string repository = 8 [(gogoproto.moretags) = "json:\"repository\" yaml:\"repository\""]; - string repository_ref = 9 [(gogoproto.moretags) = "json:\"repositoryRef\" yaml:\"repositoryRef\""]; - string app_version = 10 [(gogoproto.moretags) = "json:\"appVersion\" yaml:\"appVersion\""]; - string app_type = 11 [(gogoproto.moretags) = "json:\"appType\" yaml:\"appType\""]; - string engines = 12 [(gogoproto.moretags) = "json:\"engines\" yaml:\"engines\""]; - repeated string os = 13 [(gogoproto.moretags) = "json:\"os\" yaml:\"os\""]; - repeated string cpu = 14 [(gogoproto.moretags) = "json:\"cpu\" yaml:\"cpu\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message ApplicationArtifact { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; - string description = 4 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""]; - string version = 5 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string application = 6 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; - string content_type = 7 [(gogoproto.moretags) = "json:\"contentType\" yaml:\"contentType\""]; - string os = 8 [(gogoproto.moretags) = "json:\"os\" yaml:\"os\""]; - string cpu = 9 [(gogoproto.moretags) = "json:\"cpu\" yaml:\"cpu\""]; - repeated string uri = 10 [(gogoproto.moretags) = "json:\"uri\" yaml:\"uri\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message DnsRecord { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; - string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string resource_type = 4 [(gogoproto.moretags) = "json:\"resourceType\" yaml:\"resourceType\""]; - string value = 5 [(gogoproto.moretags) = "json:\"value\" yaml:\"value\""]; - string request = 6 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message ApplicationDeploymentRequest { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; - string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string application = 4 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; - string dns = 5 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""]; - string config = 6 [(gogoproto.moretags) = "json:\"config\" yaml:\"config\""]; - string deployment = 7 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message ApplicationDeploymentRecord { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; - string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""]; - string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string application = 5 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; - string url = 6 [(gogoproto.moretags) = "json:\"url\" yaml:\"url\""]; - string dns = 7 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""]; - string request = 8 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message ApplicationDeploymentRemovalRequest { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""]; - string request = 4 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message ApplicationDeploymentRemovalRecord { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""]; - string request = 4 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} - -message GeneralRecord { - string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; - string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; - string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""]; - string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; - string category = 5 [(gogoproto.moretags) = "json:\"category\" yaml:\"category\""]; - string value = 6 [(gogoproto.moretags) = "json:\"value\" yaml:\"value\""]; - string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; - repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; -} diff --git a/proto/vulcanize/registry/v1beta1/registry.proto b/proto/vulcanize/registry/v1beta1/registry.proto index 2c0e280..035d6c2 100644 --- a/proto/vulcanize/registry/v1beta1/registry.proto +++ b/proto/vulcanize/registry/v1beta1/registry.proto @@ -5,7 +5,6 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "google/protobuf/any.proto"; option go_package = "github.com/cerc-io/laconicd/x/registry/types"; @@ -58,15 +57,15 @@ message Params { // Params defines the registry module records message Record { - string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""]; - string bond_id = 2 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""]; - string create_time = 3 [(gogoproto.moretags) = "json:\"createTime\" yaml:\"createTime\""]; - string expiry_time = 4 [(gogoproto.moretags) = "json:\"expiryTime\" yaml:\"expiryTime\""]; - bool deleted = 5; - repeated string owners = 6 [(gogoproto.moretags) = "json:\"owners\" yaml:\"owners\""]; - google.protobuf.Any attributes = 7 [(gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\""]; - repeated string names = 8 [(gogoproto.moretags) = "json:\"names\" yaml:\"names\""]; - string type = 9 [(gogoproto.moretags) = "json:\"types\" yaml:\"types\""]; + string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""]; + string bond_id = 2 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""]; + string create_time = 3 [(gogoproto.moretags) = "json:\"createTime\" yaml:\"createTime\""]; + string expiry_time = 4 [(gogoproto.moretags) = "json:\"expiryTime\" yaml:\"expiryTime\""]; + bool deleted = 5; + repeated string owners = 6 [(gogoproto.moretags) = "json:\"owners\" yaml:\"owners\""]; + bytes attributes = 7 [(gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\""]; + repeated string names = 8 [(gogoproto.moretags) = "json:\"names\" yaml:\"names\""]; + string type = 9 [(gogoproto.moretags) = "json:\"types\" yaml:\"types\""]; } // AuthorityEntry defines the registry module AuthorityEntries @@ -131,4 +130,4 @@ message BlockChangeSet { message AuctionBidInfo { string auction_id = 1 [(gogoproto.moretags) = "json:\"auctionID\" yaml:\"auctionID\""]; string bidder_address = 2 [(gogoproto.moretags) = "json:\"bidderAddress\" yaml:\"bidderAddress\""]; -} \ No newline at end of file +} diff --git a/scripts/create-proto-files.sh b/scripts/create-proto-files.sh index 962a851..ee3922e 100755 --- a/scripts/create-proto-files.sh +++ b/scripts/create-proto-files.sh @@ -6,7 +6,7 @@ DEST_TS=$(pwd)/src/proto/ mkdir -p $DEST_TS protoc \ ---plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \ ---ts_out=$DEST_TS \ ---proto_path=$I \ -$(find $(pwd)/proto/vulcanize -iname "*.proto") + --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \ + --ts_out=$DEST_TS \ + --proto_path=$I \ + $(find $(pwd)/proto/vulcanize -iname "*.proto") diff --git a/src/account.ts b/src/account.ts index f0e929e..070f4f2 100644 --- a/src/account.ts +++ b/src/account.ts @@ -166,10 +166,6 @@ export class Account { assert(message); const eipMessageDomain: any = message.eipToSign.domain; - if(message.eipToSign.message.msgs[0].value.payload!=null){ - message.eipToSign.message.msgs[0].value.payload.record.attributes.value=Array.from(message.eipToSign.message.msgs[0].value.payload.record.attributes.value) - } - const signature = signTypedData({ data: { types: message.eipToSign.types as MessageTypes, diff --git a/src/messages/registry.ts b/src/messages/registry.ts index 7ad4a32..4e42a33 100644 --- a/src/messages/registry.ts +++ b/src/messages/registry.ts @@ -44,11 +44,7 @@ const MSG_SET_RECORD_TYPES = { { name: 'create_time', type: 'string' }, { name: 'expiry_time', type: 'string' }, { name: 'deleted', type: 'bool' }, - { name: 'attributes', type: 'TypePayloadRecordAttributes' }, - ], - TypePayloadRecordAttributes: [ - { name: 'type_url', type: 'string' }, - { name: 'value', type: 'uint8[]' }, + { name: 'attributes', type: 'bytes' }, ], TypePayloadSignatures: [ { name: 'sig', type: 'string' }, diff --git a/src/proto/google/protobuf/any.ts b/src/proto/google/protobuf/any.ts deleted file mode 100644 index 002aebc..0000000 --- a/src/proto/google/protobuf/any.ts +++ /dev/null @@ -1,101 +0,0 @@ -// @ts-nocheck -/* eslint-disable */ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 4.25.1 - * source: google/protobuf/any.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as dependency_1 from "./../../gogoproto/gogo"; -import * as pb_1 from "google-protobuf"; -export namespace google.protobuf { - export class Any extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type_url?: string; - value?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type_url" in data && data.type_url != undefined) { - this.type_url = data.type_url; - } - if ("value" in data && data.value != undefined) { - this.value = data.value; - } - } - } - get type_url() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type_url(value: string) { - pb_1.Message.setField(this, 1, value); - } - get value() { - return pb_1.Message.getFieldWithDefault(this, 2, new Uint8Array(0)) as Uint8Array; - } - set value(value: Uint8Array) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - type_url?: string; - value?: Uint8Array; - }): Any { - const message = new Any({}); - if (data.type_url != null) { - message.type_url = data.type_url; - } - if (data.value != null) { - message.value = data.value; - } - return message; - } - toObject() { - const data: { - type_url?: string; - value?: Uint8Array; - } = {}; - if (this.type_url != null) { - data.type_url = this.type_url; - } - if (this.value != null) { - data.value = this.value; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type_url.length) - writer.writeString(1, this.type_url); - if (this.value.length) - writer.writeBytes(2, this.value); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Any { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Any(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type_url = reader.readString(); - break; - case 2: - message.value = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Any { - return Any.deserialize(bytes); - } - } -} diff --git a/src/proto/vulcanize/registry/v1beta1/attributes.ts b/src/proto/vulcanize/registry/v1beta1/attributes.ts deleted file mode 100644 index 9ff9f5e..0000000 --- a/src/proto/vulcanize/registry/v1beta1/attributes.ts +++ /dev/null @@ -1,2591 +0,0 @@ -// @ts-nocheck -/* eslint-disable */ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 4.25.1 - * source: vulcanize/registry/v1beta1/attributes.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as dependency_1 from "./../../../gogoproto/gogo"; -import * as pb_1 from "google-protobuf"; -export namespace vulcanize.registry.v1beta1 { - export class ServiceProviderRegistration extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - bond_id?: string; - laconic_id?: string; - x500?: X500; - type?: string; - version?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("bond_id" in data && data.bond_id != undefined) { - this.bond_id = data.bond_id; - } - if ("laconic_id" in data && data.laconic_id != undefined) { - this.laconic_id = data.laconic_id; - } - if ("x500" in data && data.x500 != undefined) { - this.x500 = data.x500; - } - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - } - } - get bond_id() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set bond_id(value: string) { - pb_1.Message.setField(this, 1, value); - } - get laconic_id() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set laconic_id(value: string) { - pb_1.Message.setField(this, 2, value); - } - get x500() { - return pb_1.Message.getWrapperField(this, X500, 3) as X500; - } - set x500(value: X500) { - pb_1.Message.setWrapperField(this, 3, value); - } - get has_x500() { - return pb_1.Message.getField(this, 3) != null; - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 4, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - bond_id?: string; - laconic_id?: string; - x500?: ReturnType; - type?: string; - version?: string; - }): ServiceProviderRegistration { - const message = new ServiceProviderRegistration({}); - if (data.bond_id != null) { - message.bond_id = data.bond_id; - } - if (data.laconic_id != null) { - message.laconic_id = data.laconic_id; - } - if (data.x500 != null) { - message.x500 = X500.fromObject(data.x500); - } - if (data.type != null) { - message.type = data.type; - } - if (data.version != null) { - message.version = data.version; - } - return message; - } - toObject() { - const data: { - bond_id?: string; - laconic_id?: string; - x500?: ReturnType; - type?: string; - version?: string; - } = {}; - if (this.bond_id != null) { - data.bond_id = this.bond_id; - } - if (this.laconic_id != null) { - data.laconic_id = this.laconic_id; - } - if (this.x500 != null) { - data.x500 = this.x500.toObject(); - } - if (this.type != null) { - data.type = this.type; - } - if (this.version != null) { - data.version = this.version; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.bond_id.length) - writer.writeString(1, this.bond_id); - if (this.laconic_id.length) - writer.writeString(2, this.laconic_id); - if (this.has_x500) - writer.writeMessage(3, this.x500, () => this.x500.serialize(writer)); - if (this.type.length) - writer.writeString(4, this.type); - if (this.version.length) - writer.writeString(6, this.version); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ServiceProviderRegistration { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ServiceProviderRegistration(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.bond_id = reader.readString(); - break; - case 2: - message.laconic_id = reader.readString(); - break; - case 3: - reader.readMessage(message.x500, () => message.x500 = X500.deserialize(reader)); - break; - case 4: - message.type = reader.readString(); - break; - case 6: - message.version = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ServiceProviderRegistration { - return ServiceProviderRegistration.deserialize(bytes); - } - } - export class X500 extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - common_name?: string; - organization_unit?: string; - organization_name?: string; - locality_name?: string; - state_name?: string; - country?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("common_name" in data && data.common_name != undefined) { - this.common_name = data.common_name; - } - if ("organization_unit" in data && data.organization_unit != undefined) { - this.organization_unit = data.organization_unit; - } - if ("organization_name" in data && data.organization_name != undefined) { - this.organization_name = data.organization_name; - } - if ("locality_name" in data && data.locality_name != undefined) { - this.locality_name = data.locality_name; - } - if ("state_name" in data && data.state_name != undefined) { - this.state_name = data.state_name; - } - if ("country" in data && data.country != undefined) { - this.country = data.country; - } - } - } - get common_name() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set common_name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get organization_unit() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set organization_unit(value: string) { - pb_1.Message.setField(this, 2, value); - } - get organization_name() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set organization_name(value: string) { - pb_1.Message.setField(this, 3, value); - } - get locality_name() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set locality_name(value: string) { - pb_1.Message.setField(this, 4, value); - } - get state_name() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set state_name(value: string) { - pb_1.Message.setField(this, 5, value); - } - get country() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set country(value: string) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - common_name?: string; - organization_unit?: string; - organization_name?: string; - locality_name?: string; - state_name?: string; - country?: string; - }): X500 { - const message = new X500({}); - if (data.common_name != null) { - message.common_name = data.common_name; - } - if (data.organization_unit != null) { - message.organization_unit = data.organization_unit; - } - if (data.organization_name != null) { - message.organization_name = data.organization_name; - } - if (data.locality_name != null) { - message.locality_name = data.locality_name; - } - if (data.state_name != null) { - message.state_name = data.state_name; - } - if (data.country != null) { - message.country = data.country; - } - return message; - } - toObject() { - const data: { - common_name?: string; - organization_unit?: string; - organization_name?: string; - locality_name?: string; - state_name?: string; - country?: string; - } = {}; - if (this.common_name != null) { - data.common_name = this.common_name; - } - if (this.organization_unit != null) { - data.organization_unit = this.organization_unit; - } - if (this.organization_name != null) { - data.organization_name = this.organization_name; - } - if (this.locality_name != null) { - data.locality_name = this.locality_name; - } - if (this.state_name != null) { - data.state_name = this.state_name; - } - if (this.country != null) { - data.country = this.country; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.common_name.length) - writer.writeString(1, this.common_name); - if (this.organization_unit.length) - writer.writeString(2, this.organization_unit); - if (this.organization_name.length) - writer.writeString(3, this.organization_name); - if (this.locality_name.length) - writer.writeString(4, this.locality_name); - if (this.state_name.length) - writer.writeString(5, this.state_name); - if (this.country.length) - writer.writeString(6, this.country); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): X500 { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new X500(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.common_name = reader.readString(); - break; - case 2: - message.organization_unit = reader.readString(); - break; - case 3: - message.organization_name = reader.readString(); - break; - case 4: - message.locality_name = reader.readString(); - break; - case 5: - message.state_name = reader.readString(); - break; - case 6: - message.country = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): X500 { - return X500.deserialize(bytes); - } - } - export class WebsiteRegistrationRecord extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - url?: string; - repo_registration_record_cid?: string; - build_artifact_cid?: string; - tls_cert_cid?: string; - type?: string; - version?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("url" in data && data.url != undefined) { - this.url = data.url; - } - if ("repo_registration_record_cid" in data && data.repo_registration_record_cid != undefined) { - this.repo_registration_record_cid = data.repo_registration_record_cid; - } - if ("build_artifact_cid" in data && data.build_artifact_cid != undefined) { - this.build_artifact_cid = data.build_artifact_cid; - } - if ("tls_cert_cid" in data && data.tls_cert_cid != undefined) { - this.tls_cert_cid = data.tls_cert_cid; - } - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - } - } - get url() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set url(value: string) { - pb_1.Message.setField(this, 1, value); - } - get repo_registration_record_cid() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set repo_registration_record_cid(value: string) { - pb_1.Message.setField(this, 2, value); - } - get build_artifact_cid() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set build_artifact_cid(value: string) { - pb_1.Message.setField(this, 3, value); - } - get tls_cert_cid() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set tls_cert_cid(value: string) { - pb_1.Message.setField(this, 4, value); - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 5, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - url?: string; - repo_registration_record_cid?: string; - build_artifact_cid?: string; - tls_cert_cid?: string; - type?: string; - version?: string; - }): WebsiteRegistrationRecord { - const message = new WebsiteRegistrationRecord({}); - if (data.url != null) { - message.url = data.url; - } - if (data.repo_registration_record_cid != null) { - message.repo_registration_record_cid = data.repo_registration_record_cid; - } - if (data.build_artifact_cid != null) { - message.build_artifact_cid = data.build_artifact_cid; - } - if (data.tls_cert_cid != null) { - message.tls_cert_cid = data.tls_cert_cid; - } - if (data.type != null) { - message.type = data.type; - } - if (data.version != null) { - message.version = data.version; - } - return message; - } - toObject() { - const data: { - url?: string; - repo_registration_record_cid?: string; - build_artifact_cid?: string; - tls_cert_cid?: string; - type?: string; - version?: string; - } = {}; - if (this.url != null) { - data.url = this.url; - } - if (this.repo_registration_record_cid != null) { - data.repo_registration_record_cid = this.repo_registration_record_cid; - } - if (this.build_artifact_cid != null) { - data.build_artifact_cid = this.build_artifact_cid; - } - if (this.tls_cert_cid != null) { - data.tls_cert_cid = this.tls_cert_cid; - } - if (this.type != null) { - data.type = this.type; - } - if (this.version != null) { - data.version = this.version; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.url.length) - writer.writeString(1, this.url); - if (this.repo_registration_record_cid.length) - writer.writeString(2, this.repo_registration_record_cid); - if (this.build_artifact_cid.length) - writer.writeString(3, this.build_artifact_cid); - if (this.tls_cert_cid.length) - writer.writeString(4, this.tls_cert_cid); - if (this.type.length) - writer.writeString(5, this.type); - if (this.version.length) - writer.writeString(6, this.version); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WebsiteRegistrationRecord { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WebsiteRegistrationRecord(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.url = reader.readString(); - break; - case 2: - message.repo_registration_record_cid = reader.readString(); - break; - case 3: - message.build_artifact_cid = reader.readString(); - break; - case 4: - message.tls_cert_cid = reader.readString(); - break; - case 5: - message.type = reader.readString(); - break; - case 6: - message.version = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WebsiteRegistrationRecord { - return WebsiteRegistrationRecord.deserialize(bytes); - } - } - export class ApplicationRecord extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - name?: string; - description?: string; - version?: string; - homepage?: string; - license?: string; - author?: string; - repository?: string[]; - repository_ref?: string; - app_version?: string; - app_type?: string; - engines?: string; - os?: string[]; - cpu?: string[]; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8, 13, 14, 21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("description" in data && data.description != undefined) { - this.description = data.description; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("homepage" in data && data.homepage != undefined) { - this.homepage = data.homepage; - } - if ("license" in data && data.license != undefined) { - this.license = data.license; - } - if ("author" in data && data.author != undefined) { - this.author = data.author; - } - if ("repository" in data && data.repository != undefined) { - this.repository = data.repository; - } - if ("repository_ref" in data && data.repository_ref != undefined) { - this.repository_ref = data.repository_ref; - } - if ("app_version" in data && data.app_version != undefined) { - this.app_version = data.app_version; - } - if ("app_type" in data && data.app_type != undefined) { - this.app_type = data.app_type; - } - if ("engines" in data && data.engines != undefined) { - this.engines = data.engines; - } - if ("os" in data && data.os != undefined) { - this.os = data.os; - } - if ("cpu" in data && data.cpu != undefined) { - this.cpu = data.cpu; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get description() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set description(value: string) { - pb_1.Message.setField(this, 3, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 4, value); - } - get homepage() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set homepage(value: string) { - pb_1.Message.setField(this, 5, value); - } - get license() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set license(value: string) { - pb_1.Message.setField(this, 6, value); - } - get author() { - return pb_1.Message.getFieldWithDefault(this, 7, "") as string; - } - set author(value: string) { - pb_1.Message.setField(this, 7, value); - } - get repository() { - return pb_1.Message.getFieldWithDefault(this, 8, []) as string[]; - } - set repository(value: string[]) { - pb_1.Message.setField(this, 8, value); - } - get repository_ref() { - return pb_1.Message.getFieldWithDefault(this, 9, "") as string; - } - set repository_ref(value: string) { - pb_1.Message.setField(this, 9, value); - } - get app_version() { - return pb_1.Message.getFieldWithDefault(this, 10, "") as string; - } - set app_version(value: string) { - pb_1.Message.setField(this, 10, value); - } - get app_type() { - return pb_1.Message.getFieldWithDefault(this, 11, "") as string; - } - set app_type(value: string) { - pb_1.Message.setField(this, 11, value); - } - get engines() { - return pb_1.Message.getFieldWithDefault(this, 12, "") as string; - } - set engines(value: string) { - pb_1.Message.setField(this, 12, value); - } - get os() { - return pb_1.Message.getFieldWithDefault(this, 13, []) as string[]; - } - set os(value: string[]) { - pb_1.Message.setField(this, 13, value); - } - get cpu() { - return pb_1.Message.getFieldWithDefault(this, 14, []) as string[]; - } - set cpu(value: string[]) { - pb_1.Message.setField(this, 14, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - name?: string; - description?: string; - version?: string; - homepage?: string; - license?: string; - author?: string; - repository?: string[]; - repository_ref?: string; - app_version?: string; - app_type?: string; - engines?: string; - os?: string[]; - cpu?: string[]; - meta?: string; - tags?: string[]; - }): ApplicationRecord { - const message = new ApplicationRecord({}); - if (data.type != null) { - message.type = data.type; - } - if (data.name != null) { - message.name = data.name; - } - if (data.description != null) { - message.description = data.description; - } - if (data.version != null) { - message.version = data.version; - } - if (data.homepage != null) { - message.homepage = data.homepage; - } - if (data.license != null) { - message.license = data.license; - } - if (data.author != null) { - message.author = data.author; - } - if (data.repository != null) { - message.repository = data.repository; - } - if (data.repository_ref != null) { - message.repository_ref = data.repository_ref; - } - if (data.app_version != null) { - message.app_version = data.app_version; - } - if (data.app_type != null) { - message.app_type = data.app_type; - } - if (data.engines != null) { - message.engines = data.engines; - } - if (data.os != null) { - message.os = data.os; - } - if (data.cpu != null) { - message.cpu = data.cpu; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - name?: string; - description?: string; - version?: string; - homepage?: string; - license?: string; - author?: string; - repository?: string[]; - repository_ref?: string; - app_version?: string; - app_type?: string; - engines?: string; - os?: string[]; - cpu?: string[]; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.name != null) { - data.name = this.name; - } - if (this.description != null) { - data.description = this.description; - } - if (this.version != null) { - data.version = this.version; - } - if (this.homepage != null) { - data.homepage = this.homepage; - } - if (this.license != null) { - data.license = this.license; - } - if (this.author != null) { - data.author = this.author; - } - if (this.repository != null) { - data.repository = this.repository; - } - if (this.repository_ref != null) { - data.repository_ref = this.repository_ref; - } - if (this.app_version != null) { - data.app_version = this.app_version; - } - if (this.app_type != null) { - data.app_type = this.app_type; - } - if (this.engines != null) { - data.engines = this.engines; - } - if (this.os != null) { - data.os = this.os; - } - if (this.cpu != null) { - data.cpu = this.cpu; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.name.length) - writer.writeString(2, this.name); - if (this.description.length) - writer.writeString(3, this.description); - if (this.version.length) - writer.writeString(4, this.version); - if (this.homepage.length) - writer.writeString(5, this.homepage); - if (this.license.length) - writer.writeString(6, this.license); - if (this.author.length) - writer.writeString(7, this.author); - if (this.repository.length) - writer.writeRepeatedString(8, this.repository); - if (this.repository_ref.length) - writer.writeString(9, this.repository_ref); - if (this.app_version.length) - writer.writeString(10, this.app_version); - if (this.app_type.length) - writer.writeString(11, this.app_type); - if (this.engines.length) - writer.writeString(12, this.engines); - if (this.os.length) - writer.writeRepeatedString(13, this.os); - if (this.cpu.length) - writer.writeRepeatedString(14, this.cpu); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplicationRecord { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplicationRecord(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.name = reader.readString(); - break; - case 3: - message.description = reader.readString(); - break; - case 4: - message.version = reader.readString(); - break; - case 5: - message.homepage = reader.readString(); - break; - case 6: - message.license = reader.readString(); - break; - case 7: - message.author = reader.readString(); - break; - case 8: - pb_1.Message.addToRepeatedField(message, 8, reader.readString()); - break; - case 9: - message.repository_ref = reader.readString(); - break; - case 10: - message.app_version = reader.readString(); - break; - case 11: - message.app_type = reader.readString(); - break; - case 12: - message.engines = reader.readString(); - break; - case 13: - pb_1.Message.addToRepeatedField(message, 13, reader.readString()); - break; - case 14: - pb_1.Message.addToRepeatedField(message, 14, reader.readString()); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ApplicationRecord { - return ApplicationRecord.deserialize(bytes); - } - } - export class ApplicationArtifact extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - name?: string; - description?: string; - version?: string; - application?: string; - content_type?: string; - os?: string; - cpu?: string; - uri?: string[]; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("description" in data && data.description != undefined) { - this.description = data.description; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("application" in data && data.application != undefined) { - this.application = data.application; - } - if ("content_type" in data && data.content_type != undefined) { - this.content_type = data.content_type; - } - if ("os" in data && data.os != undefined) { - this.os = data.os; - } - if ("cpu" in data && data.cpu != undefined) { - this.cpu = data.cpu; - } - if ("uri" in data && data.uri != undefined) { - this.uri = data.uri; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get description() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set description(value: string) { - pb_1.Message.setField(this, 4, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 5, value); - } - get application() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set application(value: string) { - pb_1.Message.setField(this, 6, value); - } - get content_type() { - return pb_1.Message.getFieldWithDefault(this, 7, "") as string; - } - set content_type(value: string) { - pb_1.Message.setField(this, 7, value); - } - get os() { - return pb_1.Message.getFieldWithDefault(this, 8, "") as string; - } - set os(value: string) { - pb_1.Message.setField(this, 8, value); - } - get cpu() { - return pb_1.Message.getFieldWithDefault(this, 9, "") as string; - } - set cpu(value: string) { - pb_1.Message.setField(this, 9, value); - } - get uri() { - return pb_1.Message.getFieldWithDefault(this, 10, []) as string[]; - } - set uri(value: string[]) { - pb_1.Message.setField(this, 10, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - name?: string; - description?: string; - version?: string; - application?: string; - content_type?: string; - os?: string; - cpu?: string; - uri?: string[]; - meta?: string; - tags?: string[]; - }): ApplicationArtifact { - const message = new ApplicationArtifact({}); - if (data.type != null) { - message.type = data.type; - } - if (data.name != null) { - message.name = data.name; - } - if (data.description != null) { - message.description = data.description; - } - if (data.version != null) { - message.version = data.version; - } - if (data.application != null) { - message.application = data.application; - } - if (data.content_type != null) { - message.content_type = data.content_type; - } - if (data.os != null) { - message.os = data.os; - } - if (data.cpu != null) { - message.cpu = data.cpu; - } - if (data.uri != null) { - message.uri = data.uri; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - name?: string; - description?: string; - version?: string; - application?: string; - content_type?: string; - os?: string; - cpu?: string; - uri?: string[]; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.name != null) { - data.name = this.name; - } - if (this.description != null) { - data.description = this.description; - } - if (this.version != null) { - data.version = this.version; - } - if (this.application != null) { - data.application = this.application; - } - if (this.content_type != null) { - data.content_type = this.content_type; - } - if (this.os != null) { - data.os = this.os; - } - if (this.cpu != null) { - data.cpu = this.cpu; - } - if (this.uri != null) { - data.uri = this.uri; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.name.length) - writer.writeString(2, this.name); - if (this.description.length) - writer.writeString(4, this.description); - if (this.version.length) - writer.writeString(5, this.version); - if (this.application.length) - writer.writeString(6, this.application); - if (this.content_type.length) - writer.writeString(7, this.content_type); - if (this.os.length) - writer.writeString(8, this.os); - if (this.cpu.length) - writer.writeString(9, this.cpu); - if (this.uri.length) - writer.writeRepeatedString(10, this.uri); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplicationArtifact { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplicationArtifact(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.name = reader.readString(); - break; - case 4: - message.description = reader.readString(); - break; - case 5: - message.version = reader.readString(); - break; - case 6: - message.application = reader.readString(); - break; - case 7: - message.content_type = reader.readString(); - break; - case 8: - message.os = reader.readString(); - break; - case 9: - message.cpu = reader.readString(); - break; - case 10: - pb_1.Message.addToRepeatedField(message, 10, reader.readString()); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ApplicationArtifact { - return ApplicationArtifact.deserialize(bytes); - } - } - export class DnsRecord extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - name?: string; - version?: string; - resource_type?: string; - value?: string; - request?: string; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("resource_type" in data && data.resource_type != undefined) { - this.resource_type = data.resource_type; - } - if ("value" in data && data.value != undefined) { - this.value = data.value; - } - if ("request" in data && data.request != undefined) { - this.request = data.request; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 3, value); - } - get resource_type() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set resource_type(value: string) { - pb_1.Message.setField(this, 4, value); - } - get value() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set value(value: string) { - pb_1.Message.setField(this, 5, value); - } - get request() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set request(value: string) { - pb_1.Message.setField(this, 6, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - name?: string; - version?: string; - resource_type?: string; - value?: string; - request?: string; - meta?: string; - tags?: string[]; - }): DnsRecord { - const message = new DnsRecord({}); - if (data.type != null) { - message.type = data.type; - } - if (data.name != null) { - message.name = data.name; - } - if (data.version != null) { - message.version = data.version; - } - if (data.resource_type != null) { - message.resource_type = data.resource_type; - } - if (data.value != null) { - message.value = data.value; - } - if (data.request != null) { - message.request = data.request; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - name?: string; - version?: string; - resource_type?: string; - value?: string; - request?: string; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.name != null) { - data.name = this.name; - } - if (this.version != null) { - data.version = this.version; - } - if (this.resource_type != null) { - data.resource_type = this.resource_type; - } - if (this.value != null) { - data.value = this.value; - } - if (this.request != null) { - data.request = this.request; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.name.length) - writer.writeString(2, this.name); - if (this.version.length) - writer.writeString(3, this.version); - if (this.resource_type.length) - writer.writeString(4, this.resource_type); - if (this.value.length) - writer.writeString(5, this.value); - if (this.request.length) - writer.writeString(6, this.request); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DnsRecord { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DnsRecord(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.name = reader.readString(); - break; - case 3: - message.version = reader.readString(); - break; - case 4: - message.resource_type = reader.readString(); - break; - case 5: - message.value = reader.readString(); - break; - case 6: - message.request = reader.readString(); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DnsRecord { - return DnsRecord.deserialize(bytes); - } - } - export class ApplicationDeploymentRequest extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - name?: string; - version?: string; - application?: string; - dns?: string; - config?: string; - deployment?: string; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("application" in data && data.application != undefined) { - this.application = data.application; - } - if ("dns" in data && data.dns != undefined) { - this.dns = data.dns; - } - if ("config" in data && data.config != undefined) { - this.config = data.config; - } - if ("deployment" in data && data.deployment != undefined) { - this.deployment = data.deployment; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 3, value); - } - get application() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set application(value: string) { - pb_1.Message.setField(this, 4, value); - } - get dns() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set dns(value: string) { - pb_1.Message.setField(this, 5, value); - } - get config() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set config(value: string) { - pb_1.Message.setField(this, 6, value); - } - get deployment() { - return pb_1.Message.getFieldWithDefault(this, 7, "") as string; - } - set deployment(value: string) { - pb_1.Message.setField(this, 7, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - name?: string; - version?: string; - application?: string; - dns?: string; - config?: string; - deployment?: string; - meta?: string; - tags?: string[]; - }): ApplicationDeploymentRequest { - const message = new ApplicationDeploymentRequest({}); - if (data.type != null) { - message.type = data.type; - } - if (data.name != null) { - message.name = data.name; - } - if (data.version != null) { - message.version = data.version; - } - if (data.application != null) { - message.application = data.application; - } - if (data.dns != null) { - message.dns = data.dns; - } - if (data.config != null) { - message.config = data.config; - } - if (data.deployment != null) { - message.deployment = data.deployment; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - name?: string; - version?: string; - application?: string; - dns?: string; - config?: string; - deployment?: string; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.name != null) { - data.name = this.name; - } - if (this.version != null) { - data.version = this.version; - } - if (this.application != null) { - data.application = this.application; - } - if (this.dns != null) { - data.dns = this.dns; - } - if (this.config != null) { - data.config = this.config; - } - if (this.deployment != null) { - data.deployment = this.deployment; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.name.length) - writer.writeString(2, this.name); - if (this.version.length) - writer.writeString(3, this.version); - if (this.application.length) - writer.writeString(4, this.application); - if (this.dns.length) - writer.writeString(5, this.dns); - if (this.config.length) - writer.writeString(6, this.config); - if (this.deployment.length) - writer.writeString(7, this.deployment); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplicationDeploymentRequest { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplicationDeploymentRequest(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.name = reader.readString(); - break; - case 3: - message.version = reader.readString(); - break; - case 4: - message.application = reader.readString(); - break; - case 5: - message.dns = reader.readString(); - break; - case 6: - message.config = reader.readString(); - break; - case 7: - message.deployment = reader.readString(); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ApplicationDeploymentRequest { - return ApplicationDeploymentRequest.deserialize(bytes); - } - } - export class ApplicationDeploymentRecord extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - name?: string; - description?: string; - version?: string; - application?: string; - url?: string; - dns?: string; - request?: string; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("description" in data && data.description != undefined) { - this.description = data.description; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("application" in data && data.application != undefined) { - this.application = data.application; - } - if ("url" in data && data.url != undefined) { - this.url = data.url; - } - if ("dns" in data && data.dns != undefined) { - this.dns = data.dns; - } - if ("request" in data && data.request != undefined) { - this.request = data.request; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get description() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set description(value: string) { - pb_1.Message.setField(this, 3, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 4, value); - } - get application() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set application(value: string) { - pb_1.Message.setField(this, 5, value); - } - get url() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set url(value: string) { - pb_1.Message.setField(this, 6, value); - } - get dns() { - return pb_1.Message.getFieldWithDefault(this, 7, "") as string; - } - set dns(value: string) { - pb_1.Message.setField(this, 7, value); - } - get request() { - return pb_1.Message.getFieldWithDefault(this, 8, "") as string; - } - set request(value: string) { - pb_1.Message.setField(this, 8, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - name?: string; - description?: string; - version?: string; - application?: string; - url?: string; - dns?: string; - request?: string; - meta?: string; - tags?: string[]; - }): ApplicationDeploymentRecord { - const message = new ApplicationDeploymentRecord({}); - if (data.type != null) { - message.type = data.type; - } - if (data.name != null) { - message.name = data.name; - } - if (data.description != null) { - message.description = data.description; - } - if (data.version != null) { - message.version = data.version; - } - if (data.application != null) { - message.application = data.application; - } - if (data.url != null) { - message.url = data.url; - } - if (data.dns != null) { - message.dns = data.dns; - } - if (data.request != null) { - message.request = data.request; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - name?: string; - description?: string; - version?: string; - application?: string; - url?: string; - dns?: string; - request?: string; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.name != null) { - data.name = this.name; - } - if (this.description != null) { - data.description = this.description; - } - if (this.version != null) { - data.version = this.version; - } - if (this.application != null) { - data.application = this.application; - } - if (this.url != null) { - data.url = this.url; - } - if (this.dns != null) { - data.dns = this.dns; - } - if (this.request != null) { - data.request = this.request; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.name.length) - writer.writeString(2, this.name); - if (this.description.length) - writer.writeString(3, this.description); - if (this.version.length) - writer.writeString(4, this.version); - if (this.application.length) - writer.writeString(5, this.application); - if (this.url.length) - writer.writeString(6, this.url); - if (this.dns.length) - writer.writeString(7, this.dns); - if (this.request.length) - writer.writeString(8, this.request); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplicationDeploymentRecord { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplicationDeploymentRecord(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.name = reader.readString(); - break; - case 3: - message.description = reader.readString(); - break; - case 4: - message.version = reader.readString(); - break; - case 5: - message.application = reader.readString(); - break; - case 6: - message.url = reader.readString(); - break; - case 7: - message.dns = reader.readString(); - break; - case 8: - message.request = reader.readString(); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ApplicationDeploymentRecord { - return ApplicationDeploymentRecord.deserialize(bytes); - } - } - export class ApplicationDeploymentRemovalRequest extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - version?: string; - deployment?: string; - request?: string; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("deployment" in data && data.deployment != undefined) { - this.deployment = data.deployment; - } - if ("request" in data && data.request != undefined) { - this.request = data.request; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 2, value); - } - get deployment() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set deployment(value: string) { - pb_1.Message.setField(this, 3, value); - } - get request() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set request(value: string) { - pb_1.Message.setField(this, 4, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - version?: string; - deployment?: string; - request?: string; - meta?: string; - tags?: string[]; - }): ApplicationDeploymentRemovalRequest { - const message = new ApplicationDeploymentRemovalRequest({}); - if (data.type != null) { - message.type = data.type; - } - if (data.version != null) { - message.version = data.version; - } - if (data.deployment != null) { - message.deployment = data.deployment; - } - if (data.request != null) { - message.request = data.request; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - version?: string; - deployment?: string; - request?: string; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.version != null) { - data.version = this.version; - } - if (this.deployment != null) { - data.deployment = this.deployment; - } - if (this.request != null) { - data.request = this.request; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.version.length) - writer.writeString(2, this.version); - if (this.deployment.length) - writer.writeString(3, this.deployment); - if (this.request.length) - writer.writeString(4, this.request); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplicationDeploymentRemovalRequest { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplicationDeploymentRemovalRequest(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.version = reader.readString(); - break; - case 3: - message.deployment = reader.readString(); - break; - case 4: - message.request = reader.readString(); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ApplicationDeploymentRemovalRequest { - return ApplicationDeploymentRemovalRequest.deserialize(bytes); - } - } - export class ApplicationDeploymentRemovalRecord extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - version?: string; - deployment?: string; - request?: string; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("deployment" in data && data.deployment != undefined) { - this.deployment = data.deployment; - } - if ("request" in data && data.request != undefined) { - this.request = data.request; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 2, value); - } - get deployment() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set deployment(value: string) { - pb_1.Message.setField(this, 3, value); - } - get request() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set request(value: string) { - pb_1.Message.setField(this, 4, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - version?: string; - deployment?: string; - request?: string; - meta?: string; - tags?: string[]; - }): ApplicationDeploymentRemovalRecord { - const message = new ApplicationDeploymentRemovalRecord({}); - if (data.type != null) { - message.type = data.type; - } - if (data.version != null) { - message.version = data.version; - } - if (data.deployment != null) { - message.deployment = data.deployment; - } - if (data.request != null) { - message.request = data.request; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - version?: string; - deployment?: string; - request?: string; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.version != null) { - data.version = this.version; - } - if (this.deployment != null) { - data.deployment = this.deployment; - } - if (this.request != null) { - data.request = this.request; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.version.length) - writer.writeString(2, this.version); - if (this.deployment.length) - writer.writeString(3, this.deployment); - if (this.request.length) - writer.writeString(4, this.request); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplicationDeploymentRemovalRecord { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplicationDeploymentRemovalRecord(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.version = reader.readString(); - break; - case 3: - message.deployment = reader.readString(); - break; - case 4: - message.request = reader.readString(); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ApplicationDeploymentRemovalRecord { - return ApplicationDeploymentRemovalRecord.deserialize(bytes); - } - } - export class GeneralRecord extends pb_1.Message { - #one_of_decls: number[][] = []; - constructor(data?: any[] | { - type?: string; - name?: string; - description?: string; - version?: string; - category?: string; - value?: string; - meta?: string; - tags?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); - if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; - } - if ("name" in data && data.name != undefined) { - this.name = data.name; - } - if ("description" in data && data.description != undefined) { - this.description = data.description; - } - if ("version" in data && data.version != undefined) { - this.version = data.version; - } - if ("category" in data && data.category != undefined) { - this.category = data.category; - } - if ("value" in data && data.value != undefined) { - this.value = data.value; - } - if ("meta" in data && data.meta != undefined) { - this.meta = data.meta; - } - if ("tags" in data && data.tags != undefined) { - this.tags = data.tags; - } - } - } - get type() { - return pb_1.Message.getFieldWithDefault(this, 1, "") as string; - } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get name() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } - set name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get description() { - return pb_1.Message.getFieldWithDefault(this, 3, "") as string; - } - set description(value: string) { - pb_1.Message.setField(this, 3, value); - } - get version() { - return pb_1.Message.getFieldWithDefault(this, 4, "") as string; - } - set version(value: string) { - pb_1.Message.setField(this, 4, value); - } - get category() { - return pb_1.Message.getFieldWithDefault(this, 5, "") as string; - } - set category(value: string) { - pb_1.Message.setField(this, 5, value); - } - get value() { - return pb_1.Message.getFieldWithDefault(this, 6, "") as string; - } - set value(value: string) { - pb_1.Message.setField(this, 6, value); - } - get meta() { - return pb_1.Message.getFieldWithDefault(this, 20, "") as string; - } - set meta(value: string) { - pb_1.Message.setField(this, 20, value); - } - get tags() { - return pb_1.Message.getFieldWithDefault(this, 21, []) as string[]; - } - set tags(value: string[]) { - pb_1.Message.setField(this, 21, value); - } - static fromObject(data: { - type?: string; - name?: string; - description?: string; - version?: string; - category?: string; - value?: string; - meta?: string; - tags?: string[]; - }): GeneralRecord { - const message = new GeneralRecord({}); - if (data.type != null) { - message.type = data.type; - } - if (data.name != null) { - message.name = data.name; - } - if (data.description != null) { - message.description = data.description; - } - if (data.version != null) { - message.version = data.version; - } - if (data.category != null) { - message.category = data.category; - } - if (data.value != null) { - message.value = data.value; - } - if (data.meta != null) { - message.meta = data.meta; - } - if (data.tags != null) { - message.tags = data.tags; - } - return message; - } - toObject() { - const data: { - type?: string; - name?: string; - description?: string; - version?: string; - category?: string; - value?: string; - meta?: string; - tags?: string[]; - } = {}; - if (this.type != null) { - data.type = this.type; - } - if (this.name != null) { - data.name = this.name; - } - if (this.description != null) { - data.description = this.description; - } - if (this.version != null) { - data.version = this.version; - } - if (this.category != null) { - data.category = this.category; - } - if (this.value != null) { - data.value = this.value; - } - if (this.meta != null) { - data.meta = this.meta; - } - if (this.tags != null) { - data.tags = this.tags; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.name.length) - writer.writeString(2, this.name); - if (this.description.length) - writer.writeString(3, this.description); - if (this.version.length) - writer.writeString(4, this.version); - if (this.category.length) - writer.writeString(5, this.category); - if (this.value.length) - writer.writeString(6, this.value); - if (this.meta.length) - writer.writeString(20, this.meta); - if (this.tags.length) - writer.writeRepeatedString(21, this.tags); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GeneralRecord { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GeneralRecord(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.type = reader.readString(); - break; - case 2: - message.name = reader.readString(); - break; - case 3: - message.description = reader.readString(); - break; - case 4: - message.version = reader.readString(); - break; - case 5: - message.category = reader.readString(); - break; - case 6: - message.value = reader.readString(); - break; - case 20: - message.meta = reader.readString(); - break; - case 21: - pb_1.Message.addToRepeatedField(message, 21, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): GeneralRecord { - return GeneralRecord.deserialize(bytes); - } - } -} diff --git a/src/proto/vulcanize/registry/v1beta1/registry.ts b/src/proto/vulcanize/registry/v1beta1/registry.ts index e7b4e22..5b793be 100644 --- a/src/proto/vulcanize/registry/v1beta1/registry.ts +++ b/src/proto/vulcanize/registry/v1beta1/registry.ts @@ -9,7 +9,6 @@ import * as dependency_1 from "./../../../google/protobuf/duration"; import * as dependency_2 from "./../../../google/protobuf/timestamp"; import * as dependency_3 from "./../../../gogoproto/gogo"; import * as dependency_4 from "./../../../cosmos/base/v1beta1/coin"; -import * as dependency_5 from "./../../../google/protobuf/any"; import * as pb_1 from "google-protobuf"; export namespace vulcanize.registry.v1beta1 { export class Params extends pb_1.Message { @@ -348,7 +347,7 @@ export namespace vulcanize.registry.v1beta1 { expiry_time?: string; deleted?: boolean; owners?: string[]; - attributes?: dependency_5.google.protobuf.Any; + attributes?: Uint8Array; names?: string[]; type?: string; }) { @@ -421,13 +420,10 @@ export namespace vulcanize.registry.v1beta1 { pb_1.Message.setField(this, 6, value); } get attributes() { - return pb_1.Message.getWrapperField(this, dependency_5.google.protobuf.Any, 7) as dependency_5.google.protobuf.Any; + return pb_1.Message.getFieldWithDefault(this, 7, new Uint8Array(0)) as Uint8Array; } - set attributes(value: dependency_5.google.protobuf.Any) { - pb_1.Message.setWrapperField(this, 7, value); - } - get has_attributes() { - return pb_1.Message.getField(this, 7) != null; + set attributes(value: Uint8Array) { + pb_1.Message.setField(this, 7, value); } get names() { return pb_1.Message.getFieldWithDefault(this, 8, []) as string[]; @@ -448,7 +444,7 @@ export namespace vulcanize.registry.v1beta1 { expiry_time?: string; deleted?: boolean; owners?: string[]; - attributes?: ReturnType; + attributes?: Uint8Array; names?: string[]; type?: string; }): Record { @@ -472,7 +468,7 @@ export namespace vulcanize.registry.v1beta1 { message.owners = data.owners; } if (data.attributes != null) { - message.attributes = dependency_5.google.protobuf.Any.fromObject(data.attributes); + message.attributes = data.attributes; } if (data.names != null) { message.names = data.names; @@ -490,7 +486,7 @@ export namespace vulcanize.registry.v1beta1 { expiry_time?: string; deleted?: boolean; owners?: string[]; - attributes?: ReturnType; + attributes?: Uint8Array; names?: string[]; type?: string; } = {}; @@ -513,7 +509,7 @@ export namespace vulcanize.registry.v1beta1 { data.owners = this.owners; } if (this.attributes != null) { - data.attributes = this.attributes.toObject(); + data.attributes = this.attributes; } if (this.names != null) { data.names = this.names; @@ -539,8 +535,8 @@ export namespace vulcanize.registry.v1beta1 { writer.writeBool(5, this.deleted); if (this.owners.length) writer.writeRepeatedString(6, this.owners); - if (this.has_attributes) - writer.writeMessage(7, this.attributes, () => this.attributes.serialize(writer)); + if (this.attributes.length) + writer.writeBytes(7, this.attributes); if (this.names.length) writer.writeRepeatedString(8, this.names); if (this.type.length) @@ -573,7 +569,7 @@ export namespace vulcanize.registry.v1beta1 { pb_1.Message.addToRepeatedField(message, 6, reader.readString()); break; case 7: - reader.readMessage(message.attributes, () => message.attributes = dependency_5.google.protobuf.Any.deserialize(reader)); + message.attributes = reader.readBytes(); break; case 8: pb_1.Message.addToRepeatedField(message, 8, reader.readString()); diff --git a/src/types.ts b/src/types.ts index b64c192..7b5970b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -3,8 +3,6 @@ import { Validator } from 'jsonschema'; import RecordSchema from './schema/record.json'; import { Util } from './util'; -import * as attributes from './proto/vulcanize/registry/v1beta1/attributes'; -import * as any from './proto/google/protobuf/any'; /** * Record. @@ -29,22 +27,7 @@ export class Record { } get attributes() { - let a = new any.google.protobuf.Any(); - - if (this._record.type) { - const namespace: any = attributes.vulcanize.registry.v1beta1; - if (!namespace[this._record.type]) { - throw new Error(`Class not found: ${this._record.type}`); - } - - const value = namespace[this._record.type].fromObject(this._record); - a = new any.google.protobuf.Any({ - type_url: `/vulcanize.registry.v1beta1.${this._record.type}`, - value: value.serialize(), - }); - } - - return a; + return Buffer.from(JSON.stringify(this._record), 'binary') } /** diff --git a/yarn.lock b/yarn.lock index dd084e4..2c2c0f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,163 +2,163 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.1.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" - integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== +"@ampproject/remapping@^2.2.0": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" + integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== dependencies: - "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" - integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.13": + version "7.22.13" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e" + integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w== dependencies: - "@babel/highlight" "^7.18.6" + "@babel/highlight" "^7.22.13" + chalk "^2.4.2" -"@babel/compat-data@^7.20.0": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.5.tgz#86f172690b093373a933223b4745deeb6049e733" - integrity sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g== +"@babel/compat-data@^7.22.9": + version "7.22.9" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730" + integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.20.5.tgz#45e2114dc6cd4ab167f81daf7820e8fa1250d113" - integrity sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ== + version "7.22.17" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.17.tgz#2f9b0b395985967203514b24ee50f9fd0639c866" + integrity sha512-2EENLmhpwplDux5PSsZnSbnSkB3tZ6QTksgO25xwEL7pIDcNOMhF5v/s6RzwjMZzZzw9Ofc30gHv5ChCC8pifQ== dependencies: - "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.5" - "@babel/helper-compilation-targets" "^7.20.0" - "@babel/helper-module-transforms" "^7.20.2" - "@babel/helpers" "^7.20.5" - "@babel/parser" "^7.20.5" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.22.13" + "@babel/generator" "^7.22.15" + "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-module-transforms" "^7.22.17" + "@babel/helpers" "^7.22.15" + "@babel/parser" "^7.22.16" + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.22.17" + "@babel/types" "^7.22.17" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" - json5 "^2.2.1" - semver "^6.3.0" + json5 "^2.2.3" + semver "^6.3.1" -"@babel/generator@^7.20.5", "@babel/generator@^7.7.2": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.5.tgz#cb25abee3178adf58d6814b68517c62bdbfdda95" - integrity sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA== +"@babel/generator@^7.22.15", "@babel/generator@^7.7.2": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.15.tgz#1564189c7ec94cb8f77b5e8a90c4d200d21b2339" + integrity sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA== dependencies: - "@babel/types" "^7.20.5" + "@babel/types" "^7.22.15" "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" -"@babel/helper-compilation-targets@^7.20.0": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" - integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== +"@babel/helper-compilation-targets@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52" + integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw== dependencies: - "@babel/compat-data" "^7.20.0" - "@babel/helper-validator-option" "^7.18.6" - browserslist "^4.21.3" - semver "^6.3.0" + "@babel/compat-data" "^7.22.9" + "@babel/helper-validator-option" "^7.22.15" + browserslist "^4.21.9" + lru-cache "^5.1.1" + semver "^6.3.1" -"@babel/helper-environment-visitor@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" - integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== +"@babel/helper-environment-visitor@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz#f06dd41b7c1f44e1f8da6c4055b41ab3a09a7e98" + integrity sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q== -"@babel/helper-function-name@^7.19.0": - version "7.19.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" - integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== +"@babel/helper-function-name@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz#ede300828905bb15e582c037162f99d5183af1be" + integrity sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ== dependencies: - "@babel/template" "^7.18.10" - "@babel/types" "^7.19.0" + "@babel/template" "^7.22.5" + "@babel/types" "^7.22.5" -"@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== +"@babel/helper-hoist-variables@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" + integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== dependencies: - "@babel/types" "^7.18.6" + "@babel/types" "^7.22.5" -"@babel/helper-module-imports@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" - integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== +"@babel/helper-module-imports@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz#16146307acdc40cc00c3b2c647713076464bdbf0" + integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w== dependencies: - "@babel/types" "^7.18.6" + "@babel/types" "^7.22.15" -"@babel/helper-module-transforms@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz#ac53da669501edd37e658602a21ba14c08748712" - integrity sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA== +"@babel/helper-module-transforms@^7.22.17": + version "7.22.17" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.22.17.tgz#7edf129097a51ccc12443adbc6320e90eab76693" + integrity sha512-XouDDhQESrLHTpnBtCKExJdyY4gJCdrvH2Pyv8r8kovX2U8G0dRUOT45T9XlbLtuu9CLXP15eusnkprhoPV5iQ== dependencies: - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-simple-access" "^7.20.2" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/helper-validator-identifier" "^7.19.1" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.1" - "@babel/types" "^7.20.2" + "@babel/helper-environment-visitor" "^7.22.5" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.15" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz#d1b9000752b18d0877cff85a5c376ce5c3121629" - integrity sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ== +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.8.0": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" + integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== -"@babel/helper-simple-access@^7.20.2": - version "7.20.2" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" - integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA== +"@babel/helper-simple-access@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz#4938357dc7d782b80ed6dbb03a0fba3d22b1d5de" + integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w== dependencies: - "@babel/types" "^7.20.2" + "@babel/types" "^7.22.5" -"@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== +"@babel/helper-split-export-declaration@^7.22.6": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" + integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== dependencies: - "@babel/types" "^7.18.6" + "@babel/types" "^7.22.5" -"@babel/helper-string-parser@^7.19.4": - version "7.19.4" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" - integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== +"@babel/helper-string-parser@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" + integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== -"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== +"@babel/helper-validator-identifier@^7.22.15", "@babel/helper-validator-identifier@^7.22.5": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz#601fa28e4cc06786c18912dca138cec73b882044" + integrity sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ== -"@babel/helper-validator-option@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" - integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== +"@babel/helper-validator-option@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz#694c30dfa1d09a6534cdfcafbe56789d36aba040" + integrity sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA== -"@babel/helpers@^7.20.5": - version "7.20.6" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.6.tgz#e64778046b70e04779dfbdf924e7ebb45992c763" - integrity sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w== +"@babel/helpers@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.15.tgz#f09c3df31e86e3ea0b7ff7556d85cdebd47ea6f1" + integrity sha512-7pAjK0aSdxOwR+CcYAqgWOGy5dcfvzsTIfFTb2odQqW47MDfv14UaJDY6eng8ylM2EaeKXdxaSWESbkmaQHTmw== dependencies: - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/template" "^7.22.15" + "@babel/traverse" "^7.22.15" + "@babel/types" "^7.22.15" -"@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== +"@babel/highlight@^7.22.13": + version "7.22.13" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.13.tgz#9cda839e5d3be9ca9e8c26b6dd69e7548f0cbf16" + integrity sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ== dependencies: - "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" + "@babel/helper-validator-identifier" "^7.22.5" + chalk "^2.4.2" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.20.5": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.5.tgz#7f3c7335fe417665d929f34ae5dceae4c04015e8" - integrity sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.22.15", "@babel/parser@^7.22.16": + version "7.22.16" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.16.tgz#180aead7f247305cce6551bea2720934e2fa2c95" + integrity sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -196,11 +196,11 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" - integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz#a6b68e84fb76e759fc3b93e901876ffabbe1d918" + integrity sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" @@ -252,44 +252,44 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.20.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" - integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz#aac8d383b062c5072c647a31ef990c1d0af90272" + integrity sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ== dependencies: - "@babel/helper-plugin-utils" "^7.19.0" + "@babel/helper-plugin-utils" "^7.22.5" -"@babel/template@^7.18.10", "@babel/template@^7.3.3": - version "7.18.10" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" - integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== +"@babel/template@^7.22.15", "@babel/template@^7.22.5", "@babel/template@^7.3.3": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" + integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/parser" "^7.18.10" - "@babel/types" "^7.18.10" + "@babel/code-frame" "^7.22.13" + "@babel/parser" "^7.22.15" + "@babel/types" "^7.22.15" -"@babel/traverse@^7.20.1", "@babel/traverse@^7.20.5", "@babel/traverse@^7.7.2": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.5.tgz#78eb244bea8270fdda1ef9af22a5d5e5b7e57133" - integrity sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ== +"@babel/traverse@^7.22.15", "@babel/traverse@^7.22.17": + version "7.22.17" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.17.tgz#b23c203ab3707e3be816043081b4a994fcacec44" + integrity sha512-xK4Uwm0JnAMvxYZxOVecss85WxTEIbTa7bnGyf/+EgCL5Zt3U7htUpEOWv9detPlamGKuRzCqw74xVglDWpPdg== dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.20.5" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.19.0" - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.20.5" - "@babel/types" "^7.20.5" + "@babel/code-frame" "^7.22.13" + "@babel/generator" "^7.22.15" + "@babel/helper-environment-visitor" "^7.22.5" + "@babel/helper-function-name" "^7.22.5" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.22.16" + "@babel/types" "^7.22.17" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.19.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.20.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.5.tgz#e206ae370b5393d94dfd1d04cd687cace53efa84" - integrity sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.15", "@babel/types@^7.22.17", "@babel/types@^7.22.5", "@babel/types@^7.3.3": + version "7.22.17" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.17.tgz#f753352c4610ffddf9c8bc6823f9ff03e2303eee" + integrity sha512-YSQPHLFtQNE5xN9tHuZnzu8vPr61wVTBZdfv1meex1NBosa4iT05k/Jw06ddJugi4bk7The/oSwQGFcksmEJQg== dependencies: - "@babel/helper-string-parser" "^7.19.4" - "@babel/helper-validator-identifier" "^7.19.1" + "@babel/helper-string-parser" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.15" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": @@ -706,23 +706,23 @@ link-module-alias "^1.2.0" shx "^0.3.4" -"@evmos/eip712@^0.2.10": - version "0.2.10" - resolved "https://registry.yarnpkg.com/@evmos/eip712/-/eip712-0.2.10.tgz#6147c496b06cdbce9440fc4a36cb7272a9d08f60" - integrity sha512-Jg2QC16aXwz1kSpAiz83wBIWpcmWniMYwCW7mBNtZMVgNcHf9+oGgV92VcmYv0TAzdP1Ki7WVhTBptHRM0kHOA== +"@evmos/eip712@^0.2.11": + version "0.2.11" + resolved "https://registry.yarnpkg.com/@evmos/eip712/-/eip712-0.2.11.tgz#ae4d7bae241df5d7a0d007a88ecd3d72d185915f" + integrity sha512-8iGZ03PqhxYXZycAvl/GJ6b78qVPkzP7A42a/d3zeZXtzRpRwOpxHmBJr5xmsZur+eqZlgAqkmZ8Q+vEh+ICgA== dependencies: "@cosmjs/proto-signing" "^0.28.13" - "@evmos/proto" "^0.1.26" + "@evmos/proto" "^0.1.27" "@metamask/eth-sig-util" "^4.0.1" cosmjs-types "^0.5.1" link-module-alias "^1.2.0" long "^5.2.0" shx "^0.3.4" -"@evmos/proto@^0.1.26": - version "0.1.26" - resolved "https://registry.yarnpkg.com/@evmos/proto/-/proto-0.1.26.tgz#20dcfdff2da7fd8e48159d6d581d2ab7739464cd" - integrity sha512-AzlQTKHo6jRXl3s6aQp6QKrQPnwKhszrF50+ycnr13BDL57chV2BYDwBrEyh/1HtL/nuvIpgyMgSZTX7dyUt2g== +"@evmos/proto@^0.1.27": + version "0.1.27" + resolved "https://registry.yarnpkg.com/@evmos/proto/-/proto-0.1.27.tgz#efc86ec959150aa595190f3d1244ac8ee19f7525" + integrity sha512-lBOZhQFsIUz3on/4H+Rj1aDj2OWaZnz7OJjUFklkPZQ3tEtAATBOQiVCjkPvIX3jh/H5DACahmi8BmhcNF+7UA== dependencies: google-protobuf "^3.19.4" link-module-alias "^1.2.0" @@ -737,13 +737,13 @@ link-module-alias "^1.2.0" shx "^0.3.4" -"@evmos/transactions@^0.2.12": - version "0.2.12" - resolved "https://registry.yarnpkg.com/@evmos/transactions/-/transactions-0.2.12.tgz#4e59cc504b60a31f4a3aa99485f320717fcd7e5b" - integrity sha512-4vAJ/jeH5ocbhJqdjp4oAYXmWOYn8NSGqHWGILI2Gd5t5cWYoknO3aJsXjtaJRdpfyV8MIJNcDOKJqdFzS9MhQ== +"@evmos/transactions@^0.2.13": + version "0.2.13" + resolved "https://registry.yarnpkg.com/@evmos/transactions/-/transactions-0.2.13.tgz#beadd070524924e64ee3964a31b3f2658cd064be" + integrity sha512-O+SoWUXkg3XoP80PB01BSKBh+HMGZuWbQ2M07yscGfSxgmSsKrTPliOmai3yM8CnDnzUmPSNZk/oWaKaCDl8kw== dependencies: - "@evmos/eip712" "^0.2.10" - "@evmos/proto" "^0.1.26" + "@evmos/eip712" "^0.2.11" + "@evmos/proto" "^0.1.27" link-module-alias "^1.2.0" shx "^0.3.4" @@ -779,110 +779,110 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== -"@jest/console@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.3.1.tgz#3e3f876e4e47616ea3b1464b9fbda981872e9583" - integrity sha512-IRE6GD47KwcqA09RIWrabKdHPiKDGgtAL31xDxbi/RjQMsr+lY+ppxmHwY0dUEV3qvvxZzoe5Hl0RXZJOjQNUg== +"@jest/console@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.7.0.tgz#cd4822dbdb84529265c5a2bdb529a3c9cc950ffc" + integrity sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg== dependencies: - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^29.3.1" - jest-util "^29.3.1" + jest-message-util "^29.7.0" + jest-util "^29.7.0" slash "^3.0.0" -"@jest/core@^29.0.0", "@jest/core@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.3.1.tgz#bff00f413ff0128f4debec1099ba7dcd649774a1" - integrity sha512-0ohVjjRex985w5MmO5L3u5GR1O30DexhBSpuwx2P+9ftyqHdJXnk7IUWiP80oHMvt7ubHCJHxV0a0vlKVuZirw== +"@jest/core@^29.0.0", "@jest/core@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.7.0.tgz#b6cccc239f30ff36609658c5a5e2291757ce448f" + integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg== dependencies: - "@jest/console" "^29.3.1" - "@jest/reporters" "^29.3.1" - "@jest/test-result" "^29.3.1" - "@jest/transform" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/console" "^29.7.0" + "@jest/reporters" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" ci-info "^3.2.0" exit "^0.1.2" graceful-fs "^4.2.9" - jest-changed-files "^29.2.0" - jest-config "^29.3.1" - jest-haste-map "^29.3.1" - jest-message-util "^29.3.1" - jest-regex-util "^29.2.0" - jest-resolve "^29.3.1" - jest-resolve-dependencies "^29.3.1" - jest-runner "^29.3.1" - jest-runtime "^29.3.1" - jest-snapshot "^29.3.1" - jest-util "^29.3.1" - jest-validate "^29.3.1" - jest-watcher "^29.3.1" + jest-changed-files "^29.7.0" + jest-config "^29.7.0" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-resolve-dependencies "^29.7.0" + jest-runner "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + jest-watcher "^29.7.0" micromatch "^4.0.4" - pretty-format "^29.3.1" + pretty-format "^29.7.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.3.1.tgz#eb039f726d5fcd14698acd072ac6576d41cfcaa6" - integrity sha512-pMmvfOPmoa1c1QpfFW0nXYtNLpofqo4BrCIk6f2kW4JFeNlHV2t3vd+3iDLf31e2ot2Mec0uqZfmI+U0K2CFag== +"@jest/environment@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.7.0.tgz#24d61f54ff1f786f3cd4073b4b94416383baf2a7" + integrity sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw== dependencies: - "@jest/fake-timers" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" - jest-mock "^29.3.1" + jest-mock "^29.7.0" -"@jest/expect-utils@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.3.1.tgz#531f737039e9b9e27c42449798acb5bba01935b6" - integrity sha512-wlrznINZI5sMjwvUoLVk617ll/UYfGIZNxmbU+Pa7wmkL4vYzhV9R2pwVqUh4NWWuLQWkI8+8mOkxs//prKQ3g== +"@jest/expect-utils@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6" + integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== dependencies: - jest-get-type "^29.2.0" + jest-get-type "^29.6.3" -"@jest/expect@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.3.1.tgz#456385b62894349c1d196f2d183e3716d4c6a6cd" - integrity sha512-QivM7GlSHSsIAWzgfyP8dgeExPRZ9BIe2LsdPyEhCGkZkoyA+kGsoIzbKAfZCvvRzfZioKwPtCZIt5SaoxYCvg== +"@jest/expect@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.7.0.tgz#76a3edb0cb753b70dfbfe23283510d3d45432bf2" + integrity sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ== dependencies: - expect "^29.3.1" - jest-snapshot "^29.3.1" + expect "^29.7.0" + jest-snapshot "^29.7.0" -"@jest/fake-timers@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.3.1.tgz#b140625095b60a44de820876d4c14da1aa963f67" - integrity sha512-iHTL/XpnDlFki9Tq0Q1GGuVeQ8BHZGIYsvCO5eN/O/oJaRzofG9Xndd9HuSDBI/0ZS79pg0iwn07OMTQ7ngF2A== +"@jest/fake-timers@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.7.0.tgz#fd91bf1fffb16d7d0d24a426ab1a47a49881a565" + integrity sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ== dependencies: - "@jest/types" "^29.3.1" - "@sinonjs/fake-timers" "^9.1.2" + "@jest/types" "^29.6.3" + "@sinonjs/fake-timers" "^10.0.2" "@types/node" "*" - jest-message-util "^29.3.1" - jest-mock "^29.3.1" - jest-util "^29.3.1" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-util "^29.7.0" -"@jest/globals@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.3.1.tgz#92be078228e82d629df40c3656d45328f134a0c6" - integrity sha512-cTicd134vOcwO59OPaB6AmdHQMCtWOe+/DitpTZVxWgMJ+YvXL1HNAmPyiGbSHmF/mXVBkvlm8YYtQhyHPnV6Q== +"@jest/globals@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.7.0.tgz#8d9290f9ec47ff772607fa864ca1d5a2efae1d4d" + integrity sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ== dependencies: - "@jest/environment" "^29.3.1" - "@jest/expect" "^29.3.1" - "@jest/types" "^29.3.1" - jest-mock "^29.3.1" + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/types" "^29.6.3" + jest-mock "^29.7.0" -"@jest/reporters@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.3.1.tgz#9a6d78c109608e677c25ddb34f907b90e07b4310" - integrity sha512-GhBu3YFuDrcAYW/UESz1JphEAbvUjaY2vShRZRoRY1mxpCMB3yGSJ4j9n0GxVlEOdCf7qjvUfBCrTUUqhVfbRA== +"@jest/reporters@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.7.0.tgz#04b262ecb3b8faa83b0b3d321623972393e8f4c7" + integrity sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^29.3.1" - "@jest/test-result" "^29.3.1" - "@jest/transform" "^29.3.1" - "@jest/types" "^29.3.1" - "@jridgewell/trace-mapping" "^0.3.15" + "@jest/console" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" + "@jridgewell/trace-mapping" "^0.3.18" "@types/node" "*" chalk "^4.0.0" collect-v8-coverage "^1.0.0" @@ -890,126 +890,118 @@ glob "^7.1.3" graceful-fs "^4.2.9" istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^5.1.0" + istanbul-lib-instrument "^6.0.0" istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.1.3" - jest-message-util "^29.3.1" - jest-util "^29.3.1" - jest-worker "^29.3.1" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + jest-worker "^29.7.0" slash "^3.0.0" string-length "^4.0.1" strip-ansi "^6.0.0" v8-to-istanbul "^9.0.1" -"@jest/schemas@^29.0.0": - version "29.0.0" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a" - integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA== +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== dependencies: - "@sinclair/typebox" "^0.24.1" + "@sinclair/typebox" "^0.27.8" -"@jest/source-map@^29.2.0": - version "29.2.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.2.0.tgz#ab3420c46d42508dcc3dc1c6deee0b613c235744" - integrity sha512-1NX9/7zzI0nqa6+kgpSdKPK+WU1p+SJk3TloWZf5MzPbxri9UEeXX5bWZAPCzbQcyuAzubcdUHA7hcNznmRqWQ== +"@jest/source-map@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.6.3.tgz#d90ba772095cf37a34a5eb9413f1b562a08554c4" + integrity sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw== dependencies: - "@jridgewell/trace-mapping" "^0.3.15" + "@jridgewell/trace-mapping" "^0.3.18" callsites "^3.0.0" graceful-fs "^4.2.9" -"@jest/test-result@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.3.1.tgz#92cd5099aa94be947560a24610aa76606de78f50" - integrity sha512-qeLa6qc0ddB0kuOZyZIhfN5q0e2htngokyTWsGriedsDhItisW7SDYZ7ceOe57Ii03sL988/03wAcBh3TChMGw== +"@jest/test-result@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.7.0.tgz#8db9a80aa1a097bb2262572686734baed9b1657c" + integrity sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA== dependencies: - "@jest/console" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/console" "^29.7.0" + "@jest/types" "^29.6.3" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.3.1.tgz#fa24b3b050f7a59d48f7ef9e0b782ab65123090d" - integrity sha512-IqYvLbieTv20ArgKoAMyhLHNrVHJfzO6ARZAbQRlY4UGWfdDnLlZEF0BvKOMd77uIiIjSZRwq3Jb3Fa3I8+2UA== +"@jest/test-sequencer@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz#6cef977ce1d39834a3aea887a1726628a6f072ce" + integrity sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw== dependencies: - "@jest/test-result" "^29.3.1" + "@jest/test-result" "^29.7.0" graceful-fs "^4.2.9" - jest-haste-map "^29.3.1" + jest-haste-map "^29.7.0" slash "^3.0.0" -"@jest/transform@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.3.1.tgz#1e6bd3da4af50b5c82a539b7b1f3770568d6e36d" - integrity sha512-8wmCFBTVGYqFNLWfcOWoVuMuKYPUBTnTMDkdvFtAYELwDOl9RGwOsvQWGPFxDJ8AWY9xM/8xCXdqmPK3+Q5Lug== +"@jest/transform@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.7.0.tgz#df2dd9c346c7d7768b8a06639994640c642e284c" + integrity sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw== dependencies: "@babel/core" "^7.11.6" - "@jest/types" "^29.3.1" - "@jridgewell/trace-mapping" "^0.3.15" + "@jest/types" "^29.6.3" + "@jridgewell/trace-mapping" "^0.3.18" babel-plugin-istanbul "^6.1.1" chalk "^4.0.0" convert-source-map "^2.0.0" fast-json-stable-stringify "^2.1.0" graceful-fs "^4.2.9" - jest-haste-map "^29.3.1" - jest-regex-util "^29.2.0" - jest-util "^29.3.1" + jest-haste-map "^29.7.0" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" micromatch "^4.0.4" pirates "^4.0.4" slash "^3.0.0" - write-file-atomic "^4.0.1" + write-file-atomic "^4.0.2" -"@jest/types@^29.0.0", "@jest/types@^29.3.1": - version "29.3.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.3.1.tgz#7c5a80777cb13e703aeec6788d044150341147e3" - integrity sha512-d0S0jmmTpjnhCmNpApgX3jrUZgZ22ivKJRvL2lli5hpCRoNnp1f85r2/wpKfXuYu8E7Jjh1hGfhPyup1NM5AmA== +"@jest/types@^29.0.0", "@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== dependencies: - "@jest/schemas" "^29.0.0" + "@jest/schemas" "^29.6.3" "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" "@types/yargs" "^17.0.8" chalk "^4.0.0" -"@jridgewell/gen-mapping@^0.1.0": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" - integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== - dependencies: - "@jridgewell/set-array" "^1.0.0" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@jridgewell/gen-mapping@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" - integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== dependencies: "@jridgewell/set-array" "^1.0.1" "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" -"@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" + integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== -"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": +"@jridgewell/set-array@^1.0.1": version "1.1.2" resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== -"@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.15", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.17" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" - integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.19" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz#f8a3249862f91be48d3127c3cfe992f79b4b8811" + integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" "@metamask/eth-sig-util@^4.0.0", "@metamask/eth-sig-util@^4.0.1": version "4.0.1" @@ -1022,10 +1014,10 @@ tweetnacl "^1.0.3" tweetnacl-util "^0.15.1" -"@noble/hashes@^1": - version "1.1.5" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.5.tgz#1a0377f3b9020efe2fae03290bd2a12140c95c11" - integrity sha512-LTMZiiLc+V4v1Yi16TD6aX2gmtKszNye0pQgbaLqkvhIqP7nVsSaJsWloGQjJfJ8offaoP5GtX3yY5swbcJxxQ== +"@noble/hashes@^1", "@noble/hashes@^1.2.0": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" + integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== "@octetstream/promisify@2.0.2": version "2.0.2" @@ -1085,24 +1077,24 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== -"@sinclair/typebox@^0.24.1": - version "0.24.51" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" - integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== -"@sinonjs/commons@^1.7.0": - version "1.8.6" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.6.tgz#80c516a4dc264c2a69115e7578d62581ff455ed9" - integrity sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ== +"@sinonjs/commons@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.0.tgz#beb434fe875d965265e04722ccfc21df7f755d72" + integrity sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA== dependencies: type-detect "4.0.8" -"@sinonjs/fake-timers@^9.1.2": - version "9.1.2" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz#4eaab737fab77332ab132d396a3c0d364bd0ea8c" - integrity sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw== +"@sinonjs/fake-timers@^10.0.2": + version "10.3.0" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz#55fdff1ecab9f354019129daf4df0dd4d923ea66" + integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== dependencies: - "@sinonjs/commons" "^1.7.0" + "@sinonjs/commons" "^3.0.0" "@tharsis/address-converter@^0.1.7": version "0.1.8" @@ -1155,12 +1147,12 @@ shx "^0.3.4" "@types/babel__core@^7.1.14": - version "7.1.20" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.20.tgz#e168cdd612c92a2d335029ed62ac94c95b362359" - integrity sha512-PVb6Bg2QuscZ30FvOU7z4guG6c926D9YRvOxEaelzndpMsvP+YM74Q/dAFASpg2l6+XLalxSGxcq/lrgYWZtyQ== + version "7.20.1" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.1.tgz#916ecea274b0c776fec721e333e55762d3a9614b" + integrity sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw== dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" "@types/babel__generator" "*" "@types/babel__template" "*" "@types/babel__traverse" "*" @@ -1181,11 +1173,11 @@ "@babel/types" "^7.0.0" "@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": - version "7.18.3" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.3.tgz#dfc508a85781e5698d5b33443416b6268c4b3e8d" - integrity sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w== + version "7.20.1" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.1.tgz#dd6f1d2411ae677dcb2db008c962598be31d6acf" + integrity sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg== dependencies: - "@babel/types" "^7.3.0" + "@babel/types" "^7.20.7" "@types/bn.js@^4.11.3": version "4.11.6" @@ -1200,9 +1192,9 @@ integrity sha512-pYVNNJ+winC4aek+lZp93sIKxnXt5qMkuKmaqS3WGuTq0Bw1ZDYNBgzG5kkdtwcv+GmYJGo3yEg6z2cKKAiEdw== "@types/graceful-fs@^4.1.3": - version "4.1.5" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" - integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== + version "4.1.6" + resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.6.tgz#e14b2576a1c25026b7f02ede1de3b84c3a1efeae" + integrity sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw== dependencies: "@types/node" "*" @@ -1234,9 +1226,9 @@ pretty-format "^27.0.0" "@types/lodash@^4.14.181": - version "4.14.191" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.191.tgz#09511e7f7cba275acd8b419ddac8da9a6a79e2fa" - integrity sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ== + version "4.14.198" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.198.tgz#4d27465257011aedc741a809f1269941fa2c5d4c" + integrity sha512-trNJ/vtMZYMLhfN45uLq4ShQSw0/S7xCTLLVM+WM1rmFpba/VS42jVUgaO3w/NOLiWR/09lnYk0yMaA/atdIsg== "@types/long@^4.0.1": version "4.0.2" @@ -1244,20 +1236,15 @@ integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA== "@types/node@*", "@types/node@>=13.7.0": - version "18.11.17" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.17.tgz#5c009e1d9c38f4a2a9d45c0b0c493fe6cdb4bcb5" - integrity sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng== + version "20.6.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.6.0.tgz#9d7daa855d33d4efec8aea88cd66db1c2f0ebe16" + integrity sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg== "@types/node@10.12.18": version "10.12.18" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== -"@types/node@11.11.6": - version "11.11.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a" - integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== - "@types/node@^17.0.21": version "17.0.45" resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190" @@ -1270,11 +1257,6 @@ dependencies: "@types/node" "*" -"@types/prettier@^2.1.5": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.2.tgz#6c2324641cc4ba050a8c710b2b251b377581fbf0" - integrity sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg== - "@types/secp256k1@^4.0.1": version "4.0.3" resolved "https://registry.yarnpkg.com/@types/secp256k1/-/secp256k1-4.0.3.tgz#1b8e55d8e00f08ee7220b4d59a6abe89c37a901c" @@ -1283,9 +1265,9 @@ "@types/node" "*" "@types/semver@^7.3.9": - version "7.3.13" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" - integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== + version "7.5.1" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.1.tgz#0480eeb7221eb9bc398ad7432c9d7e14b1a5a367" + integrity sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg== "@types/stack-utils@^2.0.0": version "2.0.1" @@ -1305,9 +1287,9 @@ integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== "@types/yargs@^17.0.8": - version "17.0.17" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.17.tgz#5672e5621f8e0fca13f433a8017aae4b7a2a03e7" - integrity sha512-72bWxFKTK6uwWJAVT+3rF6Jo6RTojiJ27FQo8Rf60AL+VZbzoVPnMFhKsUnbjR8A3BTCYQ7Mv3hnl8T0A+CX9g== + version "17.0.24" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.24.tgz#b3ef8d50ad4aa6aecf6ddc97c580a00f5aa11902" + integrity sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw== dependencies: "@types/yargs-parser" "*" @@ -1369,15 +1351,15 @@ axios@^0.26.1: dependencies: follow-redirects "^1.14.8" -babel-jest@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.3.1.tgz#05c83e0d128cd48c453eea851482a38782249f44" - integrity sha512-aard+xnMoxgjwV70t0L6wkW/3HQQtV+O0PEimxKgzNqCJnbYmroPojdP2tqKSOAt8QAKV/uSZU8851M7B5+fcA== +babel-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5" + integrity sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg== dependencies: - "@jest/transform" "^29.3.1" + "@jest/transform" "^29.7.0" "@types/babel__core" "^7.1.14" babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^29.2.0" + babel-preset-jest "^29.6.3" chalk "^4.0.0" graceful-fs "^4.2.9" slash "^3.0.0" @@ -1393,10 +1375,10 @@ babel-plugin-istanbul@^6.1.1: istanbul-lib-instrument "^5.0.4" test-exclude "^6.0.0" -babel-plugin-jest-hoist@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.2.0.tgz#23ee99c37390a98cfddf3ef4a78674180d823094" - integrity sha512-TnspP2WNiR3GLfCsUNHqeXw0RoQ2f9U5hQ5L3XFpwuO8htQmSrhh8qsB6vi5Yi8+kuynN1yjDjQsPfkebmB6ZA== +babel-plugin-jest-hoist@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz#aadbe943464182a8922c3c927c3067ff40d24626" + integrity sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg== dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" @@ -1421,12 +1403,12 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" -babel-preset-jest@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.2.0.tgz#3048bea3a1af222e3505e4a767a974c95a7620dc" - integrity sha512-z9JmMJppMxNv8N7fNRHvhMg9cvIkMxQBXgFkane3yKVEvEOP+kB50lk8DFRvF9PGqbyXxlmebKWhuDORO8RgdA== +babel-preset-jest@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz#fa05fa510e7d493896d7b0dd2033601c840f171c" + integrity sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA== dependencies: - babel-plugin-jest-hoist "^29.2.0" + babel-plugin-jest-hoist "^29.6.3" babel-preset-current-node-syntax "^1.0.0" balanced-match@^1.0.0: @@ -1481,14 +1463,11 @@ bip32@3.0.1: wif "^2.0.6" bip39@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.4.tgz#5b11fed966840b5e1b8539f0f54ab6392969b2a0" - integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== + version "3.1.0" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" + integrity sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A== dependencies: - "@types/node" "11.11.6" - create-hash "^1.1.0" - pbkdf2 "^3.0.9" - randombytes "^2.0.1" + "@noble/hashes" "^1.2.0" blakejs@^1.1.0: version "1.2.1" @@ -1537,15 +1516,15 @@ browserify-aes@^1.2.0: inherits "^2.0.1" safe-buffer "^5.0.1" -browserslist@^4.21.3: - version "4.21.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" - integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== +browserslist@^4.21.9: + version "4.21.10" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0" + integrity sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ== dependencies: - caniuse-lite "^1.0.30001400" - electron-to-chromium "^1.4.251" - node-releases "^2.0.6" - update-browserslist-db "^1.0.9" + caniuse-lite "^1.0.30001517" + electron-to-chromium "^1.4.477" + node-releases "^2.0.13" + update-browserslist-db "^1.0.11" bs-logger@0.x: version "0.2.6" @@ -1610,10 +1589,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001400: - version "1.0.30001441" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz#987437b266260b640a23cd18fbddb509d7f69f3e" - integrity sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg== +caniuse-lite@^1.0.30001517: + version "1.0.30001534" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001534.tgz#f24a9b2a6d39630bac5c132b5dff89b39a12e7dd" + integrity sha512-vlPVrhsCS7XaSh2VvWluIQEzVhefrUQcEsQWSS5A5V+dM07uv1qHeQzAOTGIMy9i3e9bH15+muvI/UHojVgS/Q== canonical-json@^0.0.4: version "0.0.4" @@ -1621,11 +1600,11 @@ canonical-json@^0.0.4: integrity sha512-2sW7x0m/P7dqEnO0O87U7RTVQAaa7MELcd+Jd9FA6CYgYtwJ1TlDWIYMD8nuMkH1KoThsJogqgLyklrt9d/Azw== cborg@^1.5.4, cborg@^1.6.0: - version "1.9.6" - resolved "https://registry.yarnpkg.com/cborg/-/cborg-1.9.6.tgz#bf90de6541d10735db878b60b4af824209b77435" - integrity sha512-XmiD+NWTk9xg31d8MdXgW46bSZd95ELllxjbjdWGyHAtpTw+cf8iG3NibWgTWRnfWfxtcihVa5Pm0gchHiO3JQ== + version "1.10.2" + resolved "https://registry.yarnpkg.com/cborg/-/cborg-1.10.2.tgz#83cd581b55b3574c816f82696307c7512db759a1" + integrity sha512-b3tFPA9pUr2zCUiCfRd2+wok2/LBSNUMKOuRRok+WlvvAgEt/PlbgPTsZUcwCOs53IJvLgTp0eotwtosE6njug== -chalk@^2.0.0, chalk@^2.4.1: +chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1648,9 +1627,9 @@ char-regex@^1.0.2: integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== ci-info@^3.2.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.7.0.tgz#6d01b3696c59915b6ce057e4aa4adfc2fa25f5ef" - integrity sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog== + version "3.8.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.8.0.tgz#81408265a5380c929f0bc665d62256628ce9ef91" + integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: version "1.0.4" @@ -1661,9 +1640,9 @@ cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: safe-buffer "^5.0.1" cjs-module-lexer@^1.0.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40" - integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== + version "1.2.3" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz#6c370ab19f8a3394e318fe682686ec0ac684d107" + integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ== cliui@^8.0.1: version "8.0.1" @@ -1680,9 +1659,9 @@ co@4.6.0, co@^4.6.0: integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== + version "1.0.2" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" + integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== color-convert@^1.9.0: version "1.9.3" @@ -1762,6 +1741,19 @@ create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" +create-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" + integrity sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q== + dependencies: + "@jest/types" "^29.6.3" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-config "^29.7.0" + jest-util "^29.7.0" + prompts "^2.0.1" + cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" @@ -1772,9 +1764,9 @@ cross-spawn@^7.0.3: which "^2.0.1" crypto-addr-codec@^0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/crypto-addr-codec/-/crypto-addr-codec-0.1.7.tgz#e16cea892730178fe25a38f6d15b680cab3124ae" - integrity sha512-X4hzfBzNhy4mAc3UpiXEC/L0jo5E8wAa9unsnA8nNXYzXjCcGk83hfC5avJWCSGT8V91xMnAS9AKMHmjw5+XCg== + version "0.1.8" + resolved "https://registry.yarnpkg.com/crypto-addr-codec/-/crypto-addr-codec-0.1.8.tgz#45c4b24e2ebce8e24a54536ee0ca25b65787b016" + integrity sha512-GqAK90iLLgP3FvhNmHbpT3wR6dEdaM8hZyZtLX29SPardh3OA13RFLHDR6sntGCgRWOfiHqW6sIyohpNqOtV/g== dependencies: base-x "^3.0.8" big-integer "1.6.36" @@ -1791,15 +1783,15 @@ debug@^4.1.0, debug@^4.1.1: dependencies: ms "2.1.2" -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== +dedent@^1.0.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff" + integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg== deepmerge@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" - integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== detect-newline@^3.0.0: version "3.1.0" @@ -1811,20 +1803,20 @@ diff-sequences@^27.5.1: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== -diff-sequences@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.3.1.tgz#104b5b95fe725932421a9c6e5b4bef84c3f2249e" - integrity sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ== +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== dotenv@^16.0.0: - version "16.0.3" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" - integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== + version "16.3.1" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" + integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== -electron-to-chromium@^1.4.251: - version "1.4.284" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" - integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== +electron-to-chromium@^1.4.477: + version "1.4.519" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.519.tgz#01b9bc3f1bb50c4971bdd1eeca6d9a73575bd581" + integrity sha512-kqs9oGYL4UFVkLKhqCTgBCYZv+wZ374yABDMqlDda9HvlkQxvSr7kgf4hfWVjMieDbX+1MwPHFBsOGCMIBaFKg== elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.3, elliptic@^6.5.4: version "6.5.4" @@ -1963,15 +1955,15 @@ ethjs-util@0.1.6, ethjs-util@^0.1.6: strip-hex-prefix "1.0.0" evmosjs@^0.2.5: - version "0.2.16" - resolved "https://registry.yarnpkg.com/evmosjs/-/evmosjs-0.2.16.tgz#f2f756c51ca863a16de31ff7fa8b76864c9c1ba5" - integrity sha512-vS3qQEKTQ7RHe+UTahUdj6r+gGrqz+IMPwXhq3vgJ8gqqNlFJ5AnDxoDH5u4B1QRMnlWBbekhf8Xiv0Pu4Zrag== + version "0.2.17" + resolved "https://registry.yarnpkg.com/evmosjs/-/evmosjs-0.2.17.tgz#2f2d3708bf9df6a2be46388393402647c937ec88" + integrity sha512-VCFZjxpbL2cy/vXKJwjAzFnOVllIo+qiJz4Fqqleoja0dr+cYY4s+ndXxAGIJq0/pOuQL+SqxukOxRDxcTN29w== dependencies: "@evmos/address-converter" "^0.1.9" - "@evmos/eip712" "^0.2.10" - "@evmos/proto" "^0.1.26" + "@evmos/eip712" "^0.2.11" + "@evmos/proto" "^0.1.27" "@evmos/provider" "^0.2.8" - "@evmos/transactions" "^0.2.12" + "@evmos/transactions" "^0.2.13" link-module-alias "^1.2.0" shx "^0.3.4" @@ -2003,16 +1995,16 @@ exit@^0.1.2: resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== -expect@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-29.3.1.tgz#92877aad3f7deefc2e3f6430dd195b92295554a6" - integrity sha512-gGb1yTgU30Q0O/tQq+z30KBWv24ApkMgFUpvKBkyLUBL68Wv8dHdJxTBZFl/iT8K/bqDHvUYRH6IIN3rToopPA== +expect@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" + integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== dependencies: - "@jest/expect-utils" "^29.3.1" - jest-get-type "^29.2.0" - jest-matcher-utils "^29.3.1" - jest-message-util "^29.3.1" - jest-util "^29.3.1" + "@jest/expect-utils" "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: version "2.1.0" @@ -2057,9 +2049,9 @@ fs.realpath@^1.0.0: integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== fsevents@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== function-bind@^1.1.1: version "1.1.1" @@ -2109,9 +2101,9 @@ google-protobuf@^3.19.4, google-protobuf@^3.21.0: integrity sha512-3MSOYFO5U9mPGikIYCzK0SaThypfGgS6bHqrUGXG3DPHCrb+txNqeEcns1W0lkGfk0rCyNXm7xB9rMxnCiZOoA== graceful-fs@^4.2.9: - version "4.2.10" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" - integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== graphql.js@^0.6.8: version "0.6.8" @@ -2212,10 +2204,10 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== -is-core-module@^2.9.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" - integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== +is-core-module@^2.13.0: + version "2.13.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db" + integrity sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ== dependencies: has "^1.0.3" @@ -2254,7 +2246,7 @@ istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: +istanbul-lib-instrument@^5.0.4: version "5.2.1" resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== @@ -2265,13 +2257,24 @@ istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: istanbul-lib-coverage "^3.2.0" semver "^6.3.0" +istanbul-lib-instrument@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.0.tgz#7a8af094cbfff1d5bb280f62ce043695ae8dd5b8" + integrity sha512-x58orMzEVfzPUKqlbLd1hXCnySCxKdDKa6Rjg97CwuLLRI4g3FHTdnExu1OqffVFay6zeMW+T6/DowFLndWnIw== + dependencies: + "@babel/core" "^7.12.3" + "@babel/parser" "^7.14.7" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.2.0" + semver "^7.5.4" + istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== + version "3.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" + integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== dependencies: istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" + make-dir "^4.0.0" supports-color "^7.1.0" istanbul-lib-source-maps@^4.0.0: @@ -2284,89 +2287,90 @@ istanbul-lib-source-maps@^4.0.0: source-map "^0.6.1" istanbul-reports@^3.1.3: - version "3.1.5" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.5.tgz#cc9a6ab25cb25659810e4785ed9d9fb742578bae" - integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== + version "3.1.6" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.6.tgz#2544bcab4768154281a2f0870471902704ccaa1a" + integrity sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg== dependencies: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-changed-files@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.2.0.tgz#b6598daa9803ea6a4dce7968e20ab380ddbee289" - integrity sha512-qPVmLLyBmvF5HJrY7krDisx6Voi8DmlV3GZYX0aFNbaQsZeoz1hfxcCMbqDGuQCxU1dJy9eYc2xscE8QrCCYaA== +jest-changed-files@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a" + integrity sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w== dependencies: execa "^5.0.0" + jest-util "^29.7.0" p-limit "^3.1.0" -jest-circus@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.3.1.tgz#177d07c5c0beae8ef2937a67de68f1e17bbf1b4a" - integrity sha512-wpr26sEvwb3qQQbdlmei+gzp6yoSSoSL6GsLPxnuayZSMrSd5Ka7IjAvatpIernBvT2+Ic6RLTg+jSebScmasg== +jest-circus@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.7.0.tgz#b6817a45fcc835d8b16d5962d0c026473ee3668a" + integrity sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw== dependencies: - "@jest/environment" "^29.3.1" - "@jest/expect" "^29.3.1" - "@jest/test-result" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - dedent "^0.7.0" + dedent "^1.0.0" is-generator-fn "^2.0.0" - jest-each "^29.3.1" - jest-matcher-utils "^29.3.1" - jest-message-util "^29.3.1" - jest-runtime "^29.3.1" - jest-snapshot "^29.3.1" - jest-util "^29.3.1" + jest-each "^29.7.0" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" p-limit "^3.1.0" - pretty-format "^29.3.1" + pretty-format "^29.7.0" + pure-rand "^6.0.0" slash "^3.0.0" stack-utils "^2.0.3" jest-cli@^29.0.0: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.3.1.tgz#e89dff427db3b1df50cea9a393ebd8640790416d" - integrity sha512-TO/ewvwyvPOiBBuWZ0gm04z3WWP8TIK8acgPzE4IxgsLKQgb377NYGrQLc3Wl/7ndWzIH2CDNNsUjGxwLL43VQ== + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.7.0.tgz#5592c940798e0cae677eec169264f2d839a37995" + integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg== dependencies: - "@jest/core" "^29.3.1" - "@jest/test-result" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/core" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" chalk "^4.0.0" + create-jest "^29.7.0" exit "^0.1.2" - graceful-fs "^4.2.9" import-local "^3.0.2" - jest-config "^29.3.1" - jest-util "^29.3.1" - jest-validate "^29.3.1" - prompts "^2.0.1" + jest-config "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" yargs "^17.3.1" -jest-config@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.3.1.tgz#0bc3dcb0959ff8662957f1259947aedaefb7f3c6" - integrity sha512-y0tFHdj2WnTEhxmGUK1T7fgLen7YK4RtfvpLFBXfQkh2eMJAQq24Vx9472lvn5wg0MAO6B+iPfJfzdR9hJYalg== +jest-config@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.7.0.tgz#bcbda8806dbcc01b1e316a46bb74085a84b0245f" + integrity sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ== dependencies: "@babel/core" "^7.11.6" - "@jest/test-sequencer" "^29.3.1" - "@jest/types" "^29.3.1" - babel-jest "^29.3.1" + "@jest/test-sequencer" "^29.7.0" + "@jest/types" "^29.6.3" + babel-jest "^29.7.0" chalk "^4.0.0" ci-info "^3.2.0" deepmerge "^4.2.2" glob "^7.1.3" graceful-fs "^4.2.9" - jest-circus "^29.3.1" - jest-environment-node "^29.3.1" - jest-get-type "^29.2.0" - jest-regex-util "^29.2.0" - jest-resolve "^29.3.1" - jest-runner "^29.3.1" - jest-util "^29.3.1" - jest-validate "^29.3.1" + jest-circus "^29.7.0" + jest-environment-node "^29.7.0" + jest-get-type "^29.6.3" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-runner "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" micromatch "^4.0.4" parse-json "^5.2.0" - pretty-format "^29.3.1" + pretty-format "^29.7.0" slash "^3.0.0" strip-json-comments "^3.1.1" @@ -2380,82 +2384,82 @@ jest-diff@^27.5.1: jest-get-type "^27.5.1" pretty-format "^27.5.1" -jest-diff@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.3.1.tgz#d8215b72fed8f1e647aed2cae6c752a89e757527" - integrity sha512-vU8vyiO7568tmin2lA3r2DP8oRvzhvRcD4DjpXc6uGveQodyk7CKLhQlCSiwgx3g0pFaE88/KLZ0yaTWMc4Uiw== +jest-diff@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== dependencies: chalk "^4.0.0" - diff-sequences "^29.3.1" - jest-get-type "^29.2.0" - pretty-format "^29.3.1" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" -jest-docblock@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.2.0.tgz#307203e20b637d97cee04809efc1d43afc641e82" - integrity sha512-bkxUsxTgWQGbXV5IENmfiIuqZhJcyvF7tU4zJ/7ioTutdz4ToB5Yx6JOFBpgI+TphRY4lhOyCWGNH/QFQh5T6A== +jest-docblock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a" + integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== dependencies: detect-newline "^3.0.0" -jest-each@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.3.1.tgz#bc375c8734f1bb96625d83d1ca03ef508379e132" - integrity sha512-qrZH7PmFB9rEzCSl00BWjZYuS1BSOH8lLuC0azQE9lQrAx3PWGKHTDudQiOSwIy5dGAJh7KA0ScYlCP7JxvFYA== +jest-each@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.7.0.tgz#162a9b3f2328bdd991beaabffbb74745e56577d1" + integrity sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ== dependencies: - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" chalk "^4.0.0" - jest-get-type "^29.2.0" - jest-util "^29.3.1" - pretty-format "^29.3.1" + jest-get-type "^29.6.3" + jest-util "^29.7.0" + pretty-format "^29.7.0" -jest-environment-node@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.3.1.tgz#5023b32472b3fba91db5c799a0d5624ad4803e74" - integrity sha512-xm2THL18Xf5sIHoU7OThBPtuH6Lerd+Y1NLYiZJlkE3hbE+7N7r8uvHIl/FkZ5ymKXJe/11SQuf3fv4v6rUMag== +jest-environment-node@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376" + integrity sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw== dependencies: - "@jest/environment" "^29.3.1" - "@jest/fake-timers" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" - jest-mock "^29.3.1" - jest-util "^29.3.1" + jest-mock "^29.7.0" + jest-util "^29.7.0" jest-get-type@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== -jest-get-type@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.2.0.tgz#726646f927ef61d583a3b3adb1ab13f3a5036408" - integrity sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA== +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== -jest-haste-map@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.3.1.tgz#af83b4347f1dae5ee8c2fb57368dc0bb3e5af843" - integrity sha512-/FFtvoG1xjbbPXQLFef+WSU4yrc0fc0Dds6aRPBojUid7qlPqZvxdUBA03HW0fnVHXVCnCdkuoghYItKNzc/0A== +jest-haste-map@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.7.0.tgz#3c2396524482f5a0506376e6c858c3bbcc17b104" + integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA== dependencies: - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" "@types/graceful-fs" "^4.1.3" "@types/node" "*" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.9" - jest-regex-util "^29.2.0" - jest-util "^29.3.1" - jest-worker "^29.3.1" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + jest-worker "^29.7.0" micromatch "^4.0.4" walker "^1.0.8" optionalDependencies: fsevents "^2.3.2" -jest-leak-detector@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.3.1.tgz#95336d020170671db0ee166b75cd8ef647265518" - integrity sha512-3DA/VVXj4zFOPagGkuqHnSQf1GZBmmlagpguxEERO6Pla2g84Q1MaVIB3YMxgUaFIaYag8ZnTyQgiZ35YEqAQA== +jest-leak-detector@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz#5b7ec0dadfdfec0ca383dc9aa016d36b5ea4c728" + integrity sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw== dependencies: - jest-get-type "^29.2.0" - pretty-format "^29.3.1" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" jest-matcher-utils@^27.0.0: version "27.5.1" @@ -2467,203 +2471,199 @@ jest-matcher-utils@^27.0.0: jest-get-type "^27.5.1" pretty-format "^27.5.1" -jest-matcher-utils@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.3.1.tgz#6e7f53512f80e817dfa148672bd2d5d04914a572" - integrity sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ== +jest-matcher-utils@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12" + integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== dependencies: chalk "^4.0.0" - jest-diff "^29.3.1" - jest-get-type "^29.2.0" - pretty-format "^29.3.1" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" -jest-message-util@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.3.1.tgz#37bc5c468dfe5120712053dd03faf0f053bd6adb" - integrity sha512-lMJTbgNcDm5z+6KDxWtqOFWlGQxD6XaYwBqHR8kmpkP+WWWG90I35kdtQHY67Ay5CSuydkTBbJG+tH9JShFCyA== +jest-message-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3" + integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== dependencies: "@babel/code-frame" "^7.12.13" - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" "@types/stack-utils" "^2.0.0" chalk "^4.0.0" graceful-fs "^4.2.9" micromatch "^4.0.4" - pretty-format "^29.3.1" + pretty-format "^29.7.0" slash "^3.0.0" stack-utils "^2.0.3" -jest-mock@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.3.1.tgz#60287d92e5010979d01f218c6b215b688e0f313e" - integrity sha512-H8/qFDtDVMFvFP4X8NuOT3XRDzOUTz+FeACjufHzsOIBAxivLqkB1PoLCaJx9iPPQ8dZThHPp/G3WRWyMgA3JA== +jest-mock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.7.0.tgz#4e836cf60e99c6fcfabe9f99d017f3fdd50a6347" + integrity sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw== dependencies: - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" "@types/node" "*" - jest-util "^29.3.1" + jest-util "^29.7.0" jest-pnp-resolver@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== -jest-regex-util@^29.2.0: - version "29.2.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.2.0.tgz#82ef3b587e8c303357728d0322d48bbfd2971f7b" - integrity sha512-6yXn0kg2JXzH30cr2NlThF+70iuO/3irbaB4mh5WyqNIvLLP+B6sFdluO1/1RJmslyh/f9osnefECflHvTbwVA== +jest-regex-util@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.6.3.tgz#4a556d9c776af68e1c5f48194f4d0327d24e8a52" + integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg== -jest-resolve-dependencies@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.3.1.tgz#a6a329708a128e68d67c49f38678a4a4a914c3bf" - integrity sha512-Vk0cYq0byRw2WluNmNWGqPeRnZ3p3hHmjJMp2dyyZeYIfiBskwq4rpiuGFR6QGAdbj58WC7HN4hQHjf2mpvrLA== +jest-resolve-dependencies@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz#1b04f2c095f37fc776ff40803dc92921b1e88428" + integrity sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA== dependencies: - jest-regex-util "^29.2.0" - jest-snapshot "^29.3.1" + jest-regex-util "^29.6.3" + jest-snapshot "^29.7.0" -jest-resolve@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.3.1.tgz#9a4b6b65387a3141e4a40815535c7f196f1a68a7" - integrity sha512-amXJgH/Ng712w3Uz5gqzFBBjxV8WFLSmNjoreBGMqxgCz5cH7swmBZzgBaCIOsvb0NbpJ0vgaSFdJqMdT+rADw== +jest-resolve@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.7.0.tgz#64d6a8992dd26f635ab0c01e5eef4399c6bcbc30" + integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA== dependencies: chalk "^4.0.0" graceful-fs "^4.2.9" - jest-haste-map "^29.3.1" + jest-haste-map "^29.7.0" jest-pnp-resolver "^1.2.2" - jest-util "^29.3.1" - jest-validate "^29.3.1" + jest-util "^29.7.0" + jest-validate "^29.7.0" resolve "^1.20.0" - resolve.exports "^1.1.0" + resolve.exports "^2.0.0" slash "^3.0.0" -jest-runner@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.3.1.tgz#a92a879a47dd096fea46bb1517b0a99418ee9e2d" - integrity sha512-oFvcwRNrKMtE6u9+AQPMATxFcTySyKfLhvso7Sdk/rNpbhg4g2GAGCopiInk1OP4q6gz3n6MajW4+fnHWlU3bA== +jest-runner@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.7.0.tgz#809af072d408a53dcfd2e849a4c976d3132f718e" + integrity sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ== dependencies: - "@jest/console" "^29.3.1" - "@jest/environment" "^29.3.1" - "@jest/test-result" "^29.3.1" - "@jest/transform" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/console" "^29.7.0" + "@jest/environment" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" emittery "^0.13.1" graceful-fs "^4.2.9" - jest-docblock "^29.2.0" - jest-environment-node "^29.3.1" - jest-haste-map "^29.3.1" - jest-leak-detector "^29.3.1" - jest-message-util "^29.3.1" - jest-resolve "^29.3.1" - jest-runtime "^29.3.1" - jest-util "^29.3.1" - jest-watcher "^29.3.1" - jest-worker "^29.3.1" + jest-docblock "^29.7.0" + jest-environment-node "^29.7.0" + jest-haste-map "^29.7.0" + jest-leak-detector "^29.7.0" + jest-message-util "^29.7.0" + jest-resolve "^29.7.0" + jest-runtime "^29.7.0" + jest-util "^29.7.0" + jest-watcher "^29.7.0" + jest-worker "^29.7.0" p-limit "^3.1.0" source-map-support "0.5.13" -jest-runtime@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.3.1.tgz#21efccb1a66911d6d8591276a6182f520b86737a" - integrity sha512-jLzkIxIqXwBEOZx7wx9OO9sxoZmgT2NhmQKzHQm1xwR1kNW/dn0OjxR424VwHHf1SPN6Qwlb5pp1oGCeFTQ62A== +jest-runtime@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.7.0.tgz#efecb3141cf7d3767a3a0cc8f7c9990587d3d817" + integrity sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ== dependencies: - "@jest/environment" "^29.3.1" - "@jest/fake-timers" "^29.3.1" - "@jest/globals" "^29.3.1" - "@jest/source-map" "^29.2.0" - "@jest/test-result" "^29.3.1" - "@jest/transform" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/globals" "^29.7.0" + "@jest/source-map" "^29.6.3" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" cjs-module-lexer "^1.0.0" collect-v8-coverage "^1.0.0" glob "^7.1.3" graceful-fs "^4.2.9" - jest-haste-map "^29.3.1" - jest-message-util "^29.3.1" - jest-mock "^29.3.1" - jest-regex-util "^29.2.0" - jest-resolve "^29.3.1" - jest-snapshot "^29.3.1" - jest-util "^29.3.1" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" slash "^3.0.0" strip-bom "^4.0.0" -jest-snapshot@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.3.1.tgz#17bcef71a453adc059a18a32ccbd594b8cc4e45e" - integrity sha512-+3JOc+s28upYLI2OJM4PWRGK9AgpsMs/ekNryUV0yMBClT9B1DF2u2qay8YxcQd338PPYSFNb0lsar1B49sLDA== +jest-snapshot@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.7.0.tgz#c2c574c3f51865da1bb329036778a69bf88a6be5" + integrity sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw== dependencies: "@babel/core" "^7.11.6" "@babel/generator" "^7.7.2" "@babel/plugin-syntax-jsx" "^7.7.2" "@babel/plugin-syntax-typescript" "^7.7.2" - "@babel/traverse" "^7.7.2" "@babel/types" "^7.3.3" - "@jest/expect-utils" "^29.3.1" - "@jest/transform" "^29.3.1" - "@jest/types" "^29.3.1" - "@types/babel__traverse" "^7.0.6" - "@types/prettier" "^2.1.5" + "@jest/expect-utils" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" babel-preset-current-node-syntax "^1.0.0" chalk "^4.0.0" - expect "^29.3.1" + expect "^29.7.0" graceful-fs "^4.2.9" - jest-diff "^29.3.1" - jest-get-type "^29.2.0" - jest-haste-map "^29.3.1" - jest-matcher-utils "^29.3.1" - jest-message-util "^29.3.1" - jest-util "^29.3.1" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" natural-compare "^1.4.0" - pretty-format "^29.3.1" - semver "^7.3.5" + pretty-format "^29.7.0" + semver "^7.5.3" -jest-util@^29.0.0, jest-util@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.3.1.tgz#1dda51e378bbcb7e3bc9d8ab651445591ed373e1" - integrity sha512-7YOVZaiX7RJLv76ZfHt4nbNEzzTRiMW/IiOG7ZOKmTXmoGBxUDefgMAxQubu6WPVqP5zSzAdZG0FfLcC7HOIFQ== +jest-util@^29.0.0, jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== dependencies: - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" ci-info "^3.2.0" graceful-fs "^4.2.9" picomatch "^2.2.3" -jest-validate@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.3.1.tgz#d56fefaa2e7d1fde3ecdc973c7f7f8f25eea704a" - integrity sha512-N9Lr3oYR2Mpzuelp1F8negJR3YE+L1ebk1rYA5qYo9TTY3f9OWdptLoNSPP9itOCBIRBqjt/S5XHlzYglLN67g== +jest-validate@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.7.0.tgz#7bf705511c64da591d46b15fce41400d52147d9c" + integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw== dependencies: - "@jest/types" "^29.3.1" + "@jest/types" "^29.6.3" camelcase "^6.2.0" chalk "^4.0.0" - jest-get-type "^29.2.0" + jest-get-type "^29.6.3" leven "^3.1.0" - pretty-format "^29.3.1" + pretty-format "^29.7.0" -jest-watcher@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.3.1.tgz#3341547e14fe3c0f79f9c3a4c62dbc3fc977fd4a" - integrity sha512-RspXG2BQFDsZSRKGCT/NiNa8RkQ1iKAjrO0//soTMWx/QUt+OcxMqMSBxz23PYGqUuWm2+m2mNNsmj0eIoOaFg== +jest-watcher@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.7.0.tgz#7810d30d619c3a62093223ce6bb359ca1b28a2f2" + integrity sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g== dependencies: - "@jest/test-result" "^29.3.1" - "@jest/types" "^29.3.1" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" emittery "^0.13.1" - jest-util "^29.3.1" + jest-util "^29.7.0" string-length "^4.0.1" -jest-worker@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.3.1.tgz#e9462161017a9bb176380d721cab022661da3d6b" - integrity sha512-lY4AnnmsEWeiXirAIA0c9SDPbuCBq8IYuDVL8PMm0MZ2PEs2yPvRA/J64QBXuZp7CYKrDM/rmNrc9/i3KJQncw== +jest-worker@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a" + integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw== dependencies: "@types/node" "*" - jest-util "^29.3.1" + jest-util "^29.7.0" merge-stream "^2.0.0" supports-color "^8.0.0" @@ -2710,10 +2710,10 @@ json-parse-even-better-errors@^2.3.0: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== -json5@^2.2.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.2.tgz#64471c5bdcc564c18f7c1d4df2e2297f2457c5ab" - integrity sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ== +json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== jsonschema@^1.4.0: version "1.4.1" @@ -2726,9 +2726,9 @@ junk@3.1.0: integrity sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ== keccak@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.2.tgz#4c2c6e8c54e04f2670ee49fa734eb9da152206e0" - integrity sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ== + version "3.0.3" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.3.tgz#4bc35ad917be1ef54ff246f904c2bbbf9ac61276" + integrity sha512-JZrLIAJWuZxKbCilMpNz5Vj7Vtb4scDG3dMXLOsbzBmQGyjwE61BbW7bJkfKKCShXiQZt3T6sBgALRtmd+nZaQ== dependencies: node-addon-api "^2.0.0" node-gyp-build "^4.2.0" @@ -2745,16 +2745,16 @@ leven@^3.1.0: integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== libsodium-wrappers@^0.7.6: - version "0.7.10" - resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.10.tgz#13ced44cacb0fc44d6ac9ce67d725956089ce733" - integrity sha512-pO3F1Q9NPLB/MWIhehim42b/Fwb30JNScCNh8TcQ/kIc+qGLQch8ag8wb0keK3EP5kbGakk1H8Wwo7v+36rNQg== + version "0.7.11" + resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.11.tgz#53bd20606dffcc54ea2122133c7da38218f575f7" + integrity sha512-SrcLtXj7BM19vUKtQuyQKiQCRJPgbpauzl3s0rSwD+60wtHqSUuqcoawlMDheCJga85nKOQwxNYQxf/CKAvs6Q== dependencies: - libsodium "^0.7.0" + libsodium "^0.7.11" -libsodium@^0.7.0: - version "0.7.10" - resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.10.tgz#c2429a7e4c0836f879d701fec2c8a208af024159" - integrity sha512-eY+z7hDrDKxkAK+QKZVNv92A5KYkxfvIshtBJkmg5TSiCnYqZP3i9OO9whE79Pwgm4jGaoHgkM4ao/b9Cyu4zQ== +libsodium@^0.7.11: + version "0.7.11" + resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.11.tgz#cd10aae7bcc34a300cc6ad0ac88fcca674cfbc2e" + integrity sha512-WPfJ7sS53I2s4iM58QxY3Inb83/6mjlYgcmZs7DJsvDlnmVUwNinBCi5vBT43P6bHRy01O4zsMU2CoVR6xJ40A== lines-and-columns@^1.1.6: version "1.2.4" @@ -2791,9 +2791,16 @@ long@^4.0.0: integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== long@^5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/long/-/long-5.2.1.tgz#e27595d0083d103d2fa2c20c7699f8e0c92b897f" - integrity sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A== + version "5.2.3" + resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" + integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" lru-cache@^6.0.0: version "6.0.0" @@ -2802,12 +2809,12 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== +make-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== dependencies: - semver "^6.0.0" + semver "^7.5.3" make-error@1.x: version "1.3.6" @@ -2866,9 +2873,9 @@ minimatch@^3.0.4, minimatch@^3.1.1: brace-expansion "^1.1.7" minimist@^1.2.3: - version "1.2.7" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" - integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== ms@2.1.2: version "2.1.2" @@ -2881,9 +2888,9 @@ multiformats@^9.5.4: integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg== nan@^2.13.2: - version "2.17.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" - integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== + version "2.18.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554" + integrity sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w== natural-compare@^1.4.0: version "1.4.0" @@ -2896,19 +2903,19 @@ node-addon-api@^2.0.0: integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== node-gyp-build@^4.2.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.5.0.tgz#7a64eefa0b21112f89f58379da128ac177f20e40" - integrity sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg== + version "4.6.1" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.1.tgz#24b6d075e5e391b8d5539d98c7fc5c210cac8a3e" + integrity sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ== node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.6: - version "2.0.8" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.8.tgz#0f349cdc8fcfa39a92ac0be9bc48b7706292b9ae" - integrity sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A== +node-releases@^2.0.13: + version "2.0.13" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" + integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== node-yaml@^4.0.1: version "4.0.1" @@ -3001,7 +3008,7 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -pbkdf2@^3.0.17, pbkdf2@^3.0.9: +pbkdf2@^3.0.17: version "3.1.2" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== @@ -3023,9 +3030,9 @@ picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== pirates@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + version "4.0.6" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" + integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== pkg-dir@^4.2.0: version "4.2.0" @@ -3043,12 +3050,12 @@ pretty-format@^27.0.0, pretty-format@^27.5.1: ansi-styles "^5.0.0" react-is "^17.0.1" -pretty-format@^29.3.1: - version "29.3.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.3.1.tgz#1841cac822b02b4da8971dacb03e8a871b4722da" - integrity sha512-FyLnmb1cYJV8biEIiRyzRFvs2lry7PPIvOqKVe1GCUEYg4YGmlx1qG9EJNMxArYm7piII4qb8UV1Pncq5dxmcg== +pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== dependencies: - "@jest/schemas" "^29.0.0" + "@jest/schemas" "^29.6.3" ansi-styles "^5.0.0" react-is "^18.0.0" @@ -3068,9 +3075,9 @@ prompts@^2.0.1: sisteransi "^1.0.5" protobufjs@~6.11.2: - version "6.11.3" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.3.tgz#637a527205a35caa4f3e2a9a4a13ddffe0e7af74" - integrity sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg== + version "6.11.4" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.4.tgz#29a412c38bf70d89e537b6d02d904a6f448173aa" + integrity sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw== dependencies: "@protobufjs/aspromise" "^1.1.2" "@protobufjs/base64" "^1.1.2" @@ -3091,7 +3098,12 @@ protoc-gen-ts@^0.8.7: resolved "https://registry.yarnpkg.com/protoc-gen-ts/-/protoc-gen-ts-0.8.7.tgz#63e4d9af2ad30b753acf6f739323d01fc9f80b52" integrity sha512-jr4VJey2J9LVYCV7EVyVe53g1VMw28cCmYJhBe5e3YX5wiyiDwgxWxeDf9oTqAe4P1bN/YGAkW2jhlH8LohwiQ== -randombytes@^2.0.1, randombytes@^2.1.0: +pure-rand@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.3.tgz#3c9e6b53c09e52ac3cedffc85ab7c1c7094b38cb" + integrity sha512-KddyFewCsO0j3+np81IQ+SweXLDnDQTs5s67BOnrYmYe/yNmUhttQyGsYzy8yUnoljGAQ9sl38YB4vH8ur7Y+w== + +randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== @@ -3109,9 +3121,9 @@ react-is@^18.0.0: integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== readable-stream@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== dependencies: inherits "^2.0.3" string_decoder "^1.1.1" @@ -3146,17 +3158,17 @@ resolve-from@^5.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== -resolve.exports@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" - integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== +resolve.exports@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" + integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== resolve@^1.1.6, resolve@^1.20.0: - version "1.22.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" - integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== + version "1.22.4" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.4.tgz#1dc40df46554cdaf8948a486a10f6ba1e2026c34" + integrity sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg== dependencies: - is-core-module "^2.9.0" + is-core-module "^2.13.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" @@ -3199,18 +3211,18 @@ secp256k1@^4.0.1: node-addon-api "^2.0.0" node-gyp-build "^4.2.0" -semver@7.x, semver@^7.3.5: - version "7.3.8" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" - integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== +semver@^6.3.0, semver@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.3.5, semver@^7.5.3, semver@^7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" -semver@^6.0.0, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - setimmediate@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" @@ -3417,17 +3429,17 @@ to-regex-range@^5.0.1: is-number "^7.0.0" ts-jest@^29.0.2: - version "29.0.3" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.0.3.tgz#63ea93c5401ab73595440733cefdba31fcf9cb77" - integrity sha512-Ibygvmuyq1qp/z3yTh9QTwVVAbFdDy/+4BtIQR2sp6baF2SJU/8CKK/hhnGIDY2L90Az2jIqTwZPnN2p+BweiQ== + version "29.1.1" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.1.tgz#f58fe62c63caf7bfcc5cc6472082f79180f0815b" + integrity sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA== dependencies: bs-logger "0.x" fast-json-stable-stringify "2.x" jest-util "^29.0.0" - json5 "^2.2.1" + json5 "^2.2.3" lodash.memoize "4.x" make-error "1.x" - semver "7.x" + semver "^7.5.3" yargs-parser "^21.0.1" tweetnacl-util@^0.15.1: @@ -3456,14 +3468,14 @@ typeforce@^1.11.5: integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== typescript@^4.6.2: - version "4.9.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" - integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== + version "4.9.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== -update-browserslist-db@^1.0.9: - version "1.0.10" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" - integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== +update-browserslist-db@^1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" + integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== dependencies: escalade "^3.1.1" picocolors "^1.0.0" @@ -3474,9 +3486,9 @@ util-deprecate@^1.0.1: integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== v8-to-istanbul@^9.0.1: - version "9.0.1" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz#b6f994b0b5d4ef255e17a0d17dc444a9f5132fa4" - integrity sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w== + version "9.1.0" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz#1b83ed4e397f58c85c266a570fc2558b5feb9265" + integrity sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA== dependencies: "@jridgewell/trace-mapping" "^0.3.12" "@types/istanbul-lib-coverage" "^2.0.1" @@ -3517,7 +3529,7 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^4.0.1: +write-file-atomic@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== @@ -3535,6 +3547,11 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + yallist@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" @@ -3546,9 +3563,9 @@ yargs-parser@^21.0.1, yargs-parser@^21.1.1: integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^17.3.1: - version "17.6.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.6.2.tgz#2e23f2944e976339a1ee00f18c77fedee8332541" - integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw== + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== dependencies: cliui "^8.0.1" escalade "^3.1.1" -- 2.45.2 From a1e7af7ad17bd3d6a2801209ee3e73705ad41f78 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sun, 17 Sep 2023 12:41:48 +0800 Subject: [PATCH 03/11] combine proto scripts --- scripts/create-proto-files.sh | 12 ----------- scripts/proto-gen.sh | 39 +++++++++++++++++++++++++++++++++++ scripts/remove-grpc.sh | 16 -------------- 3 files changed, 39 insertions(+), 28 deletions(-) delete mode 100755 scripts/create-proto-files.sh create mode 100755 scripts/proto-gen.sh delete mode 100755 scripts/remove-grpc.sh diff --git a/scripts/create-proto-files.sh b/scripts/create-proto-files.sh deleted file mode 100755 index ee3922e..0000000 --- a/scripts/create-proto-files.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# NOTE: protoc is required - -I=$(pwd)/proto -DEST_TS=$(pwd)/src/proto/ -mkdir -p $DEST_TS - -protoc \ - --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \ - --ts_out=$DEST_TS \ - --proto_path=$I \ - $(find $(pwd)/proto/vulcanize -iname "*.proto") diff --git a/scripts/proto-gen.sh b/scripts/proto-gen.sh new file mode 100755 index 0000000..d3c9060 --- /dev/null +++ b/scripts/proto-gen.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# NOTE: protoc is required + +set -e + +REPO_ROOT=$(pwd) +I=$REPO_ROOT/proto +DEST_TS=$REPO_ROOT/src/proto/ + +echo "Generating protobuf files" + +mkdir -p $DEST_TS + +protoc \ + --plugin=protoc-gen-ts=$REPO_ROOT/node_modules/.bin/protoc-gen-ts \ + --ts_out=$DEST_TS \ + --proto_path=$I \ + $(find $REPO_ROOT/proto/vulcanize -iname "*.proto") + +SED='sed -i' +if [[ "$OSTYPE" == "darwin"* ]]; then + SED='sed -i ""' +fi + +echo "Removing gRPC references..." + +for file in $(find $REPO_ROOT/src/proto -type f) +do + line=$(grep -n '@grpc/grpc-js' $file | cut -f1 -d':') + if [[ -n "$line" ]] && [[ "$line" -gt 0 ]]; then + echo "Processing file: $file" + $SED "${line}d" ${file} + functions=$(grep -n 'interface GrpcUnaryServiceInterface' $file | cut -f1 -d':') + $SED "${functions},\$d" ${file} + echo '}' >> $file + fi + $SED '1s#^#/* eslint-disable */\n#' $file + $SED '1s#^#// @ts-nocheck\n#' $file +done diff --git a/scripts/remove-grpc.sh b/scripts/remove-grpc.sh deleted file mode 100755 index c92ca12..0000000 --- a/scripts/remove-grpc.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -echo $PWD -for file in $(find src/proto -type f) -do - line=$(grep -n '@grpc/grpc-js' $file | cut -f1 -d':') - if [[ $line -gt 0 ]]; - then - echo "Processing file... $file" - sed -i "${line}d" ${file} - functions=$(grep -n 'interface GrpcUnaryServiceInterface' $file | cut -f1 -d':') - sed -i "${functions},\$d" ${file} - echo '}' >> $file - fi - sed -i '1s#^#/* eslint-disable */\n#' $file - sed -i '1s#^#// @ts-nocheck\n#' $file -done -- 2.45.2 From 07ab7336065ef09fc2a95a51ffc343e7ab2d6b10 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Wed, 10 Jan 2024 12:51:25 +0530 Subject: [PATCH 04/11] Update readme and test --- README.md | 12 ++++++++++++ src/naming.test.ts | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb95d33..2b947da 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,12 @@ Follow these steps to run the tests: - Run the tests with auctions enabled + - Remove laconicd data from previous run + + ```bash + rm -rf ~/.laconicd + ``` + - In laconicd repo run: ```bash @@ -54,6 +60,12 @@ Follow these steps to run the tests: - Run the tests for record and authority expiry + - Remove laconicd data from previous run + + ```bash + rm -rf ~/.laconicd + ``` + - In laconicd repo run: ```bash diff --git a/src/naming.test.ts b/src/naming.test.ts index 73494fa..472ff71 100644 --- a/src/naming.test.ts +++ b/src/naming.test.ts @@ -119,9 +119,9 @@ const namingTests = () => { await registry.setName({ crn, cid: watcherId }, privateKey, fee); // Query records should return it (some CRN points to it). - const records = await registry.queryRecords({ type: 'WebsiteRegistrationRecord', version: watcher.record.version }); - expect(records).toBeDefined(); - expect(records).toHaveLength(1); + const [record] = await registry.queryRecords({ type: 'WebsiteRegistrationRecord', version: watcher.record.version }); + expect(record).toBeDefined(); + expect(record.names).toHaveLength(1); }); test('Lookup name', async () => { -- 2.45.2 From f4ca0da918767f9d3b76ae3092b5a7bdccde9e12 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Tue, 26 Sep 2023 20:56:09 +0800 Subject: [PATCH 05/11] graphql schema update --- src/registry-client.ts | 19 ++++---- src/sdk.test.ts | 13 +++--- src/testing/data/watcher.yml | 9 ++-- src/util.ts | 88 +++++++++++++++++++----------------- 4 files changed, 70 insertions(+), 59 deletions(-) diff --git a/src/registry-client.ts b/src/registry-client.ts index ec49994..41c9fa7 100644 --- a/src/registry-client.ts +++ b/src/registry-client.ts @@ -10,15 +10,14 @@ const attributeField = ` attributes { key value { - null - int - float - string - boolean - json - reference { - id - } + ... on BooleanValue { bool: value } + ... on IntValue { int: value } + ... on FloatValue { float: value } + ... on StringValue { string: value } + ... on BytesValue { bytes: value } + ... on LinkValue { link: value } + ... on ArrayValue { array: value { __typename } } + ... on MapValue { map: value { key mapping: value { __typename } } } } } `; @@ -257,9 +256,11 @@ export class RegistryClient { attributes: Util.toGQLAttributes(attributes), all }; + console.debug("[DEBUG] variables", variables); let result = (await this._graph(query)(variables))['queryRecords']; result = RegistryClient.prepareAttributes('attributes')(result); + console.debug("[DEBUG] prepared result", result); return result; } diff --git a/src/sdk.test.ts b/src/sdk.test.ts index b59af12..b366c6b 100644 --- a/src/sdk.test.ts +++ b/src/sdk.test.ts @@ -50,18 +50,18 @@ describe('Querying', () => { expect(records.length).toBeGreaterThanOrEqual(1); const { attributes: { repo_registration_record_cid: record_repo_registration_record_cid } } = records[0]; - expect(repo_registration_record_cid).toBe(record_repo_registration_record_cid); + expect(repo_registration_record_cid).toStrictEqual(record_repo_registration_record_cid); }); test('Query records by attributes.', async () => { - const { version, name } = watcher.record; - const records = await registry.queryRecords({ version, name }, true); + const { version, url } = watcher.record; + const records = await registry.queryRecords({ version, url }, true); expect(records.length).toBe(1); [ watcher ] = records; - const { attributes: { version: recordVersion, name: recordName } } = watcher; + const { attributes: { version: recordVersion, url: recordName } } = watcher; expect(recordVersion).toBe(version); - expect(recordName).toBe(name); + expect(recordName).toBe(url); }); test('Query records by id.', async () => { @@ -75,6 +75,7 @@ describe('Querying', () => { expect(record.id).toBe(watcher.id); // temp fix expect(record.attributes.repo_registration_record_cid).toBeDefined(); - expect(record.attributes.repo_registration_record_cid).toHaveLength(46); + expect(record.attributes.repo_registration_record_cid).toHaveProperty("/"); + expect(record.attributes.repo_registration_record_cid["/"]).toHaveLength(46); }); }); diff --git a/src/testing/data/watcher.yml b/src/testing/data/watcher.yml index c1900b5..d9deb11 100644 --- a/src/testing/data/watcher.yml +++ b/src/testing/data/watcher.yml @@ -1,7 +1,10 @@ record: type: WebsiteRegistrationRecord url: 'https://cerc.io' - repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR + repo_registration_record_cid: + /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D + build_artifact_cid: + /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 + tls_cert_cid: + /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR version: 1.0.23 diff --git a/src/util.ts b/src/util.ts index e69a78d..d42b057 100644 --- a/src/util.ts +++ b/src/util.ts @@ -10,21 +10,21 @@ export class Util { /** * Sorts JSON object. */ - static sortJSON(object: any) { - if (object instanceof Array) { - for (let i = 0; i < object.length; i++) { - object[i] = Util.sortJSON(object[i]); + static sortJSON(obj: any) { + if (obj instanceof Array) { + for (let i = 0; i < obj.length; i++) { + obj[i] = Util.sortJSON(obj[i]); } - return object; + return obj; } - if (typeof object !== 'object' || object === null) return object; + if (typeof obj !== 'object' || obj === null) return obj; - let keys = Object.keys(object); + let keys = Object.keys(obj); keys = keys.sort(); const newObject: {[key: string]: any} = {}; for (let i = 0; i < keys.length; i++) { - newObject[keys[i]] = Util.sortJSON(object[keys[i]]); + newObject[keys[i]] = Util.sortJSON(obj[keys[i]]); } return newObject; } @@ -32,31 +32,41 @@ export class Util { /** * Marshal object into gql 'attributes' variable. */ - static toGQLAttributes(object: any) { + static toGQLAttributes(obj: any) { + console.log("[DEBUG] toGQLAttributes", obj); const vars: any[] = []; - - Object.keys(object).forEach(key => { - let type: string = typeof object[key]; - if (object[key] === null) { - vars.push({ key, value: { 'null': true } }); - } else if (type === 'number') { - type = (object[key] % 1 === 0) ? 'int' : 'float'; - vars.push({ key, value: { [type]: object[key] } }); - } else if (type === 'string') { - vars.push({ key, value: { 'string': object[key] } }); - } else if (type === 'boolean') { - vars.push({ key, value: { 'boolean': object[key] } }); - } else if (type === 'object') { - const nestedObject = object[key]; - if (nestedObject['/'] !== undefined) { - vars.push({ key, value: { 'reference': { id: nestedObject['/'] } } }); - } - } + Object.keys(obj).forEach(key => { + vars.push({ key, value: this.toGQLValue(obj[key]) }); }); - return vars; } + static toGQLValue(obj: any) { + if (obj === null) { + return null; + } + let type: string = typeof obj; + switch (type) { + case 'number': + type = (obj % 1 === 0) ? 'int' : 'float'; + return { [type]: obj }; + case 'string': + return { 'string': obj }; + case 'boolean': + return { 'boolean': obj }; + case 'object': + if (obj['/'] !== undefined) { + return { 'link': obj['/'] }; + } + if (obj instanceof Array) { + return { 'array': obj }; + } + return { 'map': obj }; + default: + throw new Error(`Unknown object type '${type}': ${obj}`); + } + } + /** * Unmarshal attributes array to object. */ @@ -64,24 +74,20 @@ export class Util { const res: {[key: string]: any} = {}; attributes.forEach(attr => { - if (attr.value.null) { - res[attr.key] = null; - } else if (attr.value.json) { - res[attr.key] = JSON.parse(attr.value.json); - } else if (attr.value.reference) { - // Convert GQL reference to IPLD style link. - const ref = attr.value.reference; - res[attr.key] = { '/': ref.id }; - } else { - const { values, null: n, ...types } = attr.value; - const value = Object.values(types).find(v => v !== null); - res[attr.key] = value; - } + res[attr.key] = this.fromGQLValue(attr.value); }); return res; } + static fromGQLValue(obj: any) { + const present = Object.keys(obj).find(k => obj[k] !== null); + if (present === undefined) { + throw new Error('Object has no non-null values'); + } + return obj[present]; + } + /** * Get record content ID. */ -- 2.45.2 From 918c4c695a17a3f00b61ca6d39ba66b5735171b9 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 18 Oct 2023 19:59:53 -0500 Subject: [PATCH 06/11] protobuf query update --- proto/vulcanize/registry/v1beta1/query.proto | 24 +- src/proto/vulcanize/registry/v1beta1/query.ts | 401 ++++++++++++++---- 2 files changed, 331 insertions(+), 94 deletions(-) diff --git a/proto/vulcanize/registry/v1beta1/query.proto b/proto/vulcanize/registry/v1beta1/query.proto index f30fdb4..fc8c5d2 100644 --- a/proto/vulcanize/registry/v1beta1/query.proto +++ b/proto/vulcanize/registry/v1beta1/query.proto @@ -67,17 +67,25 @@ message QueryParamsResponse { // QueryListRecordsRequest is request type for registry records list message QueryListRecordsRequest { - message ReferenceInput { + message LinkInput { string id = 1; } + message ArrayInput { + repeated ValueInput values = 1; + } + message MapInput { + map values = 1; + } message ValueInput { - string type = 1; - string string = 2; - int64 int = 3; - double float = 4; - bool boolean = 5; - ReferenceInput reference = 6; - repeated ValueInput values = 7; + oneof value { + string string = 1; + int64 int = 2; + double float = 3; + bool boolean = 4; + string link = 5; + ArrayInput array = 6; + MapInput map = 7; + } } message KeyValueInput { string key = 1; diff --git a/src/proto/vulcanize/registry/v1beta1/query.ts b/src/proto/vulcanize/registry/v1beta1/query.ts index 28a36e3..efa3ea9 100644 --- a/src/proto/vulcanize/registry/v1beta1/query.ts +++ b/src/proto/vulcanize/registry/v1beta1/query.ts @@ -239,7 +239,7 @@ export namespace vulcanize.registry.v1beta1 { } } export namespace QueryListRecordsRequest { - export class ReferenceInput extends pb_1.Message { + export class LinkInput extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { id?: string; @@ -260,8 +260,8 @@ export namespace vulcanize.registry.v1beta1 { } static fromObject(data: { id?: string; - }): ReferenceInput { - const message = new ReferenceInput({}); + }): LinkInput { + const message = new LinkInput({}); if (data.id != null) { message.id = data.id; } @@ -285,8 +285,8 @@ export namespace vulcanize.registry.v1beta1 { if (!w) return writer.getResultBuffer(); } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ReferenceInput { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ReferenceInput(); + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): LinkInput { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new LinkInput(); while (reader.nextField()) { if (reader.isEndGroup()) break; @@ -302,27 +302,220 @@ export namespace vulcanize.registry.v1beta1 { serializeBinary(): Uint8Array { return this.serialize(); } - static deserializeBinary(bytes: Uint8Array): ReferenceInput { - return ReferenceInput.deserialize(bytes); + static deserializeBinary(bytes: Uint8Array): LinkInput { + return LinkInput.deserialize(bytes); } } - export class ValueInput extends pb_1.Message { + export class ArrayInput extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { - type?: string; - string?: string; - int?: number; - float?: number; - boolean?: boolean; - reference?: QueryListRecordsRequest.ReferenceInput; values?: QueryListRecordsRequest.ValueInput[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { - if ("type" in data && data.type != undefined) { - this.type = data.type; + if ("values" in data && data.values != undefined) { + this.values = data.values; } + } + } + get values() { + return pb_1.Message.getRepeatedWrapperField(this, QueryListRecordsRequest.ValueInput, 1) as QueryListRecordsRequest.ValueInput[]; + } + set values(value: QueryListRecordsRequest.ValueInput[]) { + pb_1.Message.setRepeatedWrapperField(this, 1, value); + } + static fromObject(data: { + values?: ReturnType[]; + }): ArrayInput { + const message = new ArrayInput({}); + if (data.values != null) { + message.values = data.values.map(item => QueryListRecordsRequest.ValueInput.fromObject(item)); + } + return message; + } + toObject() { + const data: { + values?: ReturnType[]; + } = {}; + if (this.values != null) { + data.values = this.values.map((item: QueryListRecordsRequest.ValueInput) => item.toObject()); + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + if (this.values.length) + writer.writeRepeatedMessage(1, this.values, (item: QueryListRecordsRequest.ValueInput) => item.serialize(writer)); + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ArrayInput { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ArrayInput(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message.values, () => pb_1.Message.addToRepeatedWrapperField(message, 1, QueryListRecordsRequest.ValueInput.deserialize(reader), QueryListRecordsRequest.ValueInput)); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): ArrayInput { + return ArrayInput.deserialize(bytes); + } + } + export class MapInput extends pb_1.Message { + #one_of_decls: number[][] = []; + constructor(data?: any[] | { + values?: Map; + }) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { + if ("values" in data && data.values != undefined) { + this.values = data.values; + } + } + if (!this.values) + this.values = new Map(); + } + get values() { + return pb_1.Message.getField(this, 1) as any as Map; + } + set values(value: Map) { + pb_1.Message.setField(this, 1, value as any); + } + static fromObject(data: { + values?: { + [key: string]: ReturnType; + }; + }): MapInput { + const message = new MapInput({}); + if (typeof data.values == "object") { + message.values = new Map(Object.entries(data.values).map(([key, value]) => [key, QueryListRecordsRequest.ValueInput.fromObject(value)])); + } + return message; + } + toObject() { + const data: { + values?: { + [key: string]: ReturnType; + }; + } = {}; + if (this.values != null) { + data.values = (Object.fromEntries)((Array.from)(this.values).map(([key, value]) => [key, value.toObject()])); + } + return data; + } + serialize(): Uint8Array; + serialize(w: pb_1.BinaryWriter): void; + serialize(w?: pb_1.BinaryWriter): Uint8Array | void { + const writer = w || new pb_1.BinaryWriter(); + for (const [key, value] of this.values) { + writer.writeMessage(1, this.values, () => { + writer.writeString(1, key); + writer.writeMessage(2, value, () => value.serialize(writer)); + }); + } + if (!w) + return writer.getResultBuffer(); + } + static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MapInput { + const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MapInput(); + while (reader.nextField()) { + if (reader.isEndGroup()) + break; + switch (reader.getFieldNumber()) { + case 1: + reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.values as any, reader, reader.readString, () => { + let value; + reader.readMessage(message, () => value = QueryListRecordsRequest.ValueInput.deserialize(reader)); + return value; + })); + break; + default: reader.skipField(); + } + } + return message; + } + serializeBinary(): Uint8Array { + return this.serialize(); + } + static deserializeBinary(bytes: Uint8Array): MapInput { + return MapInput.deserialize(bytes); + } + } + export class ValueInput extends pb_1.Message { + #one_of_decls: number[][] = [[1, 2, 3, 4, 5, 6, 7]]; + constructor(data?: any[] | ({} & (({ + string?: string; + int?: never; + float?: never; + boolean?: never; + link?: never; + array?: never; + map?: never; + } | { + string?: never; + int?: number; + float?: never; + boolean?: never; + link?: never; + array?: never; + map?: never; + } | { + string?: never; + int?: never; + float?: number; + boolean?: never; + link?: never; + array?: never; + map?: never; + } | { + string?: never; + int?: never; + float?: never; + boolean?: boolean; + link?: never; + array?: never; + map?: never; + } | { + string?: never; + int?: never; + float?: never; + boolean?: never; + link?: string; + array?: never; + map?: never; + } | { + string?: never; + int?: never; + float?: never; + boolean?: never; + link?: never; + array?: QueryListRecordsRequest.ArrayInput; + map?: never; + } | { + string?: never; + int?: never; + float?: never; + boolean?: never; + link?: never; + array?: never; + map?: QueryListRecordsRequest.MapInput; + })))) { + super(); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); + if (!Array.isArray(data) && typeof data == "object") { if ("string" in data && data.string != undefined) { this.string = data.string; } @@ -335,72 +528,105 @@ export namespace vulcanize.registry.v1beta1 { if ("boolean" in data && data.boolean != undefined) { this.boolean = data.boolean; } - if ("reference" in data && data.reference != undefined) { - this.reference = data.reference; + if ("link" in data && data.link != undefined) { + this.link = data.link; } - if ("values" in data && data.values != undefined) { - this.values = data.values; + if ("array" in data && data.array != undefined) { + this.array = data.array; + } + if ("map" in data && data.map != undefined) { + this.map = data.map; } } } - get type() { + get string() { return pb_1.Message.getFieldWithDefault(this, 1, "") as string; } - set type(value: string) { - pb_1.Message.setField(this, 1, value); - } - get string() { - return pb_1.Message.getFieldWithDefault(this, 2, "") as string; - } set string(value: string) { - pb_1.Message.setField(this, 2, value); + pb_1.Message.setOneofField(this, 1, this.#one_of_decls[0], value); + } + get has_string() { + return pb_1.Message.getField(this, 1) != null; } get int() { - return pb_1.Message.getFieldWithDefault(this, 3, 0) as number; + return pb_1.Message.getFieldWithDefault(this, 2, 0) as number; } set int(value: number) { - pb_1.Message.setField(this, 3, value); + pb_1.Message.setOneofField(this, 2, this.#one_of_decls[0], value); + } + get has_int() { + return pb_1.Message.getField(this, 2) != null; } get float() { - return pb_1.Message.getFieldWithDefault(this, 4, 0) as number; + return pb_1.Message.getFieldWithDefault(this, 3, 0) as number; } set float(value: number) { - pb_1.Message.setField(this, 4, value); + pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value); + } + get has_float() { + return pb_1.Message.getField(this, 3) != null; } get boolean() { - return pb_1.Message.getFieldWithDefault(this, 5, false) as boolean; + return pb_1.Message.getFieldWithDefault(this, 4, false) as boolean; } set boolean(value: boolean) { - pb_1.Message.setField(this, 5, value); + pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value); } - get reference() { - return pb_1.Message.getWrapperField(this, QueryListRecordsRequest.ReferenceInput, 6) as QueryListRecordsRequest.ReferenceInput; + get has_boolean() { + return pb_1.Message.getField(this, 4) != null; } - set reference(value: QueryListRecordsRequest.ReferenceInput) { - pb_1.Message.setWrapperField(this, 6, value); + get link() { + return pb_1.Message.getFieldWithDefault(this, 5, "") as string; } - get has_reference() { + set link(value: string) { + pb_1.Message.setOneofField(this, 5, this.#one_of_decls[0], value); + } + get has_link() { + return pb_1.Message.getField(this, 5) != null; + } + get array() { + return pb_1.Message.getWrapperField(this, QueryListRecordsRequest.ArrayInput, 6) as QueryListRecordsRequest.ArrayInput; + } + set array(value: QueryListRecordsRequest.ArrayInput) { + pb_1.Message.setOneofWrapperField(this, 6, this.#one_of_decls[0], value); + } + get has_array() { return pb_1.Message.getField(this, 6) != null; } - get values() { - return pb_1.Message.getRepeatedWrapperField(this, QueryListRecordsRequest.ValueInput, 7) as QueryListRecordsRequest.ValueInput[]; + get map() { + return pb_1.Message.getWrapperField(this, QueryListRecordsRequest.MapInput, 7) as QueryListRecordsRequest.MapInput; } - set values(value: QueryListRecordsRequest.ValueInput[]) { - pb_1.Message.setRepeatedWrapperField(this, 7, value); + set map(value: QueryListRecordsRequest.MapInput) { + pb_1.Message.setOneofWrapperField(this, 7, this.#one_of_decls[0], value); + } + get has_map() { + return pb_1.Message.getField(this, 7) != null; + } + get value() { + const cases: { + [index: number]: "none" | "string" | "int" | "float" | "boolean" | "link" | "array" | "map"; + } = { + 0: "none", + 1: "string", + 2: "int", + 3: "float", + 4: "boolean", + 5: "link", + 6: "array", + 7: "map" + }; + return cases[pb_1.Message.computeOneofCase(this, [1, 2, 3, 4, 5, 6, 7])]; } static fromObject(data: { - type?: string; string?: string; int?: number; float?: number; boolean?: boolean; - reference?: ReturnType; - values?: ReturnType[]; + link?: string; + array?: ReturnType; + map?: ReturnType; }): ValueInput { const message = new ValueInput({}); - if (data.type != null) { - message.type = data.type; - } if (data.string != null) { message.string = data.string; } @@ -413,27 +639,27 @@ export namespace vulcanize.registry.v1beta1 { if (data.boolean != null) { message.boolean = data.boolean; } - if (data.reference != null) { - message.reference = QueryListRecordsRequest.ReferenceInput.fromObject(data.reference); + if (data.link != null) { + message.link = data.link; } - if (data.values != null) { - message.values = data.values.map(item => QueryListRecordsRequest.ValueInput.fromObject(item)); + if (data.array != null) { + message.array = QueryListRecordsRequest.ArrayInput.fromObject(data.array); + } + if (data.map != null) { + message.map = QueryListRecordsRequest.MapInput.fromObject(data.map); } return message; } toObject() { const data: { - type?: string; string?: string; int?: number; float?: number; boolean?: boolean; - reference?: ReturnType; - values?: ReturnType[]; + link?: string; + array?: ReturnType; + map?: ReturnType; } = {}; - if (this.type != null) { - data.type = this.type; - } if (this.string != null) { data.string = this.string; } @@ -446,11 +672,14 @@ export namespace vulcanize.registry.v1beta1 { if (this.boolean != null) { data.boolean = this.boolean; } - if (this.reference != null) { - data.reference = this.reference.toObject(); + if (this.link != null) { + data.link = this.link; } - if (this.values != null) { - data.values = this.values.map((item: QueryListRecordsRequest.ValueInput) => item.toObject()); + if (this.array != null) { + data.array = this.array.toObject(); + } + if (this.map != null) { + data.map = this.map.toObject(); } return data; } @@ -458,20 +687,20 @@ export namespace vulcanize.registry.v1beta1 { serialize(w: pb_1.BinaryWriter): void; serialize(w?: pb_1.BinaryWriter): Uint8Array | void { const writer = w || new pb_1.BinaryWriter(); - if (this.type.length) - writer.writeString(1, this.type); - if (this.string.length) - writer.writeString(2, this.string); - if (this.int != 0) - writer.writeInt64(3, this.int); - if (this.float != 0) - writer.writeDouble(4, this.float); - if (this.boolean != false) - writer.writeBool(5, this.boolean); - if (this.has_reference) - writer.writeMessage(6, this.reference, () => this.reference.serialize(writer)); - if (this.values.length) - writer.writeRepeatedMessage(7, this.values, (item: QueryListRecordsRequest.ValueInput) => item.serialize(writer)); + if (this.has_string) + writer.writeString(1, this.string); + if (this.has_int) + writer.writeInt64(2, this.int); + if (this.has_float) + writer.writeDouble(3, this.float); + if (this.has_boolean) + writer.writeBool(4, this.boolean); + if (this.has_link) + writer.writeString(5, this.link); + if (this.has_array) + writer.writeMessage(6, this.array, () => this.array.serialize(writer)); + if (this.has_map) + writer.writeMessage(7, this.map, () => this.map.serialize(writer)); if (!w) return writer.getResultBuffer(); } @@ -482,25 +711,25 @@ export namespace vulcanize.registry.v1beta1 { break; switch (reader.getFieldNumber()) { case 1: - message.type = reader.readString(); - break; - case 2: message.string = reader.readString(); break; - case 3: + case 2: message.int = reader.readInt64(); break; - case 4: + case 3: message.float = reader.readDouble(); break; - case 5: + case 4: message.boolean = reader.readBool(); break; + case 5: + message.link = reader.readString(); + break; case 6: - reader.readMessage(message.reference, () => message.reference = QueryListRecordsRequest.ReferenceInput.deserialize(reader)); + reader.readMessage(message.array, () => message.array = QueryListRecordsRequest.ArrayInput.deserialize(reader)); break; case 7: - reader.readMessage(message.values, () => pb_1.Message.addToRepeatedWrapperField(message, 7, QueryListRecordsRequest.ValueInput.deserialize(reader), QueryListRecordsRequest.ValueInput)); + reader.readMessage(message.map, () => message.map = QueryListRecordsRequest.MapInput.deserialize(reader)); break; default: reader.skipField(); } -- 2.45.2 From 4dfc42476277a536d754d0782f44906496335a78 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Fri, 20 Oct 2023 01:47:02 -0500 Subject: [PATCH 07/11] rm debugs --- src/registry-client.ts | 2 -- src/util.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/src/registry-client.ts b/src/registry-client.ts index 41c9fa7..5772348 100644 --- a/src/registry-client.ts +++ b/src/registry-client.ts @@ -256,11 +256,9 @@ export class RegistryClient { attributes: Util.toGQLAttributes(attributes), all }; - console.debug("[DEBUG] variables", variables); let result = (await this._graph(query)(variables))['queryRecords']; result = RegistryClient.prepareAttributes('attributes')(result); - console.debug("[DEBUG] prepared result", result); return result; } diff --git a/src/util.ts b/src/util.ts index d42b057..93f6ce6 100644 --- a/src/util.ts +++ b/src/util.ts @@ -33,7 +33,6 @@ export class Util { * Marshal object into gql 'attributes' variable. */ static toGQLAttributes(obj: any) { - console.log("[DEBUG] toGQLAttributes", obj); const vars: any[] = []; Object.keys(obj).forEach(key => { vars.push({ key, value: this.toGQLValue(obj[key]) }); -- 2.45.2 From 18cb09669a544ef7b26ebafdd91f1a6b3376d995 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Thu, 11 Jan 2024 14:21:34 +0530 Subject: [PATCH 08/11] Update script in readme --- DEVELOPMENT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index b706e38..ed63457 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -12,7 +12,7 @@ Run following scripts when [proto files](./proto/) are updated. 2. Generate typescript code for the proto files ```bash - ./scripts/create-proto-files.sh + ./scripts/proto-gen.sh ``` 3. Remove GRPC code from generated code -- 2.45.2 From 17b21c47508f8d0294ea888a848cab7c1051683a Mon Sep 17 00:00:00 2001 From: Nabarun Date: Thu, 11 Jan 2024 08:58:05 +0530 Subject: [PATCH 09/11] Fix tests for querying records with undefined filter value --- DEVELOPMENT.md | 8 -------- scripts/proto-gen.sh | 1 + src/bond.test.ts | 18 +++++++++--------- src/sdk.test.ts | 2 +- src/util.ts | 8 +++++++- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index ed63457..056bb47 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -14,11 +14,3 @@ Run following scripts when [proto files](./proto/) are updated. ```bash ./scripts/proto-gen.sh ``` - -3. Remove GRPC code from generated code - - ```bash - ./scripts/remove-grpc.sh - ``` - - Reference: https://github.com/tharsis/evmosjs/tree/main/packages/proto#note diff --git a/scripts/proto-gen.sh b/scripts/proto-gen.sh index d3c9060..e5fd389 100755 --- a/scripts/proto-gen.sh +++ b/scripts/proto-gen.sh @@ -23,6 +23,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then fi echo "Removing gRPC references..." +# https://github.com/tharsis/evmosjs/tree/main/packages/proto#note for file in $(find $REPO_ROOT/src/proto -type f) do diff --git a/src/bond.test.ts b/src/bond.test.ts index 2b7f93c..cfb4e99 100644 --- a/src/bond.test.ts +++ b/src/bond.test.ts @@ -97,17 +97,17 @@ const bondTests = () => { // Create a new record. version1 = await publishNewWatcherVersion(bondId1); - let [record1] = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version1 }, true); + let [record1] = await registry.queryRecords({ type: watcher.record.type, version: version1 }, true); expect(record1.bondId).toBe(bondId1); // Dissociate record, query and confirm. await registry.dissociateBond({ recordId: record1.id }, privateKey, fee); - [record1] = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version1 }, true); + [record1] = await registry.queryRecords({ type: watcher.record.type, version: version1 }, true); expect(record1.bondId).toBe(''); // Associate record with bond, query and confirm. await registry.associateBond({ recordId: record1.id, bondId: bondId1 }, privateKey, fee); - [record1] = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version1 }, true); + [record1] = await registry.queryRecords({ type: watcher.record.type, version: version1 }, true); expect(record1.bondId).toBe(bondId1); }); @@ -117,9 +117,9 @@ const bondTests = () => { // Check version1, version2 as associated with bondId1. let records; - records = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version1 }, true); + records = await registry.queryRecords({ type: watcher.record.type, version: version1 }, true); expect(records[0].bondId).toBe(bondId1); - records = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version2 }, true); + records = await registry.queryRecords({ type: watcher.record.type, version: version2 }, true); expect(records[0].bondId).toBe(bondId1); // Create another bond. @@ -131,16 +131,16 @@ const bondTests = () => { // Reassociate records from bondId1 to bondId2, verify change. await registry.reassociateRecords({ oldBondId: bondId1, newBondId: bondId2 }, privateKey, fee); - records = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version1 }, true); + records = await registry.queryRecords({ type: watcher.record.type, version: version1 }, true); expect(records[0].bondId).toBe(bondId2); - records = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version2 }, true); + records = await registry.queryRecords({ type: watcher.record.type, version: version2 }, true); expect(records[0].bondId).toBe(bondId2); // Dissociate all records from bond, verify change. await registry.dissociateRecords({ bondId: bondId2 }, privateKey, fee); - records = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version1 }, true); + records = await registry.queryRecords({ type: watcher.record.type, version: version1 }, true); expect(records[0].bondId).toBe(''); - records = await registry.queryRecords({ type: watcher.record.type, name: watcher.record.name, version: version2 }, true); + records = await registry.queryRecords({ type: watcher.record.type, version: version2 }, true); expect(records[0].bondId).toBe(''); }); }; diff --git a/src/sdk.test.ts b/src/sdk.test.ts index b366c6b..56ce747 100644 --- a/src/sdk.test.ts +++ b/src/sdk.test.ts @@ -55,7 +55,7 @@ describe('Querying', () => { test('Query records by attributes.', async () => { const { version, url } = watcher.record; - const records = await registry.queryRecords({ version, url }, true); + const records = await registry.queryRecords({ version, url, type: undefined }, true); expect(records.length).toBe(1); [ watcher ] = records; diff --git a/src/util.ts b/src/util.ts index 93f6ce6..c42b444 100644 --- a/src/util.ts +++ b/src/util.ts @@ -35,7 +35,11 @@ export class Util { static toGQLAttributes(obj: any) { const vars: any[] = []; Object.keys(obj).forEach(key => { - vars.push({ key, value: this.toGQLValue(obj[key]) }); + const value = this.toGQLValue(obj[key]); + + if (value !== undefined) { + vars.push({ key, value }); + } }); return vars; } @@ -61,6 +65,8 @@ export class Util { return { 'array': obj }; } return { 'map': obj }; + case 'undefined': + return undefined; default: throw new Error(`Unknown object type '${type}': ${obj}`); } -- 2.45.2 From e92bf8e431758651a9e7655fda537525b10b51a3 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 11 Jan 2024 15:31:50 +0530 Subject: [PATCH 10/11] Select one level deep values for array type attributes from GQL query result --- src/registry-client.ts | 11 ++++++++++- src/util.ts | 13 +++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/registry-client.ts b/src/registry-client.ts index 5772348..ecff7f6 100644 --- a/src/registry-client.ts +++ b/src/registry-client.ts @@ -16,7 +16,16 @@ const attributeField = ` ... on StringValue { string: value } ... on BytesValue { bytes: value } ... on LinkValue { link: value } - ... on ArrayValue { array: value { __typename } } + ... on ArrayValue { + array: value { + ... on BooleanValue { bool: value } + ... on IntValue { int: value } + ... on FloatValue { float: value } + ... on StringValue { string: value } + ... on BytesValue { bytes: value } + ... on LinkValue { link: value } + } + } ... on MapValue { map: value { key mapping: value { __typename } } } } } diff --git a/src/util.ts b/src/util.ts index c42b444..222742d 100644 --- a/src/util.ts +++ b/src/util.ts @@ -36,7 +36,7 @@ export class Util { const vars: any[] = []; Object.keys(obj).forEach(key => { const value = this.toGQLValue(obj[key]); - + if (value !== undefined) { vars.push({ key, value }); } @@ -86,13 +86,22 @@ export class Util { } static fromGQLValue(obj: any) { + // Get first non-null key const present = Object.keys(obj).find(k => obj[k] !== null); if (present === undefined) { throw new Error('Object has no non-null values'); } + + // Create an array if array type attribute + if (present === 'array') { + return obj[present].map((e: any) => { + return this.fromGQLValue(e); + }); + } + return obj[present]; } - + /** * Get record content ID. */ -- 2.45.2 From 7cd1f12249357872ca6123600cb3a749feaa981d Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 15 Jan 2024 09:43:24 +0530 Subject: [PATCH 11/11] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1dbd9bd..f4b2de2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cerc-io/laconic-sdk", - "version": "0.1.13", + "version": "0.1.14", "main": "dist/index.js", "types": "dist/index.d.ts", "repository": "git@github.com:cerc-io/laconic-sdk.git", -- 2.45.2