model

package
v0.0.0-...-9bbcd85 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportEvents = map[ContractEvent]string{
	EventTransferSingle: "TransferSingle",
	EventTransferBatch:  "TransferBatch",
	EventApprovalForAll: "ApprovalForAll",
	EventURI:            "URI",
}

Functions

This section is empty.

Types

type ContractEvent

type ContractEvent int
const (
	EventTransferSingle ContractEvent = iota
	EventTransferBatch
	EventApprovalForAll
	EventURI
)

type Event4ApprovalForAll

type Event4ApprovalForAll struct {
	Account  string `json:"account"`
	Operator string `json:"operator"`
	Approved bool   `json:"approved"`
}

Event4ApprovalForAll event ApprovalForAll(address indexed account, address indexed operator, bool approved);

type Event4TransferBatch

type Event4TransferBatch struct {
	Operator string   `json:"operator"`
	From     string   `json:"from"`
	To       string   `json:"to"`
	Ids      []string `json:"ids"`
	Values   []uint64 `json:"value"`
}

Event4TransferBatch event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

type Event4TransferSingle

type Event4TransferSingle struct {
	Operator string `json:"operator"`
	From     string `json:"from"`
	To       string `json:"to"`
	Id       string `json:"id"`
	Value    uint64 `json:"value"`
}

Event4TransferSingle event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

type Event4URI

type Event4URI struct {
	Value string `json:"value"`
	Id    string `json:"id"`
}

Event4URI event URI(string value, uint256 indexed id);

type MethodReadBalanceOf

type MethodReadBalanceOf struct {
	Owner string `json:"owner"`
	Id    string `json:"id"`
}

MethodReadBalanceOf function balanceOf(address _owner, uint256 _id) external view returns (uint256);

type MethodReadBalanceOfBatchInputs

type MethodReadBalanceOfBatchInputs struct {
	Owners []string `json:"owners"`
	Ids    []string `json:"ids"`
}

MethodReadBalanceOfBatchInputs function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory);

type MethodReadIsApprovedForAllInputs

type MethodReadIsApprovedForAllInputs struct {
	Owner    string `json:"owner"`
	Operator string `json:"operator"`
}

MethodReadIsApprovedForAllInputs function isApprovedForAll(address _owner, address _operator) external view returns (bool);

type MethodWriteSafeBatchTransferFromInputs

type MethodWriteSafeBatchTransferFromInputs struct {
	From    string   `json:"from"`
	To      string   `json:"to"`
	Ids     []string `json:"ids"`
	Amounts []int64  `json:"amounts"`
	Data    []byte   `json:"data"`
}

MethodWriteSafeBatchTransferFromInputs SafeBatchTransferFrom(_from common.Address, _to common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte)

type MethodWriteSafeTransferFromInputs

type MethodWriteSafeTransferFromInputs struct {
	From   string `json:"from"`
	To     string `json:"to"`
	Id     string `json:"id"`
	Amount int64  `json:"amount"`
	Data   []byte `json:"data"`
}

MethodWriteSafeTransferFromInputs SafeTransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _id *big.Int, _amount *big.Int, _data []byte)

type MethodWriteSetApprovalForAllInputs

type MethodWriteSetApprovalForAllInputs struct {
	Operator string `json:"operator"`
	Approved bool   `json:"approved"`
}

MethodWriteSetApprovalForAllInputs SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool)

Jump to

Keyboard shortcuts

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