Documentation ¶
Overview ¶
Package flattened is a an on-chain light client checkpoint oracle.
Index ¶
- Constants
- type Media
- func (ctrct *Media) Burn(ctx context.Context, chainID *big.Int, from common.Address, ...) (txHash, rawTx string, err error)
- func (ctrct *Media) Contract() *contract.Media
- func (ctrct *Media) ContractAddr() common.Address
- func (ctrct *Media) GetTokenIdByContentHash(ctx context.Context, from common.Address, hash string) (string, error)
- func (ctrct *Media) Mint(ctx context.Context, chainID *big.Int, from common.Address, ...) (txHash, rawTx string, err error)
- func (ctrct *Media) MintForCreator(ctx context.Context, chainID *big.Int, from common.Address, ...) (txHash, rawTx string, err error)
- func (ctrct *Media) MintKs(ctx context.Context, chainID *big.Int, ks *keystore.KeyStore, ...) (txHash, rawTx string, err error)
- func (ctrct *Media) MintWithSig(ctx context.Context, chainID *big.Int, from common.Address, ...) (txHash, rawTx string, err error)
- func (ctrct *Media) Name(ctx context.Context, from common.Address) (string, error)
- func (ctrct *Media) OwnerOf(ctx context.Context, from common.Address, tokenId *big.Int) (string, error)
- func (ctrct *Media) Symbol(ctx context.Context, from common.Address) (string, error)
- func (ctrct *Media) TokenByIndex(ctx context.Context, from common.Address, index *big.Int) (string, error)
- func (ctrct *Media) TokenContentHashes(ctx context.Context, from common.Address, tokenId *big.Int) (string, error)
- func (ctrct *Media) TokenOfOwnerByIndex(ctx context.Context, from common.Address, owner common.Address, index *big.Int) (string, error)
- func (ctrct *Media) TokenURI(ctx context.Context, from common.Address, tokenId *big.Int) (string, error)
- func (ctrct *Media) TransferFrom(ctx context.Context, chainID *big.Int, from common.Address, ...) (txHash, rawTx string, err error)
- func (ctrct *Media) UpdateTokenURI(ctx context.Context, chainID *big.Int, from common.Address, ...) (txHash, rawTx string, err error)
Constants ¶
View Source
const ( // 合约函数 MusicbeeMint = "musicbee_mint" MusicbeeMintWithSig = "musicbee_mintWithSig" MusicbeeUpdateTokenURI = "musicbee_updateTokenURI" MusicbeeTransfer = "musicbee_transfer" MusicbeeBurn = "musicbee_burn" MusicbeeMintV2 = "musicbee_mint_v2" MusicbeeMintWithSigV2 = "musicbee_mintWithSig_v2" MusicbeeUpdateTokenURIV2 = "musicbee_updateTokenURI_v2" MusicbeeTransferV2 = "musicbee_transfer_v2" MusicbeeBurnV2 = "musicbee_burn_v2" LecTransfer = "lec_transfer" SocialPostComment = "social_post_comment" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Media ¶
type Media struct {
// contains filtered or unexported fields
}
Media is a Go wrapper around an on-chain checkpoint oracle contract.
func (*Media) ContractAddr ¶
ContractAddr returns the address of contract.
func (*Media) GetTokenIdByContentHash ¶
func (*Media) MintForCreator ¶
func (*Media) MintWithSig ¶
func (*Media) TokenByIndex ¶
func (*Media) TokenContentHashes ¶
func (*Media) TokenOfOwnerByIndex ¶
func (*Media) TransferFrom ¶
Click to show internal directories.
Click to hide internal directories.