delegatecash

This is a minimalist frontend implemtation the delegation registry. Every function has a 1:1 name of the contract ABI.


License
MIT
Install
npm install delegatecash@0.3.1

Documentation

delegatecash · NPM npm (tag) npm bundle size Twitter URL

This is a minimalist frontend implemtation the delegation registry. Every function has a 1:1 name of the contract ABI.

Read more about the delegate.cash via our documentation

Installation

npm install delegatecash

View Functions

  • checkDelegateForAll(delegate, vault)
  • checkDelegateForContract(delegate, vault, contract)
  • checkDelegateForToken(delegate, vault, contract, tokenId)
  • getContractLevelDelegations(vault)
  • getDelegatesForAll(vault)
  • getDelegatesForContract(vault, contract)
  • getDelegatesForToken(vault, contract, tokenId)
  • getDelegationsByDelegate(delegate)
  • getTokenLevelDelegations(vault)

Write Functions

  • delegateForAll(delegate, value)
  • delegateForContract(delegate, contract, value)
  • delegateForToken(delegate, contract, tokenId, value)
  • revokeAllDelegates()
  • revokeDelegate(delegate)
  • revokeSelf(vault)

Raw Functions

These function calls will return back the encoded function data.

  • rawDelegateForAll(delegate, value)
  • rawDelegateForContract(delegate, contract, value)
  • rawDelegateForToken(delegate, contract, tokenId, value)
  • rawRevokeAllDelegates()
  • rawRevokeDelegate(delegate)