Skip to main content

FungibleTokenBondingCurveAdmin

Hierarchy

  • unknown
    • FungibleTokenBondingCurveAdmin

Implements

  • unknown

Index

Constructors

constructor

Properties

curve

curve: any = ...

events

events: { mint: typeof BondingMintEvent; redeem: typeof BondingRedeemEvent } = ...

Type declaration

feeMaster

feeMaster: any = ...

insideMint

insideMint: any = ...

owner

owner: any = ...

token

token: any = ...

Methods

approveBase

  • approveBase(forest: AccountUpdateForest): Promise<void>
  • Parameters

    • forest: AccountUpdateForest

    Returns Promise<void>

publiccanChangeAdmin

  • canChangeAdmin(_admin: PublicKey): Promise<any>
  • Parameters

    • _admin: PublicKey

    Returns Promise<any>

publiccanChangeVerificationKey

  • canChangeVerificationKey(_vk: VerificationKey): Promise<Bool>
  • Parameters

    • _vk: VerificationKey

    Returns Promise<Bool>

publiccanMint

  • canMint(_accountUpdate: AccountUpdate): Promise<any>
  • Parameters

    • _accountUpdate: AccountUpdate

    Returns Promise<any>

publiccanPause

  • canPause(): Promise<Bool>
  • Returns Promise<Bool>

publiccanResume

  • canResume(): Promise<Bool>
  • Returns Promise<Bool>

deploy

  • deploy(props: DeployArgs): Promise<void>
  • Parameters

    • props: DeployArgs

    Returns Promise<void>

ensureOwnerSignature

  • ensureOwnerSignature(): any
  • Returns any

initialize

mint

  • mint(to: PublicKey, amount: UInt64, price: UInt64): Promise<void>
  • Parameters

    • to: PublicKey
    • amount: UInt64
    • price: UInt64

    Returns Promise<void>

redeem

  • redeem(amount: UInt64, minPrice: UInt64, slippage: UInt32): Promise<void>
  • Parameters

    • amount: UInt64
    • minPrice: UInt64
    • slippage: UInt32

    Returns Promise<void>

sync

  • sync(): Promise<void>
  • In case the user burned tokens without calling the redeem method, we need to sync the supply to the actual circulated supply


    Returns Promise<void>

updateVerificationKey

  • updateVerificationKey(vk: VerificationKey): Promise<void>
  • Update the verification key. Note that because we have set the permissions for setting the verification key to impossibleDuringCurrentVersion(), this will only be possible in case of a protocol update that requires an update.


    Parameters

    • vk: VerificationKey

    Returns Promise<void>