package
0.0.0-20220601180058-f03d455f2efb
Repository: https://github.com/fantom-foundation/rosetta-fantom.git
Documentation: pkg.go.dev

# Functions

CallType returns a boolean indicating if the provided trace type is a call type.
ChecksumAddress ensures a hex address is in Checksum Format.
CreateType returns a boolean indicating if the provided trace type is a create type.
GenerateBootstrapFile creates the bootstrap balances file for a particular genesis file.
MustChecksum ensures an address can be converted into a valid checksum.
NewClient creates a Client that from the provided url and params.
StartOpera starts Opera daemon in another goroutine and logs the results to the console.

# Constants

Blockchain is Fantom.
CallCodeOpType is used to represent CALLCODE trace operations.
CallOpType is used to represent CALL trace operations.
Create2OpType is used to represent CREATE2 trace operations.
CreateOpType is used to represent CREATE trace operations.
Decimals is the decimals value used in Currency.
DelegateCallOpType is used to represent DELEGATECALL trace operations.
DestructOpType is a synthetic operation used to represent the deletion of suicided accounts that still have funds at the end of a transaction.
FailureStatus is the status of any Opera operation considered unsuccessful.
FeeOpType is used to represent fee operations.
GenesisBlockIndex is the index of the genesis block.
HistoricalBalanceSupported is whether historical balance is supported.
IncludeMempoolCoins does not apply to rosetta-fantom as it is not UTXO-based.
MainnetNetwork is the value of the network in MainnetNetworkIdentifier.
NodeVersion is the version of opera we are using.
SelfDestructOpType is used to represent SELFDESTRUCT trace operations.
StaticCallOpType is used to represent STATICCALL trace operations.
SuccessStatus is the status of any Opera operation considered successful.
Symbol is the symbol value used in Currency.
TestnetNetwork is the value of the network in NetworkIdentifier.
nolint:gomnd.

# Variables

CallMethods are all supported call methods.
Currency is the *types.Currency for all Opera networks.
Client errors.
Client errors.
Client errors.
Client errors.
FantomMainnetGenesisBlockIdentifier is the *types.BlockIdentifier of the mainnet genesis block.
FantomMainnetGenesisHash represents the hash of the genesis block (block 0).
FantomTestnetGenesisBlockIdentifier is the *types.BlockIdentifier of the mainnet genesis block.
FantomTestnetGenesisHash represents the hash of the genesis block (block 0).
OperationStatuses are all supported operation statuses.
OperationTypes are all suppoorted operation types.

# Structs

Call is an Opera debug trace.
Client allows for querying a set of specific Opera endpoints in an idempotent manner.
GetBlockByNumberInput is the input to the call method "eth_getBlockByNumber".
GetCallInput is the input to the call method "eth_call", "eth_estimateGas".
GetTransactionReceiptInput is the input to the call method "eth_getTransactionReceipt".
GraphQLClient is a client used to make graphQL queries.

# Interfaces

GraphQL is the interface for accessing go-ethereum's GraphQL endpoint.
JSONRPC is the interface for accessing go-ethereum's JSON RPC endpoint.