add url to PledgeAdmin events
This commit is contained in:
parent
71e2b159e1
commit
137e8be188
|
@ -28,12 +28,12 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
uint constant MAX_INTERPROJECT_LEVEL = 20;
|
uint constant MAX_INTERPROJECT_LEVEL = 20;
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
event GiverAdded(uint64 indexed idGiver);
|
event GiverAdded(uint64 indexed idGiver, string url);
|
||||||
event GiverUpdated(uint64 indexed idGiver);
|
event GiverUpdated(uint64 indexed idGiver, string url);
|
||||||
event DelegateAdded(uint64 indexed idDelegate);
|
event DelegateAdded(uint64 indexed idDelegate, string url);
|
||||||
event DelegateUpdated(uint64 indexed idDelegate);
|
event DelegateUpdated(uint64 indexed idDelegate, string url);
|
||||||
event ProjectAdded(uint64 indexed idProject);
|
event ProjectAdded(uint64 indexed idProject, string url);
|
||||||
event ProjectUpdated(uint64 indexed idProject);
|
event ProjectUpdated(uint64 indexed idProject, string url);
|
||||||
|
|
||||||
////////////////////
|
////////////////////
|
||||||
// Public functions
|
// Public functions
|
||||||
|
@ -89,7 +89,7 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
url)
|
url)
|
||||||
);
|
);
|
||||||
|
|
||||||
GiverAdded(idGiver);
|
GiverAdded(idGiver, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Updates a Giver's info to change the address, name, url, or
|
/// @notice Updates a Giver's info to change the address, name, url, or
|
||||||
|
@ -117,7 +117,7 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
giver.url = newUrl;
|
giver.url = newUrl;
|
||||||
giver.commitTime = newCommitTime;
|
giver.commitTime = newCommitTime;
|
||||||
|
|
||||||
GiverUpdated(idGiver);
|
GiverUpdated(idGiver, newUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Creates a Delegate Admin with the `msg.sender` as the Admin addr
|
/// @notice Creates a Delegate Admin with the `msg.sender` as the Admin addr
|
||||||
|
@ -153,7 +153,7 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
url)
|
url)
|
||||||
);
|
);
|
||||||
|
|
||||||
DelegateAdded(idDelegate);
|
DelegateAdded(idDelegate, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Updates a Delegate's info to change the address, name, url, or
|
/// @notice Updates a Delegate's info to change the address, name, url, or
|
||||||
|
@ -183,7 +183,7 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
delegate.url = newUrl;
|
delegate.url = newUrl;
|
||||||
delegate.commitTime = newCommitTime;
|
delegate.commitTime = newCommitTime;
|
||||||
|
|
||||||
DelegateUpdated(idDelegate);
|
DelegateUpdated(idDelegate, newUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Creates a Project Admin with the `msg.sender` as the Admin addr
|
/// @notice Creates a Project Admin with the `msg.sender` as the Admin addr
|
||||||
|
@ -229,7 +229,7 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
url)
|
url)
|
||||||
);
|
);
|
||||||
|
|
||||||
ProjectAdded(idProject);
|
ProjectAdded(idProject, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @notice Updates a Project's info to change the address, name, url, or
|
/// @notice Updates a Project's info to change the address, name, url, or
|
||||||
|
@ -260,7 +260,7 @@ contract PledgeAdmins is AragonApp, LiquidPledgingPlugins {
|
||||||
project.url = newUrl;
|
project.url = newUrl;
|
||||||
project.commitTime = newCommitTime;
|
project.commitTime = newCommitTime;
|
||||||
|
|
||||||
ProjectUpdated(idProject);
|
ProjectUpdated(idProject, newUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue