Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "core/shop"

Index

Variables

Const SHOP_ADD_FN

SHOP_ADD_FN: "30" = "30"

Functions

Const addShop

  • addShop(shopData: IShopArgs, shopContract: Contract, detherTokenContract: Contract, wallet: Wallet, txOptions: ITxOptions): Promise<ContractTransaction>
  • Parameters

    • shopData: IShopArgs
    • shopContract: Contract
    • detherTokenContract: Contract
    • wallet: Wallet
    • txOptions: ITxOptions

    Returns Promise<ContractTransaction>

Const collectShopTaxes

  • collectShopTaxes(geohash6: string, start: number, end: number, shopContract: Contract, wallet: Wallet, txOptions: ITxOptions): Promise<ContractTransaction>
  • Parameters

    • geohash6: string
    • start: number
    • end: number
    • shopContract: Contract
    • wallet: Wallet
    • txOptions: ITxOptions

    Returns Promise<ContractTransaction>

Const createShopBytes

  • createShopBytes(shopData: IShopArgs): string

Const createShopTopUpBytes

  • createShopTopUpBytes(): string

Const deleteUserShop

  • deleteUserShop(geohash6: string, shopAddress: string, shopContract: Contract, wallet: Wallet, txOptions: ITxOptions): Promise<ContractTransaction>
  • Parameters

    • geohash6: string
    • shopAddress: string
    • shopContract: Contract
    • wallet: Wallet
    • txOptions: ITxOptions

    Returns Promise<ContractTransaction>

Const existsByAddress

  • existsByAddress(shopAddress: string, shopInstance: Contract): Promise<boolean>
  • Parameters

    • shopAddress: string
    • shopInstance: Contract

    Returns Promise<boolean>

Const getLicencePrice

  • getLicencePrice(geohash6: string, shopInstance: Contract): Promise<any>
  • Parameters

    • geohash6: string
    • shopInstance: Contract

    Returns Promise<any>

Const getShopByAddress

  • getShopByAddress(shopAddress: string, shopInstance: Contract): Promise<IShop>
  • Parameters

    • shopAddress: string
    • shopInstance: Contract

    Returns Promise<IShop>

Const getShopByPosition

  • getShopByPosition(geohash12: string, shopInstance: Contract): Promise<IShop>

Const getShopsInZone

  • getShopsInZone(geohash6: string, shopInstance: Contract): Promise<IShop[]>
  • Parameters

    • geohash6: string
    • shopInstance: Contract

    Returns Promise<IShop[]>

Const getShopsInZones

  • getShopsInZones(geohash6List: string[], shopInstance: Contract): Promise<IShop[][]>
  • Parameters

    • geohash6List: string[]
    • shopInstance: Contract

    Returns Promise<IShop[][]>

Const removeShop

  • removeShop(shopContract: Contract, wallet: Wallet, txOptions: ITxOptions): Promise<ContractTransaction>
  • Parameters

    • shopContract: Contract
    • wallet: Wallet
    • txOptions: ITxOptions

    Returns Promise<ContractTransaction>

Const setShopLicencePrice

  • setShopLicencePrice(geohash6: string, newPrice: string, shopContract: Contract, wallet: Wallet, txOptions: ITxOptions): Promise<ContractTransaction>
  • Parameters

    • geohash6: string
    • newPrice: string
    • shopContract: Contract
    • wallet: Wallet
    • txOptions: ITxOptions

    Returns Promise<ContractTransaction>

Const shopArrToObj

  • shopArrToObj(shopArr: any[]): IShop

Const topUpShop

  • topUpShop(topUpAmount: string, shopContract: Contract, detherTokenContract: Contract, wallet: Wallet, txOptions: ITxOptions): Promise<ContractTransaction>
  • Parameters

    • topUpAmount: string
    • shopContract: Contract
    • detherTokenContract: Contract
    • wallet: Wallet
    • txOptions: ITxOptions

    Returns Promise<ContractTransaction>

Generated using TypeDoc