{"id":19610718,"url":"https://github.com/onflow/fcl-contracts","last_synced_at":"2026-02-16T23:05:36.686Z","repository":{"id":60268765,"uuid":"470766269","full_name":"onflow/fcl-contracts","owner":"onflow","description":"Cadence contracts used by the Flow Client Library (FCL)","archived":false,"fork":false,"pushed_at":"2024-05-17T19:00:29.000Z","size":326,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":34,"default_branch":"main","last_synced_at":"2025-02-26T17:26:04.261Z","etag":null,"topics":["blockchain","cadence","fcl","flow","smart-contracts"],"latest_commit_sha":null,"homepage":"https://flow.com/","language":"Cadence","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-16T22:08:40.000Z","updated_at":"2024-07-17T04:15:00.000Z","dependencies_parsed_at":"2024-05-17T19:48:43.961Z","dependency_job_id":null,"html_url":"https://github.com/onflow/fcl-contracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onflow/fcl-contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onflow","download_url":"https://codeload.github.com/onflow/fcl-contracts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onflow%2Ffcl-contracts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007599,"owners_count":26084334,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blockchain","cadence","fcl","flow","smart-contracts"],"created_at":"2024-11-11T10:32:32.212Z","updated_at":"2025-10-11T15:38:23.948Z","avatar_url":"https://github.com/onflow.png","language":"Cadence","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FCL Contracts\n\n`FCLCrypto.cdc` and `FlowInteractionTemplateAudit.cdc` are contracts which revolve around [Interaction Templates](https://forum.onflow.org/t/flip-934-interaction-templates/3080) and can be used by the Flow Client Library (FCL).  \n*Interaction Templates* are a concept to alleviate interacting with a contract by handing out descriptive information in a defined textual data structure. Further information can be obtained by following the link above.  \n  \n`FCLCrypto.cdc` allows to verify the signatures for an account and check that the combined weight of the account keys reaches signing power.  \nIt provides the function `verifyUserSignatures` for user signatures and the function `verifyAccountProofSignatures` for account proof signatures.  \nThese functions are accessible by the provided scripts `verifyUserSignatures.cdc` and `verifyAccountProofSignatures.cdc`.  \n  \nIn order to add *Interaction Templates* which shall be audited, use the `FlowInteractionTemplateAudit.cdc` contract and add the template by executing the transaction `add-audit.transaction.cdc` and provide the template id string.  \nIn order to revoke added audits, call the `revoke-audit.transaction.cdc` transaction.  \n  \nIt's important to note that by executing `add-audit.transaction.cdc`, you've become an *Interaction Template Auditor*, and own an `AuditManager` resource. All audits which you add are bound to this resource.  \n  \nYou can find two scripts, `get-audits-from-audit-manager.script.cdc` returns a string array containing the keys for all the audits bound to the `AuditManager` resource, while `get-has-audited-from-audit-manager.script.cdc` returns a Boolean signaling if the audit manager has audited the given template id.  \nFurther utility functions in the contract are `getAuditsByAuditor` which takes an auditor address and returns the audits done by that auditor, and `getHasTemplateBeenAuditedByAuditors`, which allows to check for multiple auditor addresses if the given template id has been audited by them.  \n  \n## Contract Addresses\n\n| Name                           | Testnet              | Mainnet              | Sandbox             |\n| ------------------------------ | -------------------- | -------------------- |---------------------|\n| `FCLCrypto`                    | `0x74daa6f9c7ef24b1` | `0xb4b82a1c9d21d284` |`0x57b2b89759200677` |\n| `FlowInteractionTemplateAudit` | `0xf78bfc12d0a786dc` | `TBD`                | `TBD`               |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Ffcl-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonflow%2Ffcl-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonflow%2Ffcl-contracts/lists"}