NethermindEth / StarknetByExample

A collection of examples of Cairo smart contracts for Starknet.
https://starknet-by-example.voyager.online/
MIT License
101 stars 77 forks source link

add time locked transactions example #201

Closed saimeunt closed 1 month ago

saimeunt commented 1 month ago

Issue(s): Close #190

Description

This PR introduces a new application example named TimeLock which is the Cairo adaptation of the corresponding Solidity by Example contract. Tests have been added to make sure the implementation is correct using a dummy ERC721 and execute a transfer_from on the token from the TimeLock contract and make sure it is executable only after the wait period is over.

Screenshot 2024-05-29 at 23 54 43

Checklist