Skip to content

kalidao/lextek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

site

100% onchain Y Combinator SAFE and Escrow DEAL. Uses dynamic SVG to render a formatted legal template with standard clauses tailored to support wallet signatures and ENS. This is returned by a draft() view function, and using this onchain output as a document preview and signature object (rather than a centralized e-sign service), a company or service provider can have guaranteed uptime to call to send() their signed document to an investor or client 0x/ basename ENS to sign() as an ERC1155 NFT which allows for convenient communication of offers and invoicing without email* and composable artifacts. This draft offer can then be countersigned and funded in the specified amount for the specified duration in the same transaction, completing the onchain agreement and minting back the sender a matching NFT with the completed signatures. Party details and other material variables are stored onchain using readable strings that are translated by the Intents Engine IE into executable calldata.

  • In the present context of contract law, agreements can be formed by all manner of electronic communication that otherwise meet the requirements of valid agreement formation and consent, and the SAFE/DEAL offer terms and evidence of user acceptance are clearly legible in the updated NFT itself. Similarly, courts in New York and London have allowed service of process by means of sending NFTs to wallet addresses.

SAFE

SAFE V0: 0x2afe00e9DeC100583600270c009BBc0001B400f6

struct SAFE {
    string companyName;
    string investorName;
    string purchaseAmount; /*USDC*/
    string postMoneyValuationCap;
    string safeDate;
    address companySignature;
    address investorSignature;
}

DEAL

DEAL V0: 0xde001DC6a918070f00e5B3676700050000787800

struct DEAL {
    string clientName;
    string providerName;
    string resolverName;
    string dealAmount; /*USDC*/
    string dealNotes;
    string dealDate;
    string expiryDate;
    uint256 expiryTimestamp;
    address providerSignature;
    address clientSignature;
}

Getting Started

Run: curl -L https://foundry.paradigm.xyz | bash && source ~/.bashrc && foundryup

Build the foundry project with forge build. Run tests with forge test. Measure gas with forge snapshot. Format with forge fmt.

Disclaimer

These smart contracts and testing suite are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of anything provided herein or through related user interfaces. This repository and related code have not been audited and as such there can be no assurance anything will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.

License

See LICENSE for more details.

Releases

No releases published

Packages

No packages published