corecontracts

package
v1.0.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 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, blockIndexOrTrieRoot string) (string, error)

func GetAccountBalance

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

func GetAccountFoundries

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

func GetAccountNFTs

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

func GetAccountNonce

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

func GetAccounts

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

func GetAllowedStateControllerAddresses

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

func GetBlobInfo

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

func GetBlobValue

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

func GetBlockInfo

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

func GetChainInfo

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

func GetChainOwner

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

func GetControlAddresses

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

func GetEventsForBlock

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

func GetEventsForContract

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

func GetEventsForRequest

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

func GetFoundryOutput

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

func GetLatestBlockInfo

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

func GetNFTData

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

func GetNativeTokenIDRegistry

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

func GetRequestIDsForBlock

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

func GetRequestIDsForLatestBlock

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

func GetRequestReceipt

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

func GetRequestReceiptsForBlock

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

func GetTotalAssets

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

func IsRequestProcessed

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

func ListBlobs

func ListBlobs(ch chain.Chain, blockIndexOrTrieRoot string) (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