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AQ,EAAE,UAAU;QACpB,OAAO,EAAE,uBAAuB;KACjC;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,uBAAuB;KACjC;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,uBAAuB;KACjC;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,yBAAyB;KACnC;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,4BAA4B;KACtC;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,UAAU;QACpB,OAAO,EACL,0EAA0E;KAC7E;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,kEAAkE;KAC5E;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,+CAA+C;KACzD;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,wDAAwD;KAClE;CACF,CAAC;AACF,wDAAwD","sourcesContent":["export const errorCodes = {\n  rpc: {\n    invalidInput: -32000,\n    resourceNotFound: -32001,\n    resourceUnavailable: -32002,\n    transactionRejected: -32003,\n    methodNotSupported: -32004,\n    limitExceeded: -32005,\n    parse: -32700,\n    invalidRequest: -32600,\n    methodNotFound: -32601,\n    invalidParams: -32602,\n    internal: -32603,\n  },\n  provider: {\n    userRejectedRequest: 4001,\n    unauthorized: 4100,\n    unsupportedMethod: 4200,\n    disconnected: 4900,\n    chainDisconnected: 4901,\n  },\n};\n\n/* eslint-disable @typescript-eslint/naming-convention */\nexport const errorValues = {\n  '-32700': {\n    standard: 'JSON RPC 2.0',\n    message:\n      'Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.',\n  },\n  '-32600': {\n    standard: 'JSON RPC 2.0',\n    message: 'The JSON sent is not a valid Request object.',\n  },\n  '-32601': {\n    standard: 'JSON RPC 2.0',\n    message: 'The method does not exist / is not available.',\n  },\n  '-32602': {\n    standard: 'JSON RPC 2.0',\n    message: 'Invalid method parameter(s).',\n  },\n  '-32603': {\n    standard: 'JSON RPC 2.0',\n    message: 'Internal JSON-RPC error.',\n  },\n  '-32000': {\n    standard: 'EIP-1474',\n    message: 'Invalid input.',\n  },\n  '-32001': {\n    standard: 'EIP-1474',\n    message: 'Resource not found.',\n  },\n  '-32002': {\n    standard: 'EIP-1474',\n    message: 'Resource unavailable.',\n  },\n  '-32003': {\n    standard: 'EIP-1474',\n    message: 'Transaction rejected.',\n  },\n  '-32004': {\n    standard: 'EIP-1474',\n    message: 'Method not supported.',\n  },\n  '-32005': {\n    standard: 'EIP-1474',\n    message: 'Request limit exceeded.',\n  },\n  '4001': {\n    standard: 'EIP-1193',\n    message: 'User rejected the request.',\n  },\n  '4100': {\n    standard: 'EIP-1193',\n    message:\n      'The requested account and/or method has not been authorized by the user.',\n  },\n  '4200': {\n    standard: 'EIP-1193',\n    message: 'The requested method is not supported by this Ethereum provider.',\n  },\n  '4900': {\n    standard: 'EIP-1193',\n    message: 'The provider is disconnected from all chains.',\n  },\n  '4901': {\n    standard: 'EIP-1193',\n    message: 'The provider is disconnected from the specified chain.',\n  },\n};\n/* eslint-enable @typescript-eslint/naming-convention */\n"]}