Transfer Manager module for core transfer validation functionality (GeneralTransferManager.sol)
Last updated
Was this helpful?
Last updated
Was this helpful?
View Source:
↗ Extends: ,
GeneralTransferManager
Events
Constructor
Arguments
Name
Type
Description
_securityToken
address
Address of the security token
_polyToken
address
This function returns the signature of configure function
Arguments
Name
Type
Description
Used to change the default times used when canSendAfter / canReceiveAfter are zero
Arguments
Name
Type
Description
_defaultCanSendAfter
uint64
default for zero canSendAfter
_defaultCanReceiveAfter
uint64
default for zero canReceiveAfter
Used to change the Issuance Address
Arguments
Name
Type
Description
_issuanceAddress
address
new address for the issuance
Default implementation of verifyTransfer used by SecurityToken If the transfer request comes from the STO, it only checks that the investor is in the whitelist If the transfer request comes from a token holder, it checks that: a) Both are on the whitelist b) Seller's sale lockup period is over c) Buyer's purchase lockup is over
Arguments
Name
Type
Description
_from
address
Address of the sender
_to
address
Address of the receiver
uint256
_from Address of the sender
_data
bytes
Arguments
Name
Type
Description
_nonce
uint256
_validFrom
uint256
_validTo
uint256
_data
bytes
Default implementation of verifyTransfer used by SecurityToken
Arguments
Name
Type
Description
_from
address
Address of the sender
_to
address
Address of the receiver
uint256
_from Address of the sender
bytes
_from Address of the sender
Arguments
Name
Type
Description
_from
address
_to
address
Modifies the successful checks required for a transfer to be deemed valid.
Arguments
Name
Type
Description
_transferType
enum GeneralTransferManagerStorage.TransferType
Type of transfer (0 = General, 1 = Issuance, 2 = Redemption)
_fromValidKYC
bool
Defines if KYC is required for the sender
_toValidKYC
bool
Defines if KYC is required for the receiver
_fromRestricted
bool
Defines if transfer time restriction is checked for the sender
_toRestricted
bool
Defines if transfer time restriction is checked for the receiver
Modifies the successful checks required for transfers.
Arguments
Name
Type
Description
_transferTypes
enum GeneralTransferManagerStorage.TransferType[]
Types of transfer (0 = General, 1 = Issuance, 2 = Redemption)
_fromValidKYC
bool[]
Defines if KYC is required for the sender
_toValidKYC
bool[]
Defines if KYC is required for the receiver
_fromRestricted
bool[]
Defines if transfer time restriction is checked for the sender
_toRestricted
bool[]
Defines if transfer time restriction is checked for the receiver
Arguments
Name
Type
Description
_transferType
enum GeneralTransferManagerStorage.TransferType
_fromValidKYC
bool
_toValidKYC
bool
_fromRestricted
bool
_toRestricted
bool
Add or remove KYC info of an investor.
Arguments
Name
Type
Description
_investor
address
is the address to whitelist
_canSendAfter
uint64
is the moment when the sale lockup period ends and the investor can freely sell or transfer their tokens
_canReceiveAfter
uint64
is the moment when the purchase lockup period ends and the investor can freely purchase or receive tokens from others
_expiryTime
uint64
is the moment till investors KYC will be validated. After that investor need to do re-KYC
Arguments
Name
Type
Description
_investor
address
_canSendAfter
uint64
_canReceiveAfter
uint64
_expiryTime
uint64
Add or remove KYC info of an investor.
Arguments
Name
Type
Description
_investors
address[]
is the address to whitelist
_canSendAfter
uint64[]
is the moment when the sale lockup period ends and the investor can freely sell his tokens
_canReceiveAfter
uint64[]
is the moment when the purchase lockup period ends and the investor can freely purchase tokens from others
_expiryTime
uint64[]
is the moment till investors KYC will be validated. After that investor need to do re-KYC
Used to modify investor Flag.
Arguments
Name
Type
Description
_investor
address
is the address of the investor.
_flag
uint8
index of flag to change. flag is used to know specifics about investor like isAccredited.
_value
bool
value of the flag. a flag can be true or false.
Arguments
Name
Type
Description
_investor
address
_flag
uint8
_value
bool
Used to modify investor data.
Arguments
Name
Type
Description
_investors
address[]
List of the addresses to modify data about.
_flag
uint8[]
index of flag to change. flag is used to know specifics about investor like isAccredited.
_value
bool[]
value of the flag. a flag can be true or false.
Adds or removes addresses from the whitelist - can be called by anyone with a valid signature
Arguments
Name
Type
Description
_investor
address
is the address to whitelist
_canSendAfter
uint256
is the moment when the sale lockup period ends and the investor can freely sell his tokens
_canReceiveAfter
uint256
is the moment when the purchase lockup period ends and the investor can freely purchase tokens from others
_expiryTime
uint256
is the moment till investors KYC will be validated. After that investor need to do re-KYC
_validFrom
uint256
is the time that this signature is valid from
_validTo
uint256
is the time that this signature is valid until
_nonce
uint256
nonce of signature (avoid replay attack)
_signature
bytes
issuer signature
Arguments
Name
Type
Description
_investor
address
_canSendAfter
uint256
_canReceiveAfter
uint256
_expiryTime
uint256
_validFrom
uint256
_validTo
uint256
_nonce
uint256
_signature
bytes
Adds or removes addresses from the whitelist - can be called by anyone with a valid signature
Arguments
Name
Type
Description
_investor
address[]
is the address to whitelist
_canSendAfter
uint256[]
is the moment when the sale lockup period ends and the investor can freely sell his tokens
_canReceiveAfter
uint256[]
is the moment when the purchase lockup period ends and the investor can freely purchase tokens from others
_expiryTime
uint256[]
is the moment till investors KYC will be validated. After that investor need to do re-KYC
_validFrom
uint256
is the time that this signature is valid from
_validTo
uint256
is the time that this signature is valid until
_nonce
uint256
nonce of signature (avoid replay attack)
_signature
bytes
issuer signature
Arguments
Name
Type
Description
_investor
address[]
_canSendAfter
uint256[]
_canReceiveAfter
uint256[]
_expiryTime
uint256[]
_validFrom
uint256
_validTo
uint256
_nonce
uint256
_signature
bytes
Used to verify the signature
Arguments
Name
Type
Description
_hash
bytes32
_signature
bytes
_nonce
uint256
Internal function used to check whether the KYC of investor is valid
Arguments
Name
Type
Description
_expiryTime
uint64
Expiry time of the investor
Internal function used to check whether the lock time of investor is valid
Arguments
Name
Type
Description
_lockTime
uint64
Lock time of the investor
Internal function to adjust times using default values
Arguments
Name
Type
Description
_canSendAfter
uint64
_canReceiveAfter
uint64
Arguments
Name
Type
Description
_key1
bytes32
_key2
address
Arguments
Name
Type
Description
_investor
address
dataStore
IDataStore
Arguments
Name
Type
Description
_investor
address
dataStore
IDataStore
Arguments
Name
Type
Description
_from
address
_to
address
Returns list of all investors
Arguments
Name
Type
Description
Returns list of investors in a range
Arguments
Name
Type
Description
_fromIndex
uint256
_toIndex
uint256
Arguments
Name
Type
Description
Arguments
Name
Type
Description
_investor
address
_flag
uint8
Arguments
Name
Type
Description
_investor
address
Arguments
Name
Type
Description
_investor
address
Returns list of all investors data
Arguments
Name
Type
Description
Returns list of specified investors data
Arguments
Name
Type
Description
_investors
address[]
Arguments
Name
Type
Description
_investors
address[]
Return the permissions flag that are associated with general trnasfer manager
Arguments
Name
Type
Description
return the amount of tokens for a given user as per the partition
Arguments
Name
Type
Description
_partition
bytes32
Identifier
_tokenHolder
address
Whom token amount need to query
_additionalBalance
uint256
It is the _value
that transfer during transfer/transferFrom function call
Arguments
Name
Type
Description
⤾ overrides
⤾ overrides
⤾ overrides
⤾ overrides
⤾ overrides