You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -165,13 +166,19 @@ export function validateAddEthereumChainParams(params) {
165
166
* @param {string} chainId - The chainId being switched to.
166
167
* @param {string} networkClientId - The network client being switched to.
167
168
* @param {object} hooks - The hooks object.
169
+
* @param {string} hooks.origin - The origin sending this request.
170
+
* @param {boolean} hooks.isAddFlow - Variable to check if its add flow.
168
171
* @param {boolean} [hooks.autoApprove] - A boolean indicating whether the request should prompt the user or be automatically approved.
169
172
* @param {Function} hooks.setActiveNetwork - The callback to change the current network for the origin.
170
173
* @param {Function} hooks.getCaveat - The callback to get the CAIP-25 caveat for the origin.
171
174
* @param {Function} hooks.requestPermittedChainsPermissionForOrigin - The callback to request a new permittedChains-equivalent CAIP-25 permission.
172
175
* @param {Function} hooks.requestPermittedChainsPermissionIncrementalForOrigin - The callback to add a new chain to the permittedChains-equivalent CAIP-25 permission.
173
176
* @param {Function} hooks.setTokenNetworkFilter - The callback to set the token network filter.
174
177
* @param {Function} hooks.rejectApprovalRequestsForOrigin - The callback to reject all pending approval requests for the origin.
178
+
* @param {Function} hooks.requestUserApproval - The callback to trigger user approval flow.
179
+
* @param {Function} hooks.hasApprovalRequestsForOrigin - Function to check if there are pending approval requests from the origin.
180
+
* @param {object} hooks.toNetworkConfiguration - Network configutation of network switching to.
0 commit comments