diff --git a/package.json b/package.json index 954888254a8..46e9d589a28 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.1", - "@walletconnect/utils": "^2.15.2", + "@walletconnect/utils": "^2.16.0", "@walletconnect/web3wallet": "^1.14.2", "bignumber.js": "^9.1.2", "clevertap-react-native": "^2.2.1", diff --git a/test/RootStateSchema.json b/test/RootStateSchema.json index bd1fdcddb32..c3d854e66d3 100644 --- a/test/RootStateSchema.json +++ b/test/RootStateSchema.json @@ -988,6 +988,51 @@ "type": "object" }, "CoreTypes.Metadata": { + "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" + }, + "CoreTypes.Metadata_1": { "additionalProperties": false, "properties": { "description": { @@ -3073,14 +3118,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": { @@ -3094,7 +3151,7 @@ "type": "number" }, "optionalNamespaces": { - "$ref": "#/definitions/ProposalTypes.OptionalNamespaces" + "$ref": "#/definitions/ProposalTypes.OptionalNamespaces_1" }, "pairingTopic": { "type": "string" @@ -3103,7 +3160,7 @@ "additionalProperties": false, "properties": { "metadata": { - "$ref": "#/definitions/CoreTypes.Metadata" + "$ref": "#/definitions/CoreTypes.Metadata_1" }, "publicKey": { "type": "string" @@ -3117,15 +3174,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": [ @@ -3273,6 +3330,21 @@ ], "type": "object" }, + "RelayerTypes.ProtocolOptions_1": { + "additionalProperties": false, + "properties": { + "data": { + "type": "string" + }, + "protocol": { + "type": "string" + } + }, + "required": [ + "protocol" + ], + "type": "object" + }, "Screens": { "enum": [ "AccounSetupFailureScreen", @@ -3520,6 +3592,13 @@ }, "topic": { "type": "string" + }, + "transportType": { + "enum": [ + "link_mode", + "relay" + ], + "type": "string" } }, "required": [ diff --git a/yarn.lock b/yarn.lock index 008774779be..903584a089f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5061,7 +5061,7 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.15.2", "@walletconnect/types@^2.13.3": +"@walletconnect/types@2.15.2": version "2.15.2" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.15.2.tgz#b9e1746d8c7b9c7b08ed8f6696c86e44b645fe52" integrity sha512-TGnQZYWZJJ3I8dqgpMPwhO1IRXDuY8/tWPI0nNWJDyTK7b3E9prDGugnPmDDjpTYVoETnUTgW/jQaHNTq4yV7Q== @@ -5073,7 +5073,19 @@ "@walletconnect/logger" "2.1.2" events "3.3.0" -"@walletconnect/utils@2.15.2", "@walletconnect/utils@^2.10.1", "@walletconnect/utils@^2.15.2": +"@walletconnect/types@2.16.1", "@walletconnect/types@^2.13.3": + version "2.16.1" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.16.1.tgz#6583d458d3f7b1919d482ba516ccb7878ec8c91f" + integrity sha512-9P4RG4VoDEF+yBF/n2TF12gsvT/aTaeZTVDb/AOayafqiPnmrQZMKmNCJJjq1sfdsDcHXFcZWMGsuCeSJCmrXA== + 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.15.2": version "2.15.2" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.15.2.tgz#6fba3e28d00afe15b499409d609e3faafcef1887" integrity sha512-H+fNH9cHDezdaEiEsO7/3URSIzqhumuacwB/+0PX0sSCoktmU9AfTqA8fJGG43zOPixleBqOymzO6owB1Y7jtQ== @@ -5095,6 +5107,28 @@ query-string "7.1.3" uint8arrays "3.1.0" +"@walletconnect/utils@^2.10.1", "@walletconnect/utils@^2.16.0": + version "2.16.1" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.16.1.tgz#2099cc2bd16b0edc32022f64aa2c2c323b45d1d4" + integrity sha512-aoQirVoDoiiEtYeYDtNtQxFzwO/oCrz9zqeEEXYJaAwXlGVTS34KFe7W3/Rxd/pldTYKFOZsku2EzpISfH8Wsw== + 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.1" + "@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.14.2": version "1.14.2" resolved "https://registry.yarnpkg.com/@walletconnect/web3wallet/-/web3wallet-1.14.2.tgz#cace0f3b662c08183f60e79b5f491e116e1ec9fd"