Annex Docs
Search…
Delegate By Signature
Delegate votes from the signatory to the delegatee. This method has the same purpose as Delegate but it instead enables offline signatures to participate in Annex governance vote delegation. For more details on how to create an offline signature, review EIP-712.
ANN
1
function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s)
Copied!
  • delegatee: The address in which the sender wishes to delegate their votes to.
  • nonce: The contract state required to match the signature. This can be retrieved from the contract’s public nonces mapping.
  • expiry: The time at which to expire the signature. A block timestamp as seconds since the unix epoch (uint).
  • v: The recovery byte of the signature.
  • r: Half of the ECDSA signature pair.
  • s: Half of the ECDSA signature pair.
  • RETURN: No return, reverts on error.
Solidity
1
ANN ann = ANN(0x123...); // contract address
2
ann.delegateBySig(delegateeAddress, nonce, expiry, v, r, s);
Copied!
Web3 1.2.6
1
const tx = await ann.methods.delegateBySig(delegateeAddress, nonce, expiry, v, r, s).send({});
Copied!
Last modified 4mo ago
Copy link