package
0.0.0-20250222181736-423ad2c20814
Repository: https://github.com/dlnrd/solgo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddressInSlice checks whether an Ethereum address is present in a slice of addresses.
ContainsBlacklistType checks whether a BlacklistType item is present in a slice of BlacklistType.
ContainsTransactionMethodType checks whether a TransactionMethodType item is present in a slice of TransactionMethodType.
ContainsUUID checks whether a UUID is present in a slice of UUIDs by comparing their string representations.
DumpNodeNoExit prints a formatted JSON representation of the provided interface without exiting the program.
DumpNodeWithExit prints a formatted JSON representation of the provided interface and exits the program.
EventToABI converts a Event object to its JSON ABI representation.
FromJSON converts JSON data into a Go data structure of type T.
GetBuildVersionByModule retrieves the build version of a specified module from the current application's build information.
GetCurrentPath returns the current working directory.
GetLocalSourcesPath returns the absolute path to the local sources directory.
No description provided by the author
No description provided by the author
No description provided by the author
IsSemanticVersionGreaterOrEqualTo checks if the version represented by a string is greater than or equal to the provided SemanticVersion.
IsSemanticVersionLowerOrEqualTo checks if the version represented by a string is lower than or equal to the provided SemanticVersion.
Keccak256 returns the Keccak256 hash of the input data.
MethodToABI converts a Method object to its JSON ABI representation.
NamedAddressInSlice checks whether an Ethereum address is present in a slice of NamedAddr and returns the corresponding NamedAddr if found.
NewNormalizeType creates and returns a new NormalizeType instance.
NewRateLimiter initializes and returns a new RateLimiter with the specified capacity and refill time.
ParseSemanticVersion parses a version string into a SemanticVersion struct.
PathExists returns true if the given path exists.
SimplifyImportPaths simplifies the paths in import statements as file will already be present in the directory for future consumption and is rather corrupted for import paths to stay the same.
StringInSlice checks whether a string is present in a slice of strings.
StripExtraSPDXLines removes the extra SPDX lines from the content.
StripImportPaths removes the import paths entirely from the content.
ToABI converts the ABI object into an ethereum/go-ethereum ABI object.
ToJSON converts a Go struct to its JSON representation.
ToJSONPretty returns a pretty-printed JSON representation of the provided interface.
ToProtoJSON converts a Go struct to its JSON representation.
WriteToFile writes the provided data byte array to a file at the provided path.

# Constants

Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Special Mainnets.
No description provided by the author
Localnets.
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
No description provided by the author
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
Mainnets.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
No description provided by the author
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
No description provided by the author
Constants defining various strategies, address types, transaction method types, etc.
No description provided by the author
Testnets.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.
Constants defining various strategies, address types, transaction method types, etc.

# Variables

ZeroAddress represents a zero Ethereum address.
ZeroHash represents a hash value consisting of all zeros.
ZeroSignatureBytes and ZeroSignature represent a null signature in Ethereum transactions.
ZeroSignatureBytes and ZeroSignature represent a null signature in Ethereum transactions.

# Structs

ArgumentABI represents the JSON structure of a method's argument.
MethodABI represents the JSON structure of a method's ABI.
NamedAddr encapsulates detailed information about an Ethereum address along with its metadata.
NormalizationInfo represents the result of a type normalization.
NormalizeType provides methods for normalizing type names.
RateLimiter implements a token bucket rate limiting algorithm.
SemanticVersion represents a semantic version, following the Major.Minor.Patch format.

# Type aliases

AccountType categorizes the types of accounts used, particularly in simulations.
AddressType categorizes Ethereum addresses based on their usage context.
AntiWhaleType represents types of anti-whale measures, such as "pinksale" for specific project launches with anti-whale features.
BlacklistType defines types of blacklist categories for tokens or contracts, such as "rugpull", "honeypot", and others related to specific risks.
ExchangeType represents various decentralized exchange (DEX) protocols.
LogEventType represents the type of event logged by Ethereum smart contracts.
No description provided by the author
No description provided by the author
SafetyStateType represents the safety state of a transaction or contract, including "unknown", "safe", "warning", and "unsafe".
SimulatorType represents the types of simulators used for transaction execution or testing.
Strategy represents the strategy used in transaction processing or data fetching.
TokenType categorizes the types of tokens, such as "erc20" for standard fungible tokens and "erc721" for non-fungible tokens (NFTs).
TradeType defines the type of trade action, including "buy" and "sell".
TransactionMethodType defines the type of transaction method used in Ethereum transactions.