KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
signet-sol
★ 13
Open GitHub ↗
Signet Orders examples in solidity
Download README (.md)
Explore Similar Repositories
agents-of-matrix
:
Sua coletania de agentes para Claude.ai
jiomart-coupon-checker
:
(Under Development) A simple web app that generates JioMart coupon codes.
my-linktree
:
A living, breathing digital business card for Muhammad Dhiyaul Atha – minimal, elegant, and luxurious.
1pass
:
No description available.
polars-genson
:
A Polars plugin for JSON schema inference from string columns using genson-rs.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
signet-sol
?
Download (.md)
# Signet Solidity Examples This repo contains solidity examples using the [Signet Orders] system to do some fun and suprising things 🎀 Signet Orders are cross-chain, instant, atomic, and composable. Because Outputs are effectively MEV, you can do some really interesting things with them. Like [MevWallet], Signet Orders allow you to leverage MEV Searchers to: - Move assets across chains - Invoke functions on other chains - Schedule transactions or function invocations - Capture MEV produced by your application - Impress your friends - And more! ## App Examples - [`Morpho.sol`](./src/apps/Morpho.sol) - Contracts that allow you to drive Morpho lending market positions using Signet Orders. This allows you to supply, borrow, and lend Morpho positions on Ethereum from Signet instantly and atomically. ## Orders Examples - [`Flash.sol`](./src/l2/examples/Flash.sol) - Allows your contract to flash borrow any asset (provided some searcher will provide it). Flash loans work by having an input and output of the same asset. The Output is then used as the Input to its own Order. This is pretty neat 🎀 - [`GetOut.sol`](./src/l2/examples/GetOut.sol) - A shortcut contract for exiting Signet (by offering searchers a 50 bps fee). - [`PayMe.sol`](./src/l2/examples/PayMe.sol) - Payment gating for smart contracts, using a Signet Order with no inputs. These ensures that contract execution is invalid unless SOMEONE has filled the Order. Unlike traditional payment gates that check `msg.value`, this does NOT require the calling contract to manage cash flow. Instead _any third party_ can fill the order. The calling contract can be blind to the payment. This greatly simplifies contract logic required to implement payment gates. - [`PayYou.sol`](./src/l2/examples/PayYou.sol) - The opposite of payment gating, this allows a contract to generate MEV by offering a Signet Order with no outputs. This payment becomes a bounty for calling the contract, and functions as an incentivized scheduling system. ## Basic Repo Instructions ### Build ```shell $ forge build ``` ### Test ```shell $ forge test ``` ### Format ```shell $ forge fmt ``` [MevWallet]: https://github.com/blunt-instruments/MevWallet [Signet Orders]: https://signet.sh/docs/learn-about-signet/cross-chain-transfers/