{"id":18263776,"url":"https://github.com/yearn/ygift","last_synced_at":"2025-04-04T20:31:18.759Z","repository":{"id":55393443,"uuid":"317597340","full_name":"yearn/ygift","owner":"yearn","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-03T15:08:01.000Z","size":88,"stargazers_count":10,"open_issues_count":9,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T19:07:17.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/yearn.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}},"created_at":"2020-12-01T16:13:36.000Z","updated_at":"2024-02-06T18:13:33.000Z","dependencies_parsed_at":"2022-08-14T23:20:13.733Z","dependency_job_id":null,"html_url":"https://github.com/yearn/ygift","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fygift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fygift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fygift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fygift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yearn","download_url":"https://codeload.github.com/yearn/ygift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246368,"owners_count":20907783,"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":[],"created_at":"2024-11-05T11:12:34.933Z","updated_at":"2025-04-04T20:31:17.644Z","avatar_url":"https://github.com/yearn.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yGift\n\nSmart contract used to offer gifts to yearn community members for their work in the ecosystem.\nyGift is an erc-721 standard based NFT with functionalities to hold erc-20 tokens and attach string messages to a giftt via events.\n\n# Interface\n\n4 events on top of the NFT events:\n\n-   `event GiftMinted(address indexed from, address indexed to, uint256 indexed tokenId, uint unlocksAt);`\n    Triggered when a new gift is minted, allows easy filtering when trying to find the creator, receiver or the specific gift created.\n-   `event Tip(address indexed tipper, uint256 indexed tokenId, address token, uint256 amount, string message);`\n    Triggered when an amount of tokens is tipped in the gift. A broadcast message is also sent in the event which can be tracked easily.\n-   `event Collected(address indexed collector, uint256 indexed tokenId, address token, uint256 amount);`\n    Triggered when the gift owner, withdraws some tokens from the gift.\n\n3 public functions:\n\n-   `function tip(uint256 _tokenId, uint256 _amount, string calldata _msg) public;`\n    Called to send some tokens to a gift. One gift can allow only one token to be tipped. If the gift has been minted with 1000 yUSD inside, you can only tip yUSD.\n-   `function collect(uint256 _tokenId, uint256 _amount) public;`\n    Called by the gift owner to withdraw some tokens from the gift.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fygift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyearn%2Fygift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fygift/lists"}