Function
| Static Public Summary | ||
| public |
acceptTerms(): [type] [acceptTerms description] |
|
| public |
addShop(shop: [type]) [addShop description] |
|
| public |
addTransaction(hash: *) |
|
| public |
checkUserCertified(ethAddress: *) |
|
| public |
closeNotificationModal |
|
| public |
convertCalendar(str: String): Object Decode calendar String |
|
| public |
convertDay(open: Boolean, openAt: String, closeAt: String): String Encode Day Object |
|
| public |
deleteShop(description: [Object]): [String] register a shop, SHOP need to have DTH and to be certified |
|
| public |
fromState(objectPattern: {"onChange": *, "onBlur": *}, props: *): {"address": *, "name": *, "cat": *, "description": *} |
|
| public |
Get the value of the corresponding key, if the value is null return defaultValue |
|
| public |
async getAddress() |
|
| public |
async getBalance(): Object return balance of ETH and DTH of the web3 primary account |
|
| public |
async getDetherContract() |
|
| public |
async getDthContract() |
|
| public |
getErrorMessage(errors: Array | String, response: Object): String Parse api response to return formatted error |
|
| public |
async getLicenceShop(countryIso: *): * |
|
| public |
async getNetworkId() |
|
| public |
return formatted shop |
|
| public |
async getSmsContract() |
|
| public |
async getTransactionStatus(hash: [type]): Promise [getTransactionStatus description] |
|
| public |
Fetch Client Informations via ip and get the licence price for his country |
|
| public |
isSmsReg(): Bool return true if is sms register |
|
| public |
async isWeb3(): Eth address know if user as web3 injected |
|
| public |
async isZoneShopOpen(country: *): * |
|
| public |
last(array: [type]): [type] Get the last element of the array |
|
| public |
mobile(args: ...*) |
|
| public |
openNotificationModal(objectPattern: {"type": *, "message": *}) openNotificationModal |
|
| public |
parseError(error: *) |
|
| public |
phoneVerificationTime(time: [type]): [type] phoneVerificationTime |
|
| public |
removeShop(): [type] removeShop |
|
| public |
reset() |
|
| public |
|
|
| public |
rootReducer(state: *, action: *): * |
|
| public |
scrollToTop(duration: *) |
|
| public |
sendSms |
|
| public |
sendVerifCode |
|
| public |
setAppInitialized(bool: boolean) setAppInitialized |
|
| public |
setBalance(balance: *) |
|
| public |
setDataShopPending(data: [type]) setDataShopPending |
|
| public |
setEthAddress(ethAddress: *) |
|
| public |
setEthNetwork(id: [type]) [setEthNetwork description] |
|
| public |
setLicencePrice(licencePrice: *) |
|
| public |
setMetamaskInstalled(bool: boolean) setMetamaskInstalled |
|
| public |
setPhone |
|
| public |
setPhoneCountry(phoneCountry: string) setPhoneCountry |
|
| public |
setPhoneSent(phoneSent: boolean) setPhoneSent |
|
| public |
|
|
| public |
setShake(context: [type]) setShake |
|
| public |
setTransactionHash(hash: *) |
|
| public |
timeSince(time: [type]): [type] timeSince |
|
| public |
toNBytes(str: [type], n: [type]): [type] [toNBytes description] |
|
| public |
toggleTermsModal |
|
| public |
uniqueArray(arr: Array, objKey: String): Array [filter array of object by a key uniqueness] |
|
| public |
wait(ms: *) |
|
Static Public
public acceptTerms(): [type] source
import {acceptTerms} from 'dether.shop/src/actions/app/app.js'[acceptTerms description]
Return:
| [type] | [description] |
public addShop(shop: [type]) source
import {addShop} from 'dether.shop/src/actions/shop/shop.js'[addShop description]
Params:
| Name | Type | Attribute | Description |
| shop | [type] | [description] |
public addTransaction(hash: *) source
import {addTransaction} from 'dether.shop/src/actions/transaction/transaction.js'Params:
| Name | Type | Attribute | Description |
| hash | * |
public checkUserCertified(ethAddress: *) source
import {checkUserCertified} from 'dether.shop/src/actions/user/user.js'Params:
| Name | Type | Attribute | Description |
| ethAddress | * |
public closeNotificationModal() source
import {closeNotificationModal} from 'dether.shop/src/actions/app/app.js'closeNotificationModal
public convertCalendar(str: String): Object source
import {convertCalendar} from 'dether.shop/src/helpers/calendar/calendar.js'Decode calendar String
Params:
| Name | Type | Attribute | Description |
| str | String | encoded string |
public convertDay(open: Boolean, openAt: String, closeAt: String): String source
import {convertDay} from 'dether.shop/src/helpers/calendar/calendar.js'Encode Day Object
public deleteShop(description: [Object]): [String] source
import {deleteShop} from 'dether.shop/src/helpers/ethereum/deleteShop.js'register a shop, SHOP need to have DTH and to be certified
Params:
| Name | Type | Attribute | Description |
| description | [Object] |
Return:
| [String] | transaction hash |
public fromState(objectPattern: {"onChange": *, "onBlur": *}, props: *): {"address": *, "name": *, "cat": *, "description": *} source
import fromState from 'dether.shop/src/containers/AddShop/Form/fromState.js'Params:
| Name | Type | Attribute | Description |
| objectPattern | {"onChange": *, "onBlur": *} |
|
|
| props | * |
Return:
| {"address": *, "name": *, "cat": *, "description": *} |
public get(key: String, defaultValue: Any): Any source
import get from 'dether.shop/src/helpers/get/get.js'Get the value of the corresponding key, if the value is null return defaultValue
Params:
| Name | Type | Attribute | Description |
| key | String | ||
| defaultValue | Any |
Return:
| Any |
public async getAddress() source
import {getAddress} from 'dether.shop/src/helpers/ethereum/utils.js'public async getBalance(): Object source
import {getBalance} from 'dether.shop/src/helpers/ethereum/getBalance.js'return balance of ETH and DTH of the web3 primary account
public async getDetherContract() source
import {getDetherContract} from 'dether.shop/src/helpers/ethereum/utils.js'public async getDthContract() source
import {getDthContract} from 'dether.shop/src/helpers/ethereum/utils.js'public getErrorMessage(errors: Array | String, response: Object): String source
import {getErrorMessage} from 'dether.shop/src/helpers/apiResponse/apiResponse.js'Parse api response to return formatted error
public async getLicenceShop(countryIso: *): * source
import getLicenceShop from 'dether.shop/src/helpers/ethereum/getLicenceShop.js'Params:
| Name | Type | Attribute | Description |
| countryIso | * |
Return:
| * |
public async getNetworkId() source
import {getNetworkId} from 'dether.shop/src/helpers/ethereum/utils.js'public getShop(): Object source
import getShop from 'dether.shop/src/helpers/ethereum/getShop.js'return formatted shop
public async getSmsContract() source
import {getSmsContract} from 'dether.shop/src/helpers/ethereum/utils.js'public async getTransactionStatus(hash: [type]): Promise source
import getTransactionStatus from 'dether.shop/src/helpers/ethereum/getTransactionStatus.js'[getTransactionStatus description]
Params:
| Name | Type | Attribute | Description |
| hash | [type] | [description] |
public initializeClientInfo() source
import {initializeClientInfo} from 'dether.shop/src/actions/app/app.js'Fetch Client Informations via ip and get the licence price for his country
public isSmsReg(): Bool source
import {isSmsReg} from 'dether.shop/src/helpers/ethereum/isSmsReg.js'return true if is sms register
Return:
| Bool |
public async isWeb3(): Eth address source
import isWeb3 from 'dether.shop/src/helpers/ethereum/isWeb3.js'know if user as web3 injected
Return:
| Eth address |
public async isZoneShopOpen(country: *): * source
import isZoneShopOpen from 'dether.shop/src/helpers/ethereum/isZoneShopOpen.js'Params:
| Name | Type | Attribute | Description |
| country | * |
Return:
| * |
public last(array: [type]): [type] source
import last from 'dether.shop/src/helpers/last/last.js'Get the last element of the array
Params:
| Name | Type | Attribute | Description |
| array | [type] |
Return:
| [type] |
public mobile(args: ...*) source
import {mobile} from 'dether.shop/src/styles/medias.js'Params:
| Name | Type | Attribute | Description |
| args | ...* |
public openNotificationModal(objectPattern: {"type": *, "message": *}) source
import {openNotificationModal} from 'dether.shop/src/actions/app/app.js'openNotificationModal
Params:
| Name | Type | Attribute | Description |
| objectPattern | {"type": *, "message": *} |
|
public parseError(error: *) source
import {parseError} from 'dether.shop/src/helpers/parse/parse.js'Params:
| Name | Type | Attribute | Description |
| error | * |
public phoneVerificationTime(time: [type]): [type] source
import {phoneVerificationTime} from 'dether.shop/src/helpers/timers/timers.js'phoneVerificationTime
Params:
| Name | Type | Attribute | Description |
| time | [type] | [description] |
Return:
| [type] | [description] |
public removeShop(): [type] source
import {removeShop} from 'dether.shop/src/actions/shop/shop.js'removeShop
Return:
| [type] | [description] |
public resetTransaction() source
import {resetTransaction} from 'dether.shop/src/actions/transaction/transaction.js'public rootReducer(state: *, action: *): * source
import rootReducer from 'dether.shop/src/reducers/index.js'Params:
| Name | Type | Attribute | Description |
| state | * | ||
| action | * |
Return:
| * |
public scrollToTop(duration: *) source
import scrollToTop from 'dether.shop/src/helpers/scrollTop/scrollTop.js'Params:
| Name | Type | Attribute | Description |
| duration | * |
public sendSms(phoneNumber: string, ethAddress: string, onSuccess: function, onError: function): object source
import {sendSms} from 'dether.shop/src/actions/kyc/kyc.js'sendSms
public sendVerifCode(code: string, phoneNumber: string, onSuccess: function, onError: function): object source
import {sendVerifCode} from 'dether.shop/src/actions/kyc/kyc.js'sendVerifCode
public setAppInitialized(bool: boolean) source
import {setAppInitialized} from 'dether.shop/src/actions/app/app.js'setAppInitialized
Params:
| Name | Type | Attribute | Description |
| bool | boolean | [description] |
public setBalance(balance: *) source
import {setBalance} from 'dether.shop/src/actions/user/user.js'Params:
| Name | Type | Attribute | Description |
| balance | * |
public setDataShopPending(data: [type]) source
import {setDataShopPending} from 'dether.shop/src/actions/shop/shop.js'setDataShopPending
Params:
| Name | Type | Attribute | Description |
| data | [type] | [description] |
public setEthAddress(ethAddress: *) source
import {setEthAddress} from 'dether.shop/src/actions/user/user.js'Params:
| Name | Type | Attribute | Description |
| ethAddress | * |
public setEthNetwork(id: [type]) source
import {setEthNetwork} from 'dether.shop/src/actions/app/app.js'[setEthNetwork description]
Params:
| Name | Type | Attribute | Description |
| id | [type] | [description] |
public setLicencePrice(licencePrice: *) source
import {setLicencePrice} from 'dether.shop/src/actions/app/app.js'Params:
| Name | Type | Attribute | Description |
| licencePrice | * |
public setMetamaskInstalled(bool: boolean) source
import {setMetamaskInstalled} from 'dether.shop/src/actions/app/app.js'setMetamaskInstalled
Params:
| Name | Type | Attribute | Description |
| bool | boolean | if metamask is installed |
public setPhone(phone: String) source
import {setPhone} from 'dether.shop/src/actions/kyc/kyc.js'setPhone
Params:
| Name | Type | Attribute | Description |
| phone | String | Phone number |
public setPhoneCountry(phoneCountry: string) source
import {setPhoneCountry} from 'dether.shop/src/actions/kyc/kyc.js'setPhoneCountry
Params:
| Name | Type | Attribute | Description |
| phoneCountry | string | ISO country |
public setPhoneSent(phoneSent: boolean) source
import {setPhoneSent} from 'dether.shop/src/actions/kyc/kyc.js'setPhoneSent
Params:
| Name | Type | Attribute | Description |
| phoneSent | boolean | [description] |
public setPhoneVerified() source
import {setPhoneVerified} from 'dether.shop/src/actions/user/user.js'public setShake(context: [type]) source
import {setShake} from 'dether.shop/src/helpers/shake/shake.js'setShake
Params:
| Name | Type | Attribute | Description |
| context | [type] | [description] |
public setTransactionHash(hash: *) source
import {setTransactionHash} from 'dether.shop/src/actions/transaction/transaction.js'Params:
| Name | Type | Attribute | Description |
| hash | * |
public timeSince(time: [type]): [type] source
import {timeSince} from 'dether.shop/src/helpers/timers/timers.js'timeSince
Params:
| Name | Type | Attribute | Description |
| time | [type] | [description] |
Return:
| [type] | [description] |
public toNBytes(str: [type], n: [type]): [type] source
import {toNBytes} from 'dether.shop/src/helpers/ethereum/utils.js'[toNBytes description]
Params:
| Name | Type | Attribute | Description |
| str | [type] | [description] |
|
| n | [type] | [description] |
Return:
| [type] | [description] |
public toggleTermsModal() source
import {toggleTermsModal} from 'dether.shop/src/actions/app/app.js'toggleTermsModal
public uniqueArray(arr: Array, objKey: String): Array source
import {uniqueArray} from 'dether.shop/src/helpers/array/array.js'[filter array of object by a key uniqueness]
public wait(ms: *) source
import wait from 'dether.shop/src/helpers/wait/wait.js'Params:
| Name | Type | Attribute | Description |
| ms | * |
