@delegatable/delegatable-sol
v0.0.0-beta.3
Published
Solidity framework for extending any contract with counterfactual revocable-delegation.
Downloads
2
Readme
Delegatable
Solidity framework for extending any contract with counterfactual revocable-delegation
Getting Started
- 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
Deployment
These contracts can be deployed to a network by running:
yarn deploy <networkName>
Some of them have been deployed already and can be reused.
Verification
These contracts can be verified on Etherscan.
yarn verify
Testing
Run the unit tests locally with:
yarn test
Coverage
Generate the test coverage report with:
yarn coverage
Documentation
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.