diff --git a/package.json b/package.json index 730c5e9315b..d49811c7c09 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "@toruslabs/fetch-node-details": "^14.0.1", "@toruslabs/torus.js": "^15.0.4", "@walletconnect/react-native-compat": "^2.16.2", - "@walletconnect/utils": "^2.16.1", + "@walletconnect/utils": "^2.16.2", "@walletconnect/web3wallet": "^1.15.1", "bignumber.js": "^9.1.2", "clevertap-react-native": "^2.2.1", diff --git a/test/RootStateSchema.json b/test/RootStateSchema.json index 550615e97d8..054c27fc3bd 100644 --- a/test/RootStateSchema.json +++ b/test/RootStateSchema.json @@ -1036,6 +1036,51 @@ ], "type": "object" }, + "CoreTypes.Metadata_1": { + "additionalProperties": false, + "properties": { + "description": { + "type": "string" + }, + "icons": { + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "redirect": { + "additionalProperties": false, + "properties": { + "linkMode": { + "type": "boolean" + }, + "native": { + "type": "string" + }, + "universal": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + }, + "verifyUrl": { + "type": "string" + } + }, + "required": [ + "description", + "icons", + "name", + "url" + ], + "type": "object" + }, "CreateWalletClaimHistory": { "additionalProperties": false, "properties": { @@ -3240,14 +3285,26 @@ "additionalProperties": false, "type": "object" }, + "ProposalTypes.OptionalNamespaces_1": { + "additionalProperties": false, + "type": "object" + }, "ProposalTypes.RequiredNamespaces": { "additionalProperties": false, "type": "object" }, + "ProposalTypes.RequiredNamespaces_1": { + "additionalProperties": false, + "type": "object" + }, "ProposalTypes.SessionProperties": { "additionalProperties": false, "type": "object" }, + "ProposalTypes.SessionProperties_1": { + "additionalProperties": false, + "type": "object" + }, "ProposalTypes.Struct": { "additionalProperties": false, "properties": { @@ -3261,7 +3318,7 @@ "type": "number" }, "optionalNamespaces": { - "$ref": "#/definitions/ProposalTypes.OptionalNamespaces" + "$ref": "#/definitions/ProposalTypes.OptionalNamespaces_1" }, "pairingTopic": { "type": "string" @@ -3270,7 +3327,7 @@ "additionalProperties": false, "properties": { "metadata": { - "$ref": "#/definitions/CoreTypes.Metadata" + "$ref": "#/definitions/CoreTypes.Metadata_1" }, "publicKey": { "type": "string" @@ -3284,15 +3341,15 @@ }, "relays": { "items": { - "$ref": "#/definitions/RelayerTypes.ProtocolOptions" + "$ref": "#/definitions/RelayerTypes.ProtocolOptions_1" }, "type": "array" }, "requiredNamespaces": { - "$ref": "#/definitions/ProposalTypes.RequiredNamespaces" + "$ref": "#/definitions/ProposalTypes.RequiredNamespaces_1" }, "sessionProperties": { - "$ref": "#/definitions/ProposalTypes.SessionProperties" + "$ref": "#/definitions/ProposalTypes.SessionProperties_1" } }, "required": [ @@ -3440,6 +3497,21 @@ ], "type": "object" }, + "RelayerTypes.ProtocolOptions_1": { + "additionalProperties": false, + "properties": { + "data": { + "type": "string" + }, + "protocol": { + "type": "string" + } + }, + "required": [ + "protocol" + ], + "type": "object" + }, "Screens": { "enum": [ "AccounSetupFailureScreen", diff --git a/yarn.lock b/yarn.lock index f660720830c..0270b190e94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5061,7 +5061,7 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.16.1", "@walletconnect/types@^2.13.3": +"@walletconnect/types@2.16.1": version "2.16.1" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.16.1.tgz#6583d458d3f7b1919d482ba516ccb7878ec8c91f" integrity sha512-9P4RG4VoDEF+yBF/n2TF12gsvT/aTaeZTVDb/AOayafqiPnmrQZMKmNCJJjq1sfdsDcHXFcZWMGsuCeSJCmrXA== @@ -5073,7 +5073,19 @@ "@walletconnect/logger" "2.1.2" events "3.3.0" -"@walletconnect/utils@2.16.1", "@walletconnect/utils@^2.10.1", "@walletconnect/utils@^2.16.1": +"@walletconnect/types@2.16.2", "@walletconnect/types@^2.13.3": + version "2.16.2" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.16.2.tgz#a8bd9d09e6248f72c79686881e4aae46306e6ea0" + integrity sha512-IIV9kQh6b/WpwhfgPixpziE+8XK/FtdnfvN1oOMs5h+lgwr46OJknPY2p7eS6vvdvEP3xMEc1Kbu1i4tlnroiw== + dependencies: + "@walletconnect/events" "1.0.1" + "@walletconnect/heartbeat" "1.2.2" + "@walletconnect/jsonrpc-types" "1.0.4" + "@walletconnect/keyvaluestorage" "1.1.1" + "@walletconnect/logger" "2.1.2" + events "3.3.0" + +"@walletconnect/utils@2.16.1": version "2.16.1" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.16.1.tgz#2099cc2bd16b0edc32022f64aa2c2c323b45d1d4" integrity sha512-aoQirVoDoiiEtYeYDtNtQxFzwO/oCrz9zqeEEXYJaAwXlGVTS34KFe7W3/Rxd/pldTYKFOZsku2EzpISfH8Wsw== @@ -5095,6 +5107,28 @@ query-string "7.1.3" uint8arrays "3.1.0" +"@walletconnect/utils@^2.10.1", "@walletconnect/utils@^2.16.2": + version "2.16.2" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.16.2.tgz#e7afbec7bf7ad7a4e86b2c5de233df3865d8cd23" + integrity sha512-CEMxMCIqvwXd8YIEXfBoCiWY8DtUevJ/w14Si+cmTHWHBDWKRZll7+QUXgICIBx5kyX3GMAKNABaTlg2A2CPSg== + dependencies: + "@stablelib/chacha20poly1305" "1.0.1" + "@stablelib/hkdf" "1.0.1" + "@stablelib/random" "1.0.2" + "@stablelib/sha256" "1.0.1" + "@stablelib/x25519" "1.0.3" + "@walletconnect/relay-api" "1.0.11" + "@walletconnect/relay-auth" "1.0.4" + "@walletconnect/safe-json" "1.0.2" + "@walletconnect/time" "1.0.2" + "@walletconnect/types" "2.16.2" + "@walletconnect/window-getters" "1.0.1" + "@walletconnect/window-metadata" "1.0.1" + detect-browser "5.3.0" + elliptic "^6.5.7" + query-string "7.1.3" + uint8arrays "3.1.0" + "@walletconnect/web3wallet@^1.15.1": version "1.15.1" resolved "https://registry.yarnpkg.com/@walletconnect/web3wallet/-/web3wallet-1.15.1.tgz#47d041c07e2b12824ade85e53ed50c89536ef37b"