{"version":3,"file":"MultichainRoutingService-method-action-types.cjs","sourceRoot":"","sources":["../../src/multichain/MultichainRoutingService-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MultichainRoutingService } from './MultichainRoutingService';\n\n/**\n * Handle an incoming JSON-RPC request tied to a specific scope by routing\n * to either a protocol Snap or an account Snap.\n *\n * Note: Addresses are considered case-sensitive by the MultichainRoutingService as\n * not all non-EVM chains are case-insensitive.\n *\n * @param options - An options bag.\n * @param options.connectedAddresses - Addresses currently connected to the\n * origin for the requested scope.\n * @param options.origin - The origin of the RPC request.\n * @param options.request - The JSON-RPC request.\n * @param options.scope - The CAIP-2 scope for the request.\n * @returns The response from the chosen Snap.\n * @throws If no handler was found.\n */\nexport type MultichainRoutingServiceHandleRequestAction = {\n  type: `MultichainRoutingService:handleRequest`;\n  handler: MultichainRoutingService['handleRequest'];\n};\n\n/**\n * Get a list of supported methods for a given scope.\n * This combines both protocol and account Snaps supported methods.\n *\n * @param scope - The CAIP-2 scope.\n * @returns A list of supported methods.\n */\nexport type MultichainRoutingServiceGetSupportedMethodsAction = {\n  type: `MultichainRoutingService:getSupportedMethods`;\n  handler: MultichainRoutingService['getSupportedMethods'];\n};\n\n/**\n * Get a list of supported accounts for a given scope.\n *\n * @param scope - The CAIP-2 scope.\n * @returns A list of CAIP-10 addresses.\n */\nexport type MultichainRoutingServiceGetSupportedAccountsAction = {\n  type: `MultichainRoutingService:getSupportedAccounts`;\n  handler: MultichainRoutingService['getSupportedAccounts'];\n};\n\n/**\n * Determine whether a given CAIP-2 scope is supported by the router.\n *\n * @param scope - The CAIP-2 scope.\n * @returns True if the router can service the scope, otherwise false.\n */\nexport type MultichainRoutingServiceIsSupportedScopeAction = {\n  type: `MultichainRoutingService:isSupportedScope`;\n  handler: MultichainRoutingService['isSupportedScope'];\n};\n\n/**\n * Union of all MultichainRoutingService action types.\n */\nexport type MultichainRoutingServiceMethodActions =\n  | MultichainRoutingServiceHandleRequestAction\n  | MultichainRoutingServiceGetSupportedMethodsAction\n  | MultichainRoutingServiceGetSupportedAccountsAction\n  | MultichainRoutingServiceIsSupportedScopeAction;\n"]}