Automatic Smart Contract Generation Through LLMs
Automatic Smart Contract Generation Through LLMs
Abstract
Blockchain and Artificial Intelligence (AI) have revolutionized the technology landscape, evolving predominantly
along parallel trajectories. This research investigates the feasibility of integrating these two domains, specifically
examining the potential of the latest advancements in Large Language Models (LLMs) to assist non-experts in
the development of production-ready Solidity smart contracts. Utilizing a lease agreement as a case study, we
employ GPT-4 to translate the document into smart contract code. To ensure consistency, we design several
distinct prompts with analogous objectives, each employed multiple times.
Our evaluation methodology encompasses both automated analysis and expert manual review. The findings
indicate a clear limitation: the current iteration of GPT-4 is incapable of generating production-ready smart
contracts, primarily due to undetected coding flaws and discrepancies between the prompts and the generated
code. This study underscores the challenges and limitations inherent in leveraging LLMs for the autonomous
generation of complex, real-world applicable smart contracts.
Keywords
Blockchain, Smart Contract, AI, LLM, GPT-4, propt engineering,
1. Introduction
In recent years, remarkable advancements in artificial intelligence (AI) have paralleled the evolution of
blockchain technology, with Large Language Models (LLMs) emerging as a significant development.
These models, including LLaMa 1 & 2 by Meta [1, 2], PaLM by Google/Alphabet [3], or Mistral by
MistralAI [4], have revolutionized problem-solving across diverse domains. Through processing and
generating human-like text, they have fundamentally altered our approach to everyday challenges,
demonstrating an advanced capacity to understand context, produce coherent responses, and adapt to
various tasks. Their versatility has rendered them indispensable across industries such as healthcare,
finance, and software engineering [5, 6, 7], signaling a new era of AI-driven innovation and problem-
solving.
Another disruptive technology that has taken hold in recent years is blockchain. In summary,
blockchain represents a decentralized database, shared by all peers in the network, in which so-called
transactions are kept track of. Each group of transactions, or “block”, is linked to the previous one
cryptographically to form a blockchain. Blockchain technology eliminates the need for intermediaries
while still guaranteeing the validity and integrity of the data, ensuring that it cannot be modified.
The fact that the database is distributed ensures transparency among participants and reduces the
risk of fraud or tampering. This type of technology lends itself well to areas such as supply chain
or notarization of documents where it is essential to maintain a copy of data that is chronologically
ordered and cannot be modified.
The power of blockchain extends to the concept of smart contracts (SC), which are self-executing
programs with terms written directly into code. Smart contracts serve as digital counterparts to legal
6th Distributed Ledger Technology Workshop, May 24-25, 2024, Turin, Italy
*
Corresponding author.
$ [email protected] (F. Barbàra); [email protected] (E. A. Napoli); [email protected] (V. Gatteschi);
[email protected] (C. Schifanella)
https://fadibarbara.it (F. Barbàra); insert (E. A. Napoli); https://staff.polito.it/valentina.gatteschi (V. Gatteschi); insert
(C. Schifanella)
© 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
CEUR
ceur-ws.org
Workshop ISSN 1613-0073
Proceedings
1
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
2. Related Works
The advent of Large Language Models creates the need to get the best response from them by asking
the right question. This art is called prompt engineering and includes all those practices that aim
to advise how to communicate clearly with the LLM and get the best quality response in terms of
precision, context, and data. Prompt engineering has already been used in a wide range of context
such as education [9, 10], academic writing [11], healthcare [12, 13], automotive [14], and insolvency
1
GitHub link: https://github.com/BChain4all/pipeline/tree/main/results-feb-24
2
Spreadsheet file containing the outcomes of the proposed research: https://docs.google.com/spreadsheets/d/
1zPk6Ucb8n2UAaExGa1F18ODV_s2CYQV6/edit?usp=sharing&ouid=101965872120892214476&rtpof=true&sd=true
2
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
and bankruptcy law [15]. In the domain of Natural Language Processing, a spectrum of strategies
has been employed [16]. Nevertheless, any papers investigated the best strategies and framework in
terms of prompt engineering so that the LLM response is the most accurate possible. Wang et al. [10]
investigated the best strategies used by undergraduates students in prompting ChatGPT to effective
complete tasks by evaluating the information quality obtained by the LLM. Ratnayake et al. [16] propose
the PERFECT prompting framework, which entails specifying the Purpose (the primary goal or objective
of the prompt), Element (an additional element to consider), Role (the role or perspective the model
should adopt), Format (the desired response format), Examples (including examples or case studies),
Conditions (conditions or constraints the answer should adhere to), and Timeframe (historical context
or future predictions). To address the complexities inherent in constructing a prompt another method
adopted is the so-called CO-STAR [8]. This method involves providing COntext, defining the Style for
consistency, articulating the Target for focus, defining the Tone for sentiment alignment, identifying the
Audience for personalization, and specifying the Response for format clarity. Through this structured
approach, the aim is to improve the effectiveness and relevance of the language model output within
the defined constraints. In their recent work, Bao et al. [17] introduce a novel prompt technique tailored
for multi-document summarization. The Chain-of-Event (CoE) technique comprises four components:
task description, process summary reasoning, an exemplar of summary reasoning, and multi-document
input. The effectiveness of the proposed method is evaluated against both zero-shot and few-shot
prompting methods, assessing its comparative efficacy. On the other hand, Arawjo et al. [18] introduce
ChainForge, an open-source visual programming environment tailored for prompt engineering and
LLM sensemaking, thereby facilitating users in navigating and comprehending LLM outputs. Chen
et al. [19] present a novel approach called AutoPrompt-based Prompt Tuning (APT), which enhances
continuous prompts with a gradient-guided automatic search mechanism aimed at creating optimal
discrete templates and identifying trigger tokens.
Several papers evaluate LLMs regarding the generation of code from a text description, also called
text-to-code task. Nguyen et al. [20] present a framework aimed at generating API testing scripts
employing ChatGPT. Their approach involves designing a prompt template that incorporates the test
case scenario, data generation rules, pertinent information extracted from API documentation, the
expected result format, and, if available, anticipated execution feedback. Leveraging the few-shot
technique, they utilize previous logs and the model’s responses. Kwon et al. [21] explore the potential of
ChatGPT to enhance the quality of Ansible scripts within the domain of edge cloud systems. Through
the evaluation of ChatGPT’s code recommendation proficiency on 48 code revision instances extracted
from 25 Ansible project GitHub repositories by three independent raters, the study verifies the model’s
capability to detect and comprehend Ansible scripts. However, the authors highlight that ChatGPT’s
efficacy is substantially influenced by the query formulation. In their investigation, Liu et at. [22]
conduct experiments utilizing the CodeXGlue dataset to assess the text-to-code and code-to-code
generation capabilities of ChatGPT. Employing the chain-of-thought strategy, the authors implement
multi-step optimization techniques guided by feedback from ChatGPT. This approach results in a
notable enhancement in performance levels, underscoring the efficacy of their methodology.
The ”one-shot“, ”few-shot“, and the PERFECT framework proposed by [16] are unsuitable for our goal
since they involves providing the LLM with illustrative examples. Indeed, in our case, the availability of
an existing smart contract example would eliminate the need to generate the smart contract from the
provided textual description or legal agreement unnecessary. However, the techniques mentioned above
are more suitable for enhancing or debugging pre-existing contracts rather than generate new ones
from legal documents. Therefore, we decided to use the CO-START method which does not require
providing a code example in its formulation.
As far as text-to-code is concerned, there is a lack of prompt engineering methods and frameworks,
or at least the frameworks proposed in the literature are not tested on code generation.
3
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
Legal agreement
Or Smart Contract Vulnerability
Text Description Prompting AI Exploitation Generation Detection
Slither
gpt-4
3
https://www.lawdepot.com/
4
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
its outputs toward a desired result. For this reason, the strategy advocated by Ratnayake et al. [16],
which also involves supplying the LLM with illustrative instances, was considered unsuitable for our
needs. In our particular case, the presence of an existing smart contract example would eliminate the
necessity for initiating prompts to the model, implying that such prompting techniques are better suited
for enhancing or debugging pre-existing contracts rather than creating new ones from legal documents.
Given the inadequacy of “few-shot” or “one-shot” prompting for our objectives, we adopted the
CO-STAR framework for prompt construction, which includes Context, Objective, Style, Tone, Audience,
and Response components. This approach ensures that the prompts are comprehensively designed to
elicit high-quality smart contract code from the LLM [8].
4. Comprehensive Evaluation
In the following we present the results of the automatic analysis (Section 4.1 and the expert evaluations
(Sections 4.2 to 4.4)
4
The spreadsheet file containing our results can be found here: https://docs.google.com/spreadsheets/d/
1zPk6Ucb8n2UAaExGa1F18ODV_s2CYQV6/edit?usp=sharing&ouid=101965872120892214476&rtpof=true&sd=true
5
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
capabilities of the LLM in generating a majority of the code that could be compiled with no difficulties
(94.1%).
Additionally, the vulnerability evaluation carried out employing the automated tool, Slither, proved
to be promising. In essence, a majority of the smart contracts revealed only low-impact vulnerabilities.
A minor segment of the smart contracts displayed moderate vulnerabilities, on the other hand, only 2 of
the smart contracts exhibited any critical vulnerability. These results can be seen in the vuln_count
column of the spreadsheet file.
A Weighted Total Score (total_score column of the spreadsheet file) was formulated for the
purpose of this evaluation (Section 3.3 to see how it is computed). A worrying observation made in this
regard was the apparent lack of correlation between the prompt and the consequential value of the total
score. Interestingly, all the resultant values tend to cluster around 4 to 6, yet there are sporadic peaks
at values of 10 and 12, predominantly in prompt 𝑃 𝑅3. Based on the metrics employed, this scenario
signifies a confluence of a very low presence of vulnerabilities, combined with a high function count,
and elevated comment and variable initialization and assignment rates. This outcome does not align
with the anticipate results as per the CO-STAR techniques, whereby a higher role accompanied by a
specific constraint in the generation is expected to yield optimized and superior code, a finding we were
unable to corroborate.
6
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
In the following we present the analysis of the actual functions we obtained by the smart contracts
coding the functionalities we just described. All smart contracts are available in our GitHub5 .
5
GitHub link: https://github.com/BChain4all/pipeline/tree/main/results-feb-24
7
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
Despite the expectation that this function should be executed prior to the initiation of the lease
term, as explicitly stated within the lease agreement, several iterations of the paySecurityDeposit
function conspicuously lack embedded controls for this timeline regulation.
Additionally, multiple versions of the paySecurityDeposit function include a comment acknowl-
edging the distinct security requirements that should be managed by the smart contract developer.
This recognition implies a crucial consideration for potential code enhancement, but implementation
remains sorely lacking.
Another point of contention is the common misinterpretation of the security deposit fund flow
dynamics. Ideally, the security deposit funds should be retained within the smart contract as a form of
escrow, but it is alarming to note that certain paySecurityDeposit functions facilitate an automatic
transfer of these funds to the landlord, a feature we categorize as programmatically erroneous. This
necessary escrow provision is designed to ensure that the security deposit is appropriately sheltered
from premature landlord access until the conclusion of the lease tenure.
8
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
this manner. It is noteworthy that these functions lack the automatic transfer of rent to the landlord and
therefore, even when late fees are duly administered, the respective amount fails to reach the landlord.
This situation is elaborated on further in Section 4.2.1.
9
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
10
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
oversimplified explanation that could be deemed inconsequential. The core reasoning behind this style
of commentary remains uncertain.
One interpretation is that this reflects an inherent simplicity of the functions under scrutiny, such
that any developer, irrespective of their expertise level, might comprehend the functionality readily. An
alternative supposition posits a restriction in the capability of the large language model in fabricating
comprehensive comments.
It is important to note that the LLM’s training draws from Solidity code available publicly on GitHub,
thus implying a possibility that the observed comment trend might echo a broader developer trend. This
trend may suggest a prevalent underutilization of comments as a tool for meaningful and expressive
communication within the developer community.
5. Discussion
The following discussion pertains to the revelations gathered from the automated and expert evaluations
carried out during this study and presented in Section 4.
11
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
6. Conclusions
This research embarked on an exploratory journey to examine the potential integration between two
disruptive technologies, Blockchain and AI, with a focus on the application of LLMs for aiding non-
experts in crafting production-ready Solidity smart contracts. Through a methodical investigation
involving the translation of a lease agreement into smart contract code by GPT-4, supported by 17
meticulously designed prompts that generated 68 smart contracts (4 per prompt), our study provided a
thorough assessment of the capabilities of current LLM technology in this context.
The dual-faceted evaluation methodology, integrating automated analysis and expert manual review,
has revealed significant insights into the practical utility of GPT-4 within the blockchain development
sphere. The conclusions drawn from this investigation are unequivocal: the present version of GPT-4
falls short of the necessary standards for generating production-ready smart contracts. This shortfall is
attributed predominantly to the presence of undetected logic flaws and the misalignment between the
provided prompts and the resulting code.
These findings not only highlight the existing gaps within the capabilities of LLMs like GPT-4 but
also accentuate the critical challenges associated with the autonomous creation of smart contracts that
are applicable in real-world scenarios.
Building upon our findings, our future endeavors aim to incorporate alternative prompting techniques.
Our exploration thus far suggests that zero-shot prompting offers suboptimal results; consequently,
we intend to incorporate more promising strategies such as few-shot and chain of thought prompting
techniques in our methodology.
In theory, we could consider training or fine-tuning the LLM specifically to enhance its comprehension
of smart contracts. This potential adaptation can potentially serve to augment its overall performance
in this context.
12
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
Acknowledgments
The work discussed in this paper has been supported by the B4A - Blockchain for All project
(https://www.blockchain4all.it/), ref. no. 20225MN5K3. This project has been funded with support
from the Ministry of Education, University and Research. This document reflects the views only of the
authors, and the Ministry of Education, University and Research cannot be held responsible for any use
which may be made of the information contained therein.
References
[1] H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal,
E. Hambro, F. Azhar, et al., Llama: Open and efficient foundation language models, 2023.
[2] H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y. Babaei, N. Bashlykov, S. Batra, P. Bhar-
gava, S. Bhosale, et al., Llama 2: Open foundation and fine-tuned chat models, 2023.
[3] A. Chowdhery, S. Narang, J. Devlin, M. Bosma, G. Mishra, A. Roberts, P. Barham, H. W. Chung,
C. Sutton, S. Gehrmann, et al., Palm: Scaling language modeling with pathways, Journal of
Machine Learning Research 24 (2023) 1–113.
[4] A. Q. Jiang, A. Sablayrolles, A. Mensch, C. Bamford, D. S. Chaplot, D. d. l. Casas, F. Bressand,
G. Lengyel, G. Lample, L. Saulnier, et al., Mistral 7b, 2023.
[5] Y. Li, S. Wang, H. Ding, H. Chen, Large language models in finance: A survey, 2023, p.
374 – 382. URL: https://www.scopus.com/inward/record.uri?eid=2-s2.0-85179853539&doi=10.
1145%2f3604237.3626869&partnerID=40&md5=ee2b728c8b9fe0013974da302d3afc8a. doi:10.1145/
3604237.3626869, cited by: 0; All Open Access, Green Open Access, Hybrid Gold Open Access.
[6] J. Li, A. Dada, B. Puladi, J. Kleesiek, J. Egger, Chatgpt in healthcare: A taxonomy and systematic
review, Computer Methods and Programs in Biomedicine 245 (2024). doi:10.1016/j.cmpb.
2024.108013.
[7] L. Belzner, T. Gabor, M. Wirsing, Large language model assisted software engineering: Prospects,
challenges, and a case study, Lecture Notes in Computer Science (including subseries Lecture
Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 14380 LNCS (2024) 355 – 374.
doi:10.1007/978-3-031-46002-9_23, cited by: 2.
[8] G. D. Science, S. G. AI Division, Prompt engineering playbook, ???? URL: https:
//www.developer.tech.gov.sg/products/collections/data-science-and-artificial-intelligence/
playbooks/prompt-engineering-playbook-beta-v3.pdf.
[9] U. Lee, H. Jung, Y. Jeon, Y. Sohn, W. Hwang, J. Moon, H. Kim, Few-shot is enough: exploring
chatgpt prompt engineering method for automatic question generation in english education,
Education and Information Technologies (2023) 1–33.
[10] M. Wang, M. Wang, X. Xu, L. Yang, D. Cai, M. Yin, Unleashing chatgpt’s power: A case study on
optimizing information retrieval in flipped classrooms via prompt engineering, IEEE Transactions
on Learning Technologies 17 (2024) 629–641. doi:10.1109/TLT.2023.3324714.
[11] L. Giray, Prompt engineering with chatgpt: A guide for academic writers, Annals of Biomedical
Engineering (2023) 1–5.
[12] D. Grabb, The impact of prompt engineering in large language model performance: a psychiatric
example, Journal of Medical Artificial Intelligence 6 (2023).
[13] L. Wang, X. Chen, X. Deng, H. Wen, M. You, W. Liu, Q. Li, J. Li, Prompt engineering in consistency
and reliability with the evidence-based guideline for llms, npj Digital Medicine 7 (2024) 41.
[14] X. Li, E. Liu, T. Shen, J. Huang, F.-Y. Wang, Chatgpt-based scenario engineer: A new framework
on scenario generation for trajectory prediction, IEEE Transactions on Intelligent Vehicles (2024)
1–10. doi:10.1109/TIV.2024.3363232.
[15] M. Ribary, P. Krause, M. Orban, E. Vaccari, T. Wood, Prompt engineering and provision of context
in domain specific use of gpt, in: Legal Knowledge and Information Systems, IOS Press, 2023, pp.
305–310.
13
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
[16] H. Ratnayake, C. Wang, A prompting framework to enhance language model output, in: Aus-
tralasian Joint Conference on Artificial Intelligence, Springer, 2023, pp. 66–81.
[17] S. Bao, T. Li, B. Cao, Chain-of-event prompting for multi-document summarization by large
language models, International Journal of Web Information Systems (2024).
[18] I. Arawjo, P. Vaithilingam, M. Wattenberg, E. Glassman, Chainforge: An open-source visual
programming environment for prompt engineering, in: Adjunct Proceedings of the 36th Annual
ACM Symposium on User Interface Software and Technology, UIST ’23 Adjunct, Association for
Computing Machinery, New York, NY, USA, 2023. URL: https://doi.org/10.1145/3586182.3616660.
doi:10.1145/3586182.3616660.
[19] Y. Chen, G. Yang, D. Wang, D. Li, Eliciting knowledge from language models with automati-
cally generated continuous prompts, Expert Systems with Applications 239 (2024) 122327. URL:
https://www.sciencedirect.com/science/article/pii/S0957417423028294. doi:https://doi.org/
10.1016/j.eswa.2023.122327.
[20] C. Nguyen, H. Bui, V. Nguyen, T. Nguyen, An approach to generating api test scripts using gpt, in:
Proceedings of the 12th International Symposium on Information and Communication Technology,
SOICT ’23, Association for Computing Machinery, New York, NY, USA, 2023, p. 501–509. URL:
https://doi.org/10.1145/3628797.3628947. doi:10.1145/3628797.3628947.
[21] S. Kwon, S. Lee, T. Kim, D. Ryu, J. Baik, Exploring the feasibility of chatgpt for improving the quality
of ansible scripts in edge-cloud infrastructures through code recommendation, in: International
Conference on Web Engineering, Springer, 2023, pp. 75–83.
[22] C. Liu, X. Bao, H. Zhang, N. Zhang, H. Hu, X. Zhang, M. Yan, Improving chatgpt prompt for code
generation, arXiv preprint arXiv:2305.08360 (2023).
[23] Y. Chang, X. Wang, J. Wang, Y. Wu, L. Yang, K. Zhu, H. Chen, X. Yi, C. Wang, Y. Wang, et al., A
survey on evaluation of large language models, ACM Transactions on Intelligent Systems and
Technology (2023).
[24] J. Feist, G. Grieco, A. Groce, Slither: A static analysis framework for smart contracts, in:
2019 IEEE/ACM 2nd International Workshop on Emerging Trends in Software Engineering for
Blockchain (WETSEB), IEEE, 2019. URL: http://dx.doi.org/10.1109/WETSEB.2019.00008. doi:10.
1109/wetseb.2019.00008.
[25] R. Tonelli, G. A. Pierro, M. Ortu, G. Destefanis, Smart contracts software metrics: A first study,
PLOS ONE 18 (2023) 1–31. URL: https://doi.org/10.1371/journal.pone.0281043.
A. Lease Agreement
STANDARD LEASE AGREEMENT
This Agreement, dated , 20. , by and between an individual known as David Miller of 324
W Gore St, Orlando, Florida, 32806, hereinafter known as the "Landlord",
AND
An individual known as Richard Garcia, hereinafter known as the "Tenant(s)", agree to the
following:
OCCUPANT(S): The Premises is to be occupied strictly as a residential dwelling with only
the Tenant(s) mentioned above as the Occupant(s).
OFFER TO RENT: The Landlord hereby rents to the Tenant(s), subject to the following
terms and conditions of this Agreement, an apartment with the address of 7000 NW 27th
Ave, Miami, Florida, 33147 consisting of 1 bathroom(s) and 2 bedroom(s) hereinafter known
as the "Premises". The Landlord may also use the address for notices sent to the Tenant(s).
PURPOSE: The Tenant(s) and any Occupant(s) may only use the Premises as a residential
dwelling. It may not be used for storage, manufacturing of any type of food or product,
professional service(s), or for any commercial use unless otherwise stated in this Agreement.
14
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
15
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
16
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
PETS: The Tenant(s) shall not be allowed to have pets on the Premises or common areas
except those that are necessary for individuals with disabilities.
NOISE/WASTE: The Tenant(s) agrees not to commit waste on the premises, maintain, or
permit to be maintained, a nuisance thereon, or use, or permit the premises to be used, in
an unlawful manner. The Tenant(s) further agrees to abide by any and all local, county,
and State noise ordinances.
GUESTS: There shall be no other persons living on the Premises other than the Tenant(s)
and any Occupant(s). Guests of the Tenant(s) are allowed for periods not lasting for more
than forty-eight hours unless otherwise approved by the Landlord.
SMOKING POLICY: Smoking on the Premises is prohibited on the entire property, including
individual units, common areas, every building and adjoining properties.
COMPLIANCE WITH LAW: The Tenant(s) agrees that during the term of the Agreement,
to promptly comply with any present and future laws, ordinances, orders, rules, regulations,
and requirements of the Federal, State, County, City, and Municipal government or any of
their departments, bureaus, boards, commissions and officials thereof with respect to the
premises, or the use or occupancy thereof, whether said compliance shall be ordered or
directed to or against the Tenant(s), the Landlord, or both.
DEFAULT: If the Tenant(s) fails to comply with any of the financial or material provisions
of this Agreement, or of any present rules and regulations or any that may be hereafter
prescribed by the Landlord, or materially fails to comply with any duties imposed on
the Tenant(s) by statute or State laws, within the time period after delivery of written
notice by the Landlord specifying the non- compliance and indicating the intention of the
Landlord to terminate the Agreement by reason thereof, the Landlord may terminate this
Agreement. If the Tenant(s) fails to pay rent when due and the default continues for the
time-period specified in the written notice thereafter, the Landlord may, at their option,
declare the entire balance (compiling all months applicable to this Agreement) of rent
payable hereunder to be immediately due and payable and may exercise any and all rights
and remedies available to the Landlord at law or in equity and may immediately terminate
this Agreement.
The Tenant(s) will be in default if: (a) Tenant(s) does not pay rent or other amounts that are
owed in accordance with respective State laws; (b) Tenant(s), their guests, or the Occupant(s)
violate this Agreement, rules, or fire, safety, health, or criminal laws, regardless of whether
arrest or conviction occurs; (c) Tenant(s) abandons the Premises; (d) Tenant(s) gives incorrect
or false information in the rental application; (e) Tenant(s), or any Occupant(s) is arrested,
convicted, or given deferred adjudication for a criminal offense involving actual or potential
physical harm to a person, or involving possession, manufacture, or delivery of a controlled
substance, marijuana, or drug paraphernalia under state statute; (f) any illegal drugs or
paraphernalia are found in the Premises or on the person of the Tenant(s), guests, or
Occupant(s) while on the Premises and/or; (g) as otherwise allowed by law.
MULTIPLE TENANT(S) OR OCCUPANT(S): Each individual that is considered a Tenant(s)
is jointly and individually liable for all of this Agreement’s obligations, including but not
limited to rent monies. If any Tenant(s), guest, or Occupant(s) violates this Agreement, the
Tenant(s) is considered to have violated this Agreement. Landlord’s requests and notices
to the Tenant(s) or any of the Occupant(s) of legal age constitutes notice to the Tenant(s).
Notices and requests from the Tenant(s) or any one of the Occupant(s) (including repair
requests and entry permissions) constitutes notice from the Tenant(s). In eviction suits, the
Tenant(s) is considered the agent of the Premise for the service of process.
DISPUTES: If a dispute arises during or after the term of this Agreement between the
Landlord and Tenant(s), they shall agree to hold negotiations amongst themselves, in "good
17
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
18
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
19
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
The damage/security deposit will be promptly returned to Tenant, provided there are no
damages to the Premises.
LEAD PAINT: The Premises was not constructed before 1978 and therefore does not contain
lead- based paint.
GOVERNING LAW: This Agreement is to be governed under the laws located in the State
of Florida.
ADDITIONAL TERMS AND CONDITIONS: There are no further terms or conditions that
will be added to this Agreement other than any attachments or addendums attached.
ENTIRE AGREEMENT: This Agreement contains all the terms agreed to by the parties
relating to its subject matter including any attachments or addendums. This Agreement
replaces all previous discussions, understandings, and oral agreements. The Landlord and
Tenant(s) agree to the terms and conditions and shall be bound until the end of the Lease
Term.
The parties have agreed and executed this agreement on , 20 .
LANDLORD(S) SIGNATURE
Landlord’s Signature
TENANT(S) SIGNATURE
Tenant’s Signature
B. Prompts
B.1. Prompt PR1
You are a Masters student in Computer Science. Write a smart contract in Solidity based on the following
legal agreement
<legal agreement >
20
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
Be professional and use a formal style. You will deliver the smart contract to your professor.
Be professional and use a formal style. You will deliver the smart contract to your professor.
21
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
.
Be professional and use a formal style. You will deliver the smart contract to your supervisor.
Be professional and use a formal style. You will deliver the smart contract to your supervisor.
22
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
23
Fadi Barbàra et al. CEUR Workshop Proceedings 1–24
Be professional and use a formal style. You will deliver the smart contract to your company’s legal
department.
24