Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NeoContractLX

Hierarchy

  • NeoContractLX

Index

Methods

Static addAddress

  • Adds an address to a token sale group.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • address: Address

      The address to add.

    • group: any

      The group number.

    • wif: WIF

      The contract admin WIF.

    Returns Promise<DoInvokeConfig>

Static allowance

  • Gets the transferFrom allowance of an address

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • address: Address

      The base address to get the allowance against.

    • spender: Address

      The address who can spend from "address".

    Returns Promise<number | undefined>

Static approve

  • Approve an amount to transfer on behalf of an address.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • spender: Address

      The address to grant a transfer allowance.

    • amount: any

      The number of tokens to grant spender control over.

    • wif: WIF

      The wif of the base account being spent from.

    Returns Promise<DoInvokeConfig>

Static balanceOf

Static balanceOfVestedAddress

  • Gets the amount of tokens on an account that are part of a vesting workflow.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • address: Address

      The requested address to return the balance of.

    Returns Promise<number | undefined>

Static contractName

Static decimals

Static enableDEXWhiteListing

  • enableDEXWhiteListing(network: NetworkItem, lxContractHash: ScriptHash, value: any, wif: WIF): Promise<DoInvokeConfig>
  • Enables Whitelisting of addresses for the transferFrom method.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • value: any

      A value representing whether this feature is enabled or disabled.

    • wif: WIF

      The contract admin wif.

    Returns Promise<DoInvokeConfig>

Static getGroupUnlockBlock

  • getGroupUnlockBlock(network: NetworkItem, lxContractHash: ScriptHash, targetGroup: any): Promise<number | undefined>
  • Gets the unlock block for a token sale for a specific group.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • targetGroup: any

      The target group.

    Returns Promise<number | undefined>

Static getTokenSaleGroupNumber

Static initSmartContract

  • Initialized the smart contract. This is a mandatory step that must occur prior to using the contract for the first time.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • wif: WIF

      The contract admin WIF.

    Returns Promise<DoInvokeConfig>

Static isPresaleAllocationLocked

Static mintTokens

Static setGroupUnlockBlock

  • setGroupUnlockBlock(network: NetworkItem, lxContractHash: ScriptHash, group: any, block: any, wif: WIF): Promise<DoInvokeConfig>
  • Sets a group's unlock block to a token sale.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • group: any

      The target group number.

    • block: any

      The unlock block height.

    • wif: WIF

      The contract admin wif.

    Returns Promise<DoInvokeConfig>

Static symbol

  • symbol(network: NetworkItem, lxContractHash: string): Promise<string | undefined>

Static totalSupply

Static transfer

  • Transfers tokens between two addresses if the spender has custody of enough tokens.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • toAddress: Address

      The address to transfer to.

    • amount: any

      The amount of tokens to transfer.

    • wif: WIF

      The token holder's WIF.

    Returns Promise<DoInvokeConfig>

Static transferFrom

  • Transfers tokens on behalf of another user.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • fromAddress: Address

      The address to transfer from.

    • toAddress: Address

      The address to transfer to.

    • amount: any

      The amount to transfer.

    • wif: WIF

      The wif of the user wishing to initiate the transfer.

    Returns Promise<DoInvokeConfig>

Static unlockFoundersTokens

  • Unlocks founder tokens.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • lxContractHash: ScriptHash

      The LX script hash found (Here).

    • address: Address

      The target founder address.

    • period: number

      The vesting period to unlock.

    • wif: WIF

      The contract admin wif.

    Returns Promise<DoInvokeConfig>

Static updateAdminAddress

Generated using TypeDoc