Skip to content

Commit a695e69

Browse files
committed
readme cleanup
1 parent bec9819 commit a695e69

File tree

12 files changed

+12
-260
lines changed

12 files changed

+12
-260
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ repos:
1515
entry: forge fmt
1616
exclude: "^lib/"
1717
pass_filenames: true
18-
- id: doc
19-
name: Generate documentation
20-
description: Generate docs with `forge doc`
21-
language: system
22-
# generates docs and unstages files if only the commit hash changed within the file, this way only when the documentation is updated, the documentation needs to be regenerated and only the changed files are pushed
23-
entry: "script/util/doc_gen.sh"
24-
pass_filenames: false
18+
# - id: doc
19+
# name: Generate documentation
20+
# description: Generate docs with `forge doc`
21+
# language: system
22+
# # generates docs and unstages files if only the commit hash changed within the file, this way only when the documentation is updated, the documentation needs to be regenerated and only the changed files are pushed
23+
# entry: "script/util/doc_gen.sh"
24+
# pass_filenames: false
2525
- repo: https://github.com/pre-commit/mirrors-prettier
2626
rev: "v3.0.3"
2727
hooks:

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ If you intend to develop on this repo, follow the steps outlined in [CONTRIBUTIN
2222
## Allocators
2323

2424
The allocators are designed to be used with the [The Compact](https://github.com/uniswap/the-compact). Their purpose is to ensure that locked tokens are available to claim for fillers within the promised expiration time. This repository contains multiple allocators, each with different features:
25-
- [ServerAllocator](src/allocators/ServerAllocator.sol): The ServerAllocator stands as an on chain verification contract for a server based allocator. It is ready for the callbacks of the [The Compact](https://github.com/uniswap/the-compact) during a claim and verifies the allocator signatures have been signed by an authorized address. It does not keep track of any locked down tokens, but instead relies on the server to do so.
26-
- [SimpleAllocator](src/allocators/SimpleAllocator.sol): A simple, fully decentralized allocator that allows for a single claim per token. This means the contract will lock down all tokens of a sponsor for an id for a single claim, so it is not possible to start multiple claims for the same sponsor and id at the same time. The contract does though keep track of the amount of locked tokens and so it will faithfully attest for a transfer of those, even during an ongoing claim. The contract is a good starting point when learning about allocators and it is kept very simple on purpose to learn about the concept of an allocator or use this contract as a template. To be used in production, the contract would require the ability to work with witness data, since a real cross chain swap will always require a witness besides the Compact. An example implementation of a witness allocator can be found [here](src/allocators/SimpleWitnessAllocator.sol).
27-
- [SimpleWitnessAllocator](src/allocators/SimpleWitnessAllocator.sol): This contract enhances the [SimpleAllocator](src/allocators/SimpleAllocator.sol) with the ability of processing witness data besides the Compact. This makes it a much more production ready allocator.
25+
26+
- [ServerAllocator](src/allocators/ServerAllocator.sol): The ServerAllocator stands as an on chain verification contract for a server based allocator. It is ready for the callbacks of the [The Compact](https://github.com/uniswap/the-compact) during a claim and verifies the allocator signatures have been signed by an authorized address. It does not keep track of any locked down tokens, but instead relies on the server to do so.
27+
- [SimpleAllocator](src/allocators/SimpleAllocator.sol): A simple, fully decentralized allocator that allows for a single claim per token. This means the contract will lock down all tokens of a sponsor for an id for a single claim, so it is not possible to start multiple claims for the same sponsor and id at the same time. The contract does though keep track of the amount of locked tokens and so it will faithfully attest for a transfer of those, even during an ongoing claim. The contract is a good starting point when learning about allocators and it is kept very simple on purpose to learn about the concept of an allocator or use this contract as a template. To be used in production, the contract would require the ability to work with witness data, since a real cross chain swap will always require a witness besides the Compact. An example implementation of a witness allocator can be found [here](src/allocators/SimpleWitnessAllocator.sol).
28+
- [SimpleWitnessAllocator](src/allocators/SimpleWitnessAllocator.sol): This contract enhances the [SimpleAllocator](src/allocators/SimpleAllocator.sol) with the ability of processing witness data besides the Compact. This makes it a much more production ready allocator.
29+
- [SimpleERC7683Allocator](src/allocators/SimpleERC7683Allocator.sol): This contract enhances the [SimpleAllocator](src/allocators/SimpleAllocator.sol) and making it compatible with the [ERC7683](https://eips.ethereum.org/EIPS/eip-7683) standard. The Allocator therefor also becomes a [IOriginSettler](src/interfaces/ERC7683/IOriginSettler.sol) and converts a OnchainCrossChainOrder to a `Compact`/`BatchCompact` and a `Claim` / `Mendate` as required by the tribunal on the target chain.
2830

2931
## Deployment
3032

docs/autogen/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/autogen/book.css

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/autogen/book.toml

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/autogen/solidity.min.js

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/autogen/src/README.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

docs/autogen/src/SUMMARY.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/autogen/src/src/Counter.sol/contract.Counter.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/autogen/src/src/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)