oep4

package
v0.0.0-...-b94ffa6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: LGPL-3.0-or-later Copyright 2019 DNA Dev team

  • Copyright (C) 2018 The ontology Authors
  • This file is part of The ontology library. *
  • The ontology is free software: you can redistribute it and/or modify
  • it under the terms of the GNU Lesser General Public License as published by
  • the Free Software Foundation, either version 3 of the License, or
  • (at your option) any later version. *
  • The ontology is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public License
  • along with The ontology. If not, see <http://www.gnu.org/licenses/>.

SPDX-License-Identifier: LGPL-3.0-or-later Copyright 2019 DNA Dev team

  • Copyright (C) 2018 The ontology Authors
  • This file is part of The ontology library. *
  • The ontology is free software: you can redistribute it and/or modify
  • it under the terms of the GNU Lesser General Public License as published by
  • the Free Software Foundation, either version 3 of the License, or
  • (at your option) any later version. *
  • The ontology is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU Lesser General Public License for more details. *
  • You should have received a copy of the GNU Lesser General Public License
  • along with The ontology. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oep4

type Oep4 struct {
	ContractAddress common.Address
	// contains filtered or unexported fields
}

func NewOep4

func NewOep4(address common.Address, sdk *dnaSdk.DNASdk) *Oep4

func (*Oep4) Approve

func (this *Oep4) Approve(owner *dnaSdk.Account, spender common.Address, amount *big.Int, gasPrice,
	gasLimit uint64) (common.Uint256, error)

func (*Oep4) BalanceOf

func (this *Oep4) BalanceOf(account common.Address) (*big.Int, error)

func (*Oep4) Decimals

func (this *Oep4) Decimals() (*big.Int, error)

func (*Oep4) FetchBlockTransferEvent

func (this *Oep4) FetchBlockTransferEvent(height uint32) ([]*Oep4TransferEvent, error)

func (*Oep4) FetchTxTransferEvent

func (this *Oep4) FetchTxTransferEvent(hash string) ([]*Oep4TransferEvent, error)

func (*Oep4) MultiSignApprove

func (this *Oep4) MultiSignApprove(ownerAccounts []*dnaSdk.Account, m int, spender common.Address,
	amount *big.Int, gasPrice, gasLimit uint64) (common.Uint256, error)

func (*Oep4) MultiSignTransfer

func (this *Oep4) MultiSignTransfer(fromAccounts []*dnaSdk.Account, m int, to common.Address, amount *big.Int,
	gasPrice, gasLimit uint64) (common.Uint256, error)

func (*Oep4) MultiSignTransferFrom

func (this *Oep4) MultiSignTransferFrom(spenders []*dnaSdk.Account, m int, from, to common.Address,
	amount *big.Int, gasPrice, gasLimit uint64) (common.Uint256, error)

func (*Oep4) Name

func (this *Oep4) Name() (string, error)

func (*Oep4) Symbol

func (this *Oep4) Symbol() (string, error)

func (*Oep4) TotalSupply

func (this *Oep4) TotalSupply() (*big.Int, error)

func (*Oep4) Transfer

func (this *Oep4) Transfer(from *dnaSdk.Account, to common.Address, amount *big.Int, gasPrice,
	gasLimit uint64) (common.Uint256, error)

func (*Oep4) TransferFrom

func (this *Oep4) TransferFrom(spender *dnaSdk.Account, from, to common.Address, amount *big.Int, gasPrice,
	gasLimit uint64) (common.Uint256, error)

func (*Oep4) TransferMulti

func (this *Oep4) TransferMulti(fromAccounts []*dnaSdk.Account, to []common.Address, amount []*big.Int,
	gasPrice, gasLimit uint64) (common.Uint256, error)

there are no plan to support multi sign of TransferMulti

type Oep4TransferEvent

type Oep4TransferEvent struct {
	Name   string
	From   common.Address
	To     common.Address
	Amount *big.Int
}

func (*Oep4TransferEvent) String

func (this *Oep4TransferEvent) String() string

type State

type State struct {
	From   common.Address
	To     common.Address
	Amount *big.Int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL