Documentation ¶
Index ¶
- Constants
- type AssetInfo
- type Config
- type TokenChainStore
- func (c *TokenChainStore) GetAsset(hash Uint256) (*AssetInfo, error)
- func (c *TokenChainStore) GetAssets() map[Uint256]AssetInfo
- func (c *TokenChainStore) GetTxReference(tx *types.Transaction) (map[*types.Input]*types.Output, error)
- func (c *TokenChainStore) GetUnspentElementFromProgramHash(programHash Uint168, assetid Uint256, height uint32) ([]*utxo, error)
- func (c *TokenChainStore) GetUnspents(programHash Uint168) (map[Uint256][]*utxo, error)
- func (c *TokenChainStore) PersistAsset(batch database.Batch, asset AssetInfo) error
- func (c *TokenChainStore) PersistUnspentWithProgramHash(batch database.Batch, programHash Uint168, assetid Uint256, height uint32, ...) error
- func (c *TokenChainStore) RollbackAsset(batch database.Batch, assetID Uint256) error
Constants ¶
View Source
const IX_Unspent_UTXO = 0x91
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ChainParams *config.Params GetTxFee func(tx *types.Transaction) Fixed64 }
type TokenChainStore ¶
type TokenChainStore struct { *blockchain.ChainStore // contains filtered or unexported fields }
func NewChainStore ¶
func NewChainStore(genesisBlock *types.Block, assetID Uint256, dataPath string) (*TokenChainStore, error)
func (*TokenChainStore) GetAsset ¶
func (c *TokenChainStore) GetAsset(hash Uint256) (*AssetInfo, error)
func (*TokenChainStore) GetAssets ¶
func (c *TokenChainStore) GetAssets() map[Uint256]AssetInfo
func (*TokenChainStore) GetTxReference ¶
func (c *TokenChainStore) GetTxReference(tx *types.Transaction) (map[*types.Input]*types.Output, error)
func (*TokenChainStore) GetUnspentElementFromProgramHash ¶
func (c *TokenChainStore) GetUnspentElementFromProgramHash(programHash Uint168, assetid Uint256, height uint32) ([]*utxo, error)
func (*TokenChainStore) GetUnspents ¶
func (c *TokenChainStore) GetUnspents(programHash Uint168) (map[Uint256][]*utxo, error)
func (*TokenChainStore) PersistAsset ¶
func (c *TokenChainStore) PersistAsset(batch database.Batch, asset AssetInfo) error
func (*TokenChainStore) PersistUnspentWithProgramHash ¶
func (c *TokenChainStore) PersistUnspentWithProgramHash(batch database.Batch, programHash Uint168, assetid Uint256, height uint32, unspents []*utxo) error
func (*TokenChainStore) RollbackAsset ¶
func (c *TokenChainStore) RollbackAsset(batch database.Batch, assetID Uint256) error
Click to show internal directories.
Click to hide internal directories.