Interface StakingContractMethods
Methods
changeTokenAddress
- changeTokenAddress(_tokenAddress: string): ContractSendMethod
Parameters
Returns ContractSendMethod
createProduct
- createProduct(_startDate: number, _endDate: number, _totalMaxAmount: string | number, _individualMinimumAmount: string | number, _individualMaximumAmount: string | number, _APR: number, _lockedUntilFinalization: boolean): ContractSendMethod
Parameters
_startDate: number
_endDate: number
_totalMaxAmount: string | number
_individualMinimumAmount: string | number
_individualMaximumAmount: string | number
_APR: number
_lockedUntilFinalization: boolean
Returns ContractSendMethod
getAPRAmount
- getAPRAmount(_APR: number, _startDate: number, _endDate: number, _amount: string | number): ContractCallMethod<number>
Parameters
_APR: number
_startDate: number
_endDate: number
_amount: string | number
getProduct
- getProduct(_product_id: number): ContractCallMethod<{ 0: number; 1: number; 10: number[]; 2: number; 3: number; 4: number; 5: number; 6: number; 7: number; 8: boolean; 9: string[] }>
Parameters
Returns ContractCallMethod<{ 0: number; 1: number; 10: number[]; 2: number; 3: number; 4: number; 5: number; 6: number; 7: number; 8: boolean; 9: string[] }>
getSubscription
- getSubscription(_subscription_id: number, _product_id: number): ContractCallMethod<{ 0: number; 1: number; 2: number; 3: number; 4: number; 5: string; 6: number; 7: boolean; 8: number }>
Parameters
_subscription_id: number
_product_id: number
Returns ContractCallMethod<{ 0: number; 1: number; 2: number; 3: number; 4: number; 5: string; 6: number; 7: boolean; 8: number }>
products
- products(v1: number): ContractCallMethod<{ 0: number; 1: number; 2: number; 3: number; 4: number; 5: number; 6: number; 7: number; 8: boolean }>
Parameters
Returns ContractCallMethod<{ 0: number; 1: number; 2: number; 3: number; 4: number; 5: number; 6: number; 7: number; 8: boolean }>
safeGuardAllTokens
- safeGuardAllTokens(_address: string): ContractSendMethod
Parameters
Returns ContractSendMethod
subscribeProduct
- subscribeProduct(_product_id: number, _amount: string | number): ContractSendMethod
Parameters
_product_id: number
_amount: string | number
Returns ContractSendMethod
transferOwnership
- transferOwnership(newOwner: string): ContractSendMethod
Parameters
Returns ContractSendMethod
withdrawSubscription
- withdrawSubscription(_product_id: number, _subscription_id: number): ContractSendMethod
Parameters
_product_id: number
_subscription_id: number
Returns ContractSendMethod