Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ERC1155Ownable

Hierarchy

  • Model<ERC1155OwnableMethods>
    • ERC1155Ownable

Implements

Index

Constructors

Properties

_contract: Web3Contract<ERC1155OwnableMethods, any>
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • balanceOf(account: string, id: number): Promise<number>
  • balanceOfBatch(accounts: string[], ids: number[]): Promise<number[]>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(uri: string): Promise<TransactionReceipt>
  • getApprovalForAllEvents(filter: PastEventOptions): Promise<XEvents<ApprovalForAllEvent>[]>
  • getOwnershipTransferredEvents(filter: PastEventOptions): Promise<XEvents<OwnershipTransferredEvent>[]>
  • getTransferBatchEvents(filter: PastEventOptions): Promise<XEvents<TransferBatchEvent>[]>
  • getTransferSingleEvents(filter: PastEventOptions): Promise<XEvents<TransferSingleEvent>[]>
  • getURIEvents(filter: PastEventOptions): Promise<XEvents<URIEvent>[]>
  • isApprovedForAll(account: string, operator: string): Promise<boolean>
  • loadAbi(): void
  • loadContract(): void
  • mint(to: string, tokenId: number, amount: number, data: string): Promise<TransactionReceipt>
  • mintBatch(to: string, tokenIds: number[], amounts: number[], data: string): Promise<TransactionReceipt>
  • owner(): Promise<string>
  • safeBatchTransferFrom(from: string, to: string, ids: number[], amounts: number[], data: string): Promise<TransactionReceipt>
  • safeTransferFrom(from: string, to: string, id: number, amount: number, data: string): Promise<TransactionReceipt>
  • sendTx(method: ContractSendMethod, value?: any, debug?: undefined | boolean): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • debug: undefined | boolean = ...

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, debug?: boolean): Promise<TransactionReceipt>
  • Send unsigned transaction

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • Optional debug: boolean

    Returns Promise<TransactionReceipt>

  • setApprovalForAll(operator: string, approved: boolean): Promise<TransactionReceipt>
  • setURI(uri: string): Promise<TransactionReceipt>
  • start(): Promise<void>
  • supportsInterface(interfaceId: string): Promise<boolean>
  • transferOwnership(newOwner: string): Promise<TransactionReceipt>
  • uri(v1: number): Promise<string>

Generated using TypeDoc