Awesome list of DSA Connectors
Go to file
2020-05-02 20:03:39 +05:30
contracts updated math.sol 2020-05-02 20:03:39 +05:30
migrations First Commit 2020-05-01 21:31:43 +05:30
.gitignore First Commit 2020-05-01 21:31:43 +05:30
package-lock.json First Commit 2020-05-01 21:31:43 +05:30
package.json Updated package.json 2020-05-01 22:07:18 +05:30
README.md edits 2020-05-02 22:28:26 +10:00
todo.md updated readme 2020-05-02 22:07:39 +10:00
truffle-config.js First Commit 2020-05-01 21:31:43 +05:30

DSA Connectors

Connectors are standardized modules that let Smart Account interact with various smart contracts, and make the important actions accessible to smart accounts.

Add Custom Connectors

  1. Fork and clone it
  2. Create a feature branch: git checkout -b new-connector
  3. Commit changes: git commit -am 'Added a connector'
  4. Push to the remote branch: git push origin new-connector
  5. Create a new Pull Request

Requirements

  • The contracts should not have selfdestruct().
  • The contracts should not have delegatecall().
  • Use uint(-1) for maximum amount everywhere.
  • Import files from common directory.
  • If needed, add getId & setId, two additional parameter for external public facing functions to fetch or store values.
  • Use getEthAddr() to get an address to denote Ethereum (non-ERC20) related operations.
  • Use getUint() or setUint() functions to fetch or store values.
  • Call emitEvent() after every external public facing functions to follow a common event standard for better analytics.

Check out mock.sol for reference.

Support

If you can't find something you're looking for or have any questions, ask them at our developers community on Telegram, Discord or simply send an Email.