{"id":23107762,"url":"https://github.com/kleros/court-functions","last_synced_at":"2025-04-03T22:44:05.931Z","repository":{"id":186699351,"uuid":"675368196","full_name":"kleros/court-functions","owner":"kleros","description":"Court lambda functions","archived":false,"fork":false,"pushed_at":"2025-02-16T07:26:01.000Z","size":550,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-22T16:51:04.757Z","etag":null,"topics":["backend","court","kleros-v1"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kleros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-06T17:23:00.000Z","updated_at":"2024-10-02T10:53:10.000Z","dependencies_parsed_at":"2023-12-20T16:13:10.197Z","dependency_job_id":null,"html_url":"https://github.com/kleros/court-functions","commit_stats":null,"previous_names":["andreimvp/court-functions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcourt-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcourt-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcourt-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcourt-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kleros","download_url":"https://codeload.github.com/kleros/court-functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092373,"owners_count":20882217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","court","kleros-v1"],"created_at":"2024-12-17T01:16:04.290Z","updated_at":"2025-04-03T22:44:05.903Z","avatar_url":"https://github.com/kleros.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kleros Court Functions\n\n### `put-justification`\n\n- Checks the justification signature for validity and adds the justification to the database\n    - Address recovered from signature must be valid and the corresponding votes must not have been casted.\n- If it receives `derivedSignature`  it adds it to the derived account database\n\n### `get-justification`\n\n- Returns justifications for corresponding dispute round\n\n### `get-dispute-metaevidence`\n\n- Fetches metaevidence uri from subgraph or database\n- Often the metaevidence uri is emitted before any interaction with KlerosLiquid. Thus the subgraph will not be able to index it\n    - When this is the case, metaevidence uri from database is fetched. This is because `getLogs` calls take long (too long for a simple serverless function to handle) and are not very reliable so we cache the uris on Supabase.\n    - When a new uri is fetched but not found in the database (because it has not been yet introduced), we call the `notice-metaevidence-background` bg function\n\n### `notice-metaevidence-background`\n\n- fetches the metaevidence uri via `getLogs` and introduces it into the database\n    - uses multiple batches for faster concurrent fetching\n\n### `upload-to-ipfs`\n- uploads a files to ipfs and returns the cids.\n- returned cid has the scheme : `/ipfs/cid`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Fcourt-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkleros%2Fcourt-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Fcourt-functions/lists"}