-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delegates #1309
Merged
Merged
Delegates #1309
Changes from 44 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
749cd0c
Imported Delegate and Indexer contracts and Fixed Delegate code to al…
smartcontrart 13bd57b
Updated Indexer code to compile with Solidity 0.8.17
smartcontrart 2de8b8c
Updated licenses for Delegates and Indexer contracts
smartcontrart e3a4552
Removed constructor visibility and updated Delegate/Indexer interacti…
smartcontrart 7cdb24d
Removed the indexer boilerplate and adjusted the delegate placeholder…
smartcontrart c388135
Removed the indexer boilerplate and adjusted the delegate placeholder…
smartcontrart b00c2ad
Merge branch 'develop' into delegates
smartcontrart d27ad6f
Removed IDelegateFactoryContract
smartcontrart 67b6d43
Created basics of the swap function for the delegate contract
smartcontrart 4674419
Fixed token transfers
smartcontrart 469508b
Removed unecessary variable
smartcontrart e439848
Removed unused imports in Delegate tests
smartcontrart 1e32701
Removed unused imports in Delegate tests
smartcontrart 6eb837e
Fixed transfer amounts
smartcontrart 03994bf
Updated recipient to delegator in swapERC20
smartcontrart 97fa0b8
Renamed signer to delegator and sender to taker
smartcontrart e5ee912
Renamed signer and sender to delegator and taker for clarity and adde…
smartcontrart 4017966
Created delegate integration test
smartcontrart 809590b
Removed unused variables
smartcontrart b3a7643
Merge branch 'develop' into delegates
smartcontrart 53def14
updated delegates contract to solady library
smartcontrart a87c3ea
Merge branch 'main' of github.com:airswap/airswap-protocols into dele…
dmosites 282bcaf
Merge branch 'develop' of github.com:airswap/airswap-protocols into d…
dmosites a996532
delegates: cleanup deps; remove redundants
dmosites 274f770
name updates; test quickfix
dmosites 4b1a993
prettier
dmosites 10b0548
Renamed _maxDelegatorAmount to _maxSenderAmount for consistency
smartcontrart 868dfd7
Added test to check delegate allowance
smartcontrart b27a3b1
Added internal rule tests
smartcontrart 8f1c372
Implemented Delegate price check
smartcontrart c505ce5
Separated setting and unsetting rules tests
smartcontrart 7b976cc
Specified DEFAULT_SIGNER_AMOUNT and DEFAULT_SENDER_AMOUNT in tests. A…
smartcontrart 3872788
Removed test to check if sender can send more token that defined in t…
smartcontrart 07076a3
Implemented signatory logic allowing sender to delegate rule setting …
smartcontrart 8784a44
Wrote delegate deploy script
smartcontrart 822f346
Removed unecessary scripts
smartcontrart d79aa13
updated deploy.js.d.ts
smartcontrart e953079
Fixed chain name import
smartcontrart 7bf3577
Deployed to Sepolia
smartcontrart b08cce0
Renamed Signatory to Manager, adjusted tests accordingly
smartcontrart 5b76c88
Deployed to Sepolia
smartcontrart 1076bbd
Merge branch 'develop' of github.com:airswap/airswap-protocols into d…
dmosites c20ee77
prettier
smartcontrart c548a68
Merge branch 'delegates' of github.com:airswap/airswap-protocols into…
dmosites a703ec1
Merge branch 'develop' of github.com:airswap/airswap-protocols into d…
dmosites a017d41
restore abis
dmosites 620e34e
Updated copyright date
smartcontrart f0033c8
PR comments, added swapERC20 setter and fixed ownership initialization
smartcontrart becd52d
zeroed out all fields in the rule when unsetting
smartcontrart 97d3d82
Refactored rule reset on unset
smartcontrart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright 2023 AirSwap | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation | ||
the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Pool | ||
smartcontrart marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[AirSwap](https://www.airswap.io/) is an open-source peer-to-peer trading network. | ||
|
||
[![Discord](https://img.shields.io/discord/590643190281928738.svg)](https://discord.gg/ecQbV7H) | ||
[![License](https://img.shields.io/badge/License-MIT-blue)](https://opensource.org/licenses/MIT) | ||
![Twitter Follow](https://img.shields.io/twitter/follow/airswap?style=social) | ||
|
||
## Resources | ||
|
||
- About → https://about.airswap.io/ | ||
- Website → https://www.airswap.io/ | ||
- Twitter → https://twitter.com/airswap | ||
- Chat → https://chat.airswap.io/ | ||
|
||
## Usage | ||
|
||
:warning: This package may contain unaudited code. For all AirSwap contract deployments see [Deployed Contracts](https://about.airswap.io/technology/deployments). | ||
|
||
## Commands | ||
|
||
Environment variables are set in an `.env` file in the repository root. | ||
|
||
| Command | Description | | ||
| :--------------- | :--------------------------------------- | | ||
| `yarn` | Install dependencies | | ||
| `yarn clean` | Delete the contract `build` folder | | ||
| `yarn compile` | Compile all contracts to `build` folder | | ||
| `yarn coverage` | Report test coverage | | ||
| `yarn test` | Run all tests in `test` folder | | ||
| `yarn test:ci` | Run CI tests in `test` folder | | ||
| `yarn deploy` | Deploy on a network using --network flag | | ||
| `yarn verify` | Verify on a network using --network flag | | ||
|
||
## Running Tests | ||
|
||
:bulb: Prior to testing locally, run `yarn compile` in the `airswap-protocols` project root to build required artifacts. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2024