Added comments and asserted 80 char per line
This commit is contained in:
parent
5ccf92d502
commit
da9a276647
|
@ -1,19 +1,32 @@
|
||||||
pragma solidity ^0.4.11;
|
pragma solidity ^0.4.11;
|
||||||
|
|
||||||
contract ILiquidPledgingPlugin {
|
contract ILiquidPledgingPlugin {
|
||||||
|
/// @notice Plugins are used (much like web hooks) to initiate an action
|
||||||
/// @param context In which context it is affected.
|
/// upon any donation, delegation, or transfer; this is an optional feature
|
||||||
/// 0 -> owner from
|
/// and allows for extreme customization of the contract
|
||||||
/// 1 -> First delegate from
|
/// @param context The situation that is triggering the plugin:
|
||||||
/// 2 -> Second delegate from
|
/// 0 -> Plugin for the owner transferring pledge to another party
|
||||||
|
/// 1 -> Plugin for the first delegate transferring pledge to another party
|
||||||
|
/// 2 -> Plugin for the second delegate transferring pledge to another party
|
||||||
/// ...
|
/// ...
|
||||||
/// 255 -> proposedProject from
|
/// 255 -> Plugin for the proposedProject transferring pledge to another party
|
||||||
///
|
///
|
||||||
/// 256 -> owner to
|
/// 256 -> Plugin for the owner receiving pledge to another party
|
||||||
/// 257 -> First delegate to
|
/// 257 -> Plugin for the first delegate receiving pledge to another party
|
||||||
/// 258 -> Second delegate to
|
/// 258 -> Plugin for the second delegate receiving pledge to another party
|
||||||
/// ...
|
/// ...
|
||||||
/// 511 -> proposedProject to
|
/// 511 -> Plugin for the proposedProject receiving pledge to another party
|
||||||
function beforeTransfer(uint64 noteManager, uint64 noteFrom, uint64 noteTo, uint64 context, uint amount) returns (uint maxAllowed);
|
function beforeTransfer(
|
||||||
function afterTransfer(uint64 noteManager, uint64 noteFrom, uint64 noteTo, uint64 context, uint amount);
|
uint64 noteManager,
|
||||||
|
uint64 noteFrom,
|
||||||
|
uint64 noteTo,
|
||||||
|
uint64 context,
|
||||||
|
uint amount
|
||||||
|
) returns (uint maxAllowed);
|
||||||
|
function afterTransfer(
|
||||||
|
uint64 noteManager,
|
||||||
|
uint64 noteFrom,
|
||||||
|
uint64 noteTo,
|
||||||
|
uint64 context,
|
||||||
|
uint amount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue