Documentation
¶
Index ¶
- Constants
- func Execute()
- func RunApi(cmd *cobra.Command, args []string)
- func RunOrchestrator(cmd *cobra.Command, args []string)
- func RunValidate(cmd *cobra.Command, args []string)
- func RunValidateAndFix(cmd *cobra.Command, args []string)
- func RunValidationMigration(cmd *cobra.Command, args []string)
- type Migrator
- func (m *Migrator) Close()
- func (m *Migrator) DetermineMigrationBoundaries() (*big.Int, *big.Int)
- func (m *Migrator) FetchBlocksFromRPC(blockNumbers []*big.Int) ([]common.BlockData, error)
- func (m *Migrator) GetValidBlocksForRange(blockNumbers []*big.Int) []common.BlockData
- func (m *Migrator) GetValidBlocksFromRPC(blockNumbers []*big.Int) []common.BlockData
Constants ¶
View Source
const ( TARGET_STORAGE_DATABASE = "temp" DEFAULT_RPC_BATCH_SIZE = 200 DEFAULT_BATCH_SIZE = 1000 )
Variables ¶
This section is empty.
Functions ¶
func RunApi ¶
@title Thirdweb Insight @version v0.0.1-beta @description API for querying blockchain transactions and events @license.name Apache 2.0 @license.url https://github.com/thirdweb-dev/indexer/blob/main/LICENSE @BasePath / @Security BasicAuth @securityDefinitions.basic BasicAuth
func RunOrchestrator ¶
func RunValidate ¶
*
- Validates a range of blocks (end and start are inclusive) for a given chain
- First argument is the start block number
- Second argument (optional) is the end block number
func RunValidateAndFix ¶
func RunValidationMigration ¶
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func NewMigrator() *Migrator
func (*Migrator) DetermineMigrationBoundaries ¶
func (*Migrator) FetchBlocksFromRPC ¶
func (*Migrator) GetValidBlocksForRange ¶
Click to show internal directories.
Click to hide internal directories.