polymath-core
Advanced tools
Changelog
v1.1.0
1.1.0 18-05-18
generateSecurityToken
capReached()
which was checking fundsRaised agains cap, but the cap is expressed in tokens.require
and revert
statements.takeFee()
new function introduced to extract the POLY token from the factory. It only be called by the owner of the factory._securityTokenAddress
get indexed in the LogNewSecurityToken
event.expiryTime
for the KYC. After the expiryTime limit reached, investor will not abe to use transfer related functions.pause()
, unpause()
,freezeTransfers()
. All 3 functions are called by the issuer of the securityToken only.burn()
function but before that issuer need to deploy the TokenBurner
contract and set its address into the SecurityToken contract using the function setTokenBurner()
.investorStatus()
function in securityToken contract has removed.0.3.1 06-04-18
emit
keyword to emit the events.swarmHash
represents the off-chain data storage location on IPFS and owner
It reperesent the ethereum address of the owner.LogRegisterTicker
emits two more variable called _swarmHash
and _owner
.GeneralPermissionManager
contract to facilitate the notifications for the UI end.
LogChangePermission
:Emit when permissions to a delegate get changed.LogAddPermission
: Emit when delegate is added in permission manager contract.getInstructions()
is a public function added into the factories contracts. Use to get the useful instructions about the corresponding factory._securityTokenRegistry
is more argument is added in securityTokenV2 contract.STRAdress
name in TickerRegistry smart contract changed to strAddress
.permissions()
name in all module factories get changed to getPermissions()
.delegateDetails()
name gets changed to getDelegateDetails()
in GeneralPermissionManager contract.STVersionProxy_001 & STVersionProxy_002
contract name changed to STVersionProxy001 & STVersionProxy002 respectively.0.3.0 02-04-18
ModuleRegistry
contract to facilitate the Logging of the operations.LogModuleUsed
: Emit when Module get used by a securityToken.LogModuleRegistered
: Emit when a new module gets registered by the polymath for securityToken to use.LogModuleVerified
: Emit when module get verified by the ModuleRegistry owner.setTokenRegistry
and it only is called by the owner of the ModuleRegistry contract.verifyModule
function added to verify the newly added modules on the polymath platform. It is a type of ownable function.securityTokenRegistry
public variable added to store the address of the SecurityTokenRegistry. And verified
mapping added to hold the list of verified moduleFactory
addresses with a bool flag.getSecurityTokenData()
is added to get the securityToken data instead of calling directly the public mapping securityTokens
.tokensSold
is added in the cappedSTO contract. It is used to track the amount of securityTokens sold.ExchangeTransferManagerFactory
is added in to the list of the available modules in the Polymath V1 system.addModule
. It signifies the budget of the ongoing module in terms of POLY token.LogModuleRemoved
: Event emit when module get removed from the securityToken.
LogModuleBudgetChanged
: Emit when module budget get changed.getModuleData
function added in the securityToken to get the data of the Module with the help of moduleType and the index of the module user want to get.removeModule
new function added facilitate the removal of the module from the securityToken. It is ownable type function.changeModuleBudget
function added to change the budget of the module that already been added. It is ownable type function.SecurityTokenData
.securityTokens
in ISecurityTokenRegistry is now being private instead of public.expiryLimit
default value get changed to 7 days instead of the 90 days in TickerRegistry.SymbolDetails
structure of TickerRegistry.LogRegisterTicker
event corresponds to _name variable._investedPoly
only. Beneficiary Address should be its msg.sender.LogModuleAdded
emit one more variable called budget.modules
mapping in the securityToken contract now returns the array of ModuleData.admin
varaible is removed from the TickerRegistry contract.0.2.0 26-03-18
SecurityTokenRegistry
is now working on the basis of the proxy version of the securitytoken contract. For that SecurityTokenRegistry has one more variable in the constructor called STVersionProxy .setProtocolVersion
new function added in the SecurityTokenRegistry to set the protocol version followed to generate the securityToken. Only be called by the polymath admin
.SecurityToken
now have the integration with polyToken. At the time of addModule()
SecurityToken approve the cost of the module to moduleFactory as the spender.withdrawPoly(uint256 _amount)
is added to withdrawal the unused POLY from the securityToken contract. Called only by the owner of the contract.checkPermission(address _delegate, address _module, bytes32 _perm)
function is added to check the permissions on the service providers(delegate).STVersionProxy_001.sol
& STVersionProxy_002.sol
are the two new contract added. Both of those are the proxy contract use to generate the SecurityToken. Both contract constructor takes two variables address of transferManagerFactory
address of the
permissionManagerFactory
.PermissionManager
. It has three contracts called GeneralPermissionManagerFactory, GeneralPermissionManager, IPermissionManager.GeneralPermissionManger
is all about providing the permission to the delegate corresponds to the SecurityToken. Major functionality is added, check, change the permission of the delegate.getDescription()
& getTitle()
.CappedSTO
is now Configurable by choosing the type of fundraise. Either POLY or ETH.CappedSTO
takes 3 more constructor arguments fundRaiseType (uint8), the address of the polyToken & address of the fund's receiver.buyTokensWithPoly(address _beneficiary, uint256 _investedPoly)
new function added in cappedSTO to facilitate the funds raising with the POLY.verifyInvestment(address _beneficiary, uint256 _fundsAmount)
new function added in ISTO to check whether the investor provides the allowance to the CappedSTO or not.LogModifyWhitelist
event of GeneralTransferManager emit two more variables. i.e address which added the investor in whitelist(_addedBy
) and records the timestamp at which modification in whitelist happen(_dateAdded
).permissions()
function added in GeneralTransferManager to get all permissions.PolyToken.sol
contract is added at contracts/helpers/PolyToken.sol. For now, it has no big use.reputation
mapping only contains the list of the addresses those used that module factory.checkModule()
of ModuleRegistry contract rename to useModule()
with same function parameters.LogModuleAdded
emit only 5 variables instead of 6. timestamp is no longer be a part of the event.SecurityTokenRegistrar
now renamed as SecurityTokenRegistry
.TickerRegistrar
renamed as TickerRegistry
.setTokenRegistrar
function of TickerRegistry renamed to setTokenRegistry
._moduleRegistry
contract address is replaced by the _owner
address._perm
parameter in the addModule()
function of the securityToken contract. Now only 4 parameters left.contracts/token/SecurityToken.sol
getCost()
is removed from the ModuleRegistry contract.SafeMath.sol
contract is replaced by the zeppelin-solidity library contract . SecurityTokens
and symbol
information will be directly part of the SecurityTokenRegistry. Those information will accessed by inheriting the ISecurityTokenRegistry
.delegates
mapping removed from the GeneralTransferManager.