corecontracts

package
v0.7.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

Core contract calls are manually written and stored here, but are not built as services. They are meant to be replaced by a library that can handle these calls dynamically in the future.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMessageFormat

func ErrorMessageFormat(ch chain.Chain, contractID isc.Hname, errorID uint16) (string, error)

func GetAccountBalance

func GetAccountBalance(ch chain.Chain, agentID isc.AgentID) (*isc.Assets, error)

func GetAccountFoundries

func GetAccountFoundries(ch chain.Chain, agentID isc.AgentID) ([]uint32, error)

func GetAccountNFTs

func GetAccountNFTs(ch chain.Chain, agentID isc.AgentID) ([]iotago.NFTID, error)

func GetAccountNonce

func GetAccountNonce(ch chain.Chain, agentID isc.AgentID) (uint64, error)

func GetAccounts

func GetAccounts(ch chain.Chain) ([]isc.AgentID, error)

func GetAllowedStateControllerAddresses

func GetAllowedStateControllerAddresses(ch chain.Chain) ([]iotago.Address, error)

func GetBlobInfo

func GetBlobInfo(ch chain.Chain, blobHash hashing.HashValue) (map[string]uint32, bool, error)

func GetBlobValue

func GetBlobValue(ch chain.Chain, blobHash hashing.HashValue, key string) ([]byte, error)

func GetBlockInfo

func GetBlockInfo(ch chain.Chain, blockIndex uint32) (*blocklog.BlockInfo, error)

func GetChainInfo

func GetChainInfo(ch chain.Chain) (*isc.ChainInfo, error)

func GetChainOwner

func GetChainOwner(ch chain.Chain) (isc.AgentID, error)

func GetControlAddresses

func GetControlAddresses(ch chain.Chain) (*isc.ControlAddresses, error)

func GetEventsForBlock

func GetEventsForBlock(ch chain.Chain, blockIndex uint32) ([]*isc.Event, error)

func GetEventsForContract

func GetEventsForContract(ch chain.Chain, contractHname isc.Hname) ([]*isc.Event, error)

func GetEventsForRequest

func GetEventsForRequest(ch chain.Chain, requestID isc.RequestID) ([]*isc.Event, error)

func GetFoundryOutput

func GetFoundryOutput(ch chain.Chain, serialNumber uint32) (*iotago.FoundryOutput, error)

func GetLatestBlockInfo

func GetLatestBlockInfo(ch chain.Chain) (*blocklog.BlockInfo, error)

func GetNFTData

func GetNFTData(ch chain.Chain, nftID iotago.NFTID) (*isc.NFT, error)

func GetNativeTokenIDRegistry

func GetNativeTokenIDRegistry(ch chain.Chain) ([]iotago.NativeTokenID, error)

func GetRequestIDsForBlock

func GetRequestIDsForBlock(ch chain.Chain, blockIndex uint32) ([]isc.RequestID, error)

func GetRequestIDsForLatestBlock

func GetRequestIDsForLatestBlock(ch chain.Chain) ([]isc.RequestID, error)

func GetRequestReceipt

func GetRequestReceipt(ch chain.Chain, requestID isc.RequestID) (*blocklog.RequestReceipt, error)

func GetRequestReceiptsForBlock

func GetRequestReceiptsForBlock(ch chain.Chain, blockIndex uint32) ([]*blocklog.RequestReceipt, error)

func GetTotalAssets

func GetTotalAssets(ch chain.Chain) (*isc.Assets, error)

func IsRequestProcessed

func IsRequestProcessed(ch chain.Chain, requestID isc.RequestID) (bool, error)

func ListBlobs

func ListBlobs(ch chain.Chain) (map[hashing.HashValue]uint32, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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