Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvolutionContractState ¶
type EvolutionContractState interface { GetMintedWithExternalURIEvents(contract string, blockNumber uint64) ([]model.MintedWithExternalURI, error) StoreMintedWithExternalURIEvent(contract string, event *model.MintedWithExternalURI) error }
type EvolutionSyncState ¶
type EvolutionSyncState interface { SetNextEvoEventBlock(contract string, blockNumber uint64) error GetNextEvoEventBlock(contract string, blockNumber uint64) (uint64, error) SetFirstEvoBlock(block model.Block) error GetFirstEvoBlock() (model.Block, error) SetLastEvoBlock(block model.Block) error GetLastEvoBlock() (model.Block, error) }
type OwnershipContractState ¶
type OwnershipContractState interface { StoreERC721UniversalContracts(universalContracts []model.ERC721UniversalContract) error GetExistingERC721UniversalContracts(contracts []string) ([]string, error) GetCollectionAddress(contract string) (common.Address, error) GetAllERC721UniversalContracts() []string HasERC721UniversalContract(contract string) (bool, error) }
type OwnershipSyncState ¶
type OwnershipSyncState interface { SetFirstOwnershipBlock(block model.Block) error GetFirstOwnershipBlock() (model.Block, error) SetLastOwnershipBlock(block model.Block) error GetLastOwnershipBlock() (model.Block, error) GetOwnershipBlock(blockNumber uint64) (model.Block, error) SetOwnershipBlock(blockNumber uint64, block model.Block) error GetAllStoredBlockNumbers() ([]uint64, error) DeleteOldStoredBlockNumbers() error DeleteOrphanBlockData(blockNumberRef uint64) error SetLastMappedOwnershipBlockNumber(blockNumber uint64) error GetLastMappedOwnershipBlockNumber() (uint64, error) SetOwnershipEvoBlockMapping(ownershipBlockNumber, evoBlockNumber uint64) error GetMappedEvoBlockNumber(ownershipBlockNumber uint64) (uint64, error) }
type State ¶
type State interface { OwnerOf(contract common.Address, tokenId *big.Int) (common.Address, error) BalanceOf(contract, owner common.Address) (*big.Int, error) TokenOfOwnerByIndex(contract, owner common.Address, idx int) (*big.Int, error) TotalSupply(contract common.Address) (int64, error) TokenByIndex(contract common.Address, idx int) (*big.Int, error) TokenURI(contract common.Address, tokenId *big.Int) (string, error) Transfer(contract common.Address, eventTransfer *model.ERC721Transfer) error Mint(contract common.Address, mintEvent *model.MintedWithExternalURI) error LoadContractTrees(contractAddress common.Address) error UpdateContractState(contract common.Address, lastProcessedEvoBlock uint64) error AccountData(contract common.Address) (*account.AccountData, error) TagRoot(blockNumber int64) error DeleteOrphanRootTags(formBlock, toBlock int64) error GetLastTaggedBlock() (int64, error) Checkout(blockNumber int64) error }
State interface defines functions to interact with state of the blockchain
type Tx ¶
type Tx interface { Discard() Commit() error State OwnershipContractState EvolutionContractState OwnershipSyncState EvolutionSyncState }
Tx interface wraps all the available actions for state
Directories ¶
Path | Synopsis |
---|---|
contract
|
|
Code generated by MockGen.
|
Code generated by MockGen. |
tree
|
|
account/mock
Code generated by MockGen.
|
Code generated by MockGen. |
enumerated/mock
Code generated by MockGen.
|
Code generated by MockGen. |
enumeratedtotal/mock
Code generated by MockGen.
|
Code generated by MockGen. |
ownership/mock
Code generated by MockGen.
|
Code generated by MockGen. |
Click to show internal directories.
Click to hide internal directories.