Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 5863b7f

Browse files
author
Victor Wiebe
committed
fix: 🐛 remove @dev test in comments
1 parent dfe95a2 commit 5863b7f

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

src/contract_wrappers/modules/checkpoint/dividend_checkpoint_wrapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ export default abstract class DividendCheckpointWrapper extends ModuleWrapper {
493493

494494
/**
495495
* Allows issuer to change maturity / expiry dates for dividends
496-
* @dev NB - setting the maturity of a currently matured dividend to a future date
497-
* @dev will effectively refreeze claims on that dividend until the new maturity date passes
496+
* NB - setting the maturity of a currently matured dividend to a future date
497+
* will effectively refreeze claims on that dividend until the new maturity date passes
498498
* @ dev NB - setting the expiry date to a past date will mean no more payments can be pulled
499-
* @dev or pushed out of a dividend
499+
* or pushed out of a dividend
500500
*/
501501
public updateDividendDates = async (params: UpdateDividendDatesParams) => {
502502
assert.assert(await this.isCallerTheSecurityTokenOwner(params.txData), 'The caller must be the ST owner');

src/contract_wrappers/tokens/security_token_wrapper.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
12481248
/**
12491249
* A security token issuer can specify that issuance has finished for the token
12501250
* (i.e. no new tokens can be minted or issued).
1251-
* @dev If a token returns FALSE for `isIssuable()` then it MUST always return FALSE in the future.
1251+
* If a token returns FALSE for `isIssuable()` then it MUST always return FALSE in the future.
12521252
* If a token returns FALSE for `isIssuable()` then it MUST never allow additional tokens to be issued.
12531253
* @return bool `true` signifies the minting is allowed. While `false` denotes the end of minting
12541254
*/
@@ -1267,7 +1267,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
12671267
/**
12681268
* In order to provide transparency over whether `controllerTransfer` / `controllerRedeem` are useable
12691269
* or not `isControllable` function will be used.
1270-
* @dev If `isControllable` returns `false` then it always return `false` and
1270+
* If `isControllable` returns `false` then it always return `false` and
12711271
* `controllerTransfer` / `controllerRedeem` will always revert.
12721272
* @return bool `true` when controller address is non-zero otherwise return `false`.
12731273
*/
@@ -1395,7 +1395,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
13951395

13961396
/**
13971397
* Allows the owner to withdraw unspent POLY stored by them on the ST or any ERC20 token.
1398-
* @dev Owner can transfer POLY to the ST which will be used to pay for modules that require a POLY fee.
1398+
* Owner can transfer POLY to the ST which will be used to pay for modules that require a POLY fee.
13991399
*/
14001400
public withdrawERC20 = async (params: WithdrawERC20Params) => {
14011401
assert.isNonZeroETHAddressHex('tokenContract', params.tokenContract);
@@ -1590,7 +1590,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
15901590

15911591
/**
15921592
* Permanently freeze issuance of this security token.
1593-
* @dev It MUST NOT be possible to increase `totalSupply` after this function is called.
1593+
* It MUST NOT be possible to increase `totalSupply` after this function is called.
15941594
*/
15951595
public freezeIssuance = async (params: FreezeIssuanceParams) => {
15961596
assert.assert(await this.isIssuable(), 'Issuance frozen');
@@ -1610,7 +1610,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
16101610

16111611
/**
16121612
* This function must be called to increase the total supply (Corresponds to mint function of ERC20).
1613-
* @dev It is only be called by the token issuer or the operator defined by the issuer. ERC1594 doesn't have
1613+
* It is only be called by the token issuer or the operator defined by the issuer. ERC1594 doesn't have
16141614
* have the any logic related to operator but its superset ERC1400 have the operator logic and this function
16151615
* is allowed to call by the operator.
16161616
*/
@@ -1676,8 +1676,8 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
16761676

16771677
/**
16781678
* Validate permissions with PermissionManager if it exists, If no Permission return false
1679-
* @dev Note that IModule withPerm will allow ST owner all permissions anyway
1680-
* @dev this allows individual modules to override this logic if needed (to not allow ST owner all permissions)
1679+
* Note that IModule withPerm will allow ST owner all permissions anyway
1680+
* this allows individual modules to override this logic if needed (to not allow ST owner all permissions)
16811681
* @return success
16821682
*/
16831683
public checkPermission = async (params: CheckPermissionParams): Promise<boolean> => {
@@ -1722,7 +1722,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
17221722

17231723
/**
17241724
* Decreases totalSupply and the corresponding amount of the specified partition of tokenHolder
1725-
* @dev This function can only be called by the authorised operator.
1725+
* This function can only be called by the authorised operator.
17261726
* @param partition The partition to allocate the decrease in balance.
17271727
* @param tokenHolder The token holder whose balance should be decreased
17281728
* @param value The amount by which to decrease the balance
@@ -1749,7 +1749,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
17491749
* This function redeem an amount of the token of a msg.sender. For doing so msg.sender may incentivize
17501750
* using different ways that could be implemented with in the `redeem` function definition. But those implementations
17511751
* are out of the scope of the ERC1594.
1752-
* @dev It is analogy to `transferFrom`
1752+
* It is analogy to `transferFrom`
17531753
*/
17541754
public redeemFrom = async (params: RedeemFromParams) => {
17551755
await this.checkBalanceFromGreaterThanValue(params.from, params.value);
@@ -1946,7 +1946,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
19461946

19471947
/**
19481948
* Used by the issuer to permanently disable controller functionality
1949-
* @dev enabled via feature switch "disableControllerAllowed"
1949+
* enabled via feature switch "disableControllerAllowed"
19501950
*/
19511951
public disableController = async (params: DisableControllerParams) => {
19521952
await this.checkOnlyOwner(params.txData);
@@ -1962,7 +1962,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
19621962
* This function allows an authorised address to transfer tokens between any two token holders.
19631963
* The transfer must still respect the balances of the token holders (so the transfer must be for at most
19641964
* `balanceOf(_from)` tokens) and potentially also need to respect other transfer restrictions.
1965-
* @dev This function can only be executed by the `controller` address.
1965+
* This function can only be executed by the `controller` address.
19661966
*/
19671967
public controllerTransfer = async (params: ControllerTransferParams) => {
19681968
assert.isETHAddressHex('from', params.from);
@@ -1985,7 +1985,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
19851985
* This function allows an authorised address to redeem tokens for any token holder.
19861986
* The redemption must still respect the balances of the token holder (so the redemption must be for at most
19871987
* `balanceOf(tokenHolder)` tokens) and potentially also need to respect other transfer restrictions.
1988-
* @dev This function can only be executed by the `controller` address.
1988+
* This function can only be executed by the `controller` address.
19891989
*/
19901990
public controllerRedeem = async (params: ControllerRedeemParams) => {
19911991
assert.isETHAddressHex('from', params.from);
@@ -2025,11 +2025,11 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
20252025

20262026
/**
20272027
* Function used to attach a module to the security token
2028-
* @dev E.G.: On deployment (through the STR) ST gets a TransferManager module attached to it
2029-
* @dev to control restrictions on transfers.
2030-
* @dev You are allowed to add a new moduleType if:
2031-
* @dev - there is no existing module of that type yet added
2032-
* @dev - the last member of the module list is replacable
2028+
* E.G.: On deployment (through the STR) ST gets a TransferManager module attached to it
2029+
* to control restrictions on transfers.
2030+
* You are allowed to add a new moduleType if:
2031+
* - there is no existing module of that type yet added
2032+
* - the last member of the module list is replacable
20332033
*/
20342034
public addModule: AddModuleInterface = async (params: AddModuleParams) => {
20352035
const producedAddModuleInfo = await this.addModuleRequirementsAndGetData(params);
@@ -2046,8 +2046,8 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
20462046

20472047
/**
20482048
* Attachs a module to the SecurityToken
2049-
* @dev E.G.: On deployment (through the STR) ST gets a TransferManager module attached to it
2050-
* @dev to control restrictions on transfers.
2049+
* E.G.: On deployment (through the STR) ST gets a TransferManager module attached to it
2050+
* to control restrictions on transfers.
20512051
*/
20522052
public addModuleWithLabel: AddModuleInterface = async (params: AddModuleParams) => {
20532053
const producedAddModuleInfo = await this.addModuleRequirementsAndGetData(params);
@@ -2214,7 +2214,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
22142214

22152215
/**
22162216
* Used to attach a new document to the contract, or update the URI or hash of an existing attached document
2217-
* @dev Can only be executed by the owner of the contract.
2217+
* Can only be executed by the owner of the contract.
22182218
*/
22192219
public setDocument = async (params: SetDocumentParams) => {
22202220
assert.assert(params.name.length > 0, 'Bad name, cannot be empty');
@@ -2231,7 +2231,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
22312231

22322232
/**
22332233
* Used to remove an existing document from the contract by giving the name of the document.
2234-
* @dev Can only be executed by the owner of the contract.
2234+
* Can only be executed by the owner of the contract.
22352235
*/
22362236
public removeDocument = async (params: DocumentParams) => {
22372237
await this.checkOnlyOwner(params.txData);

0 commit comments

Comments
 (0)