Solidity framework for extending any contract with counterfactual revocable-delegation
- Main docs site
- A high level summary of the goals of the Delegatable framework.
- A series of conversations about the framework on YouTube.
- A reference app called MobyMask.
- A JS library for creating & redeeming delegations.
There are three general ways to integrate Delegatable into a Solidity project
- Inherit from the Delegatable.sol contract. (Most gas up front, cheapest per tx).
- Use our trusted relay to allow your contract to accept delegated messages from a global relay contract.
- If your contract uses the ERC-2535 Diamond standard, you can add A Delegatable Facet for Diamonds
These contracts can be deployed to a network by running:
yarn deploy <networkName>
Some of them have been deployed already and can be reused.
These contracts can be verified on Etherscan.
yarn verify
Run the unit tests locally with:
yarn test
Generate the test coverage report with:
yarn coverage
Add inline docs in the natspec format. The command yarn docs
and yarn docs:html
will generate the markdown and minimal html site which can be easily published.