package
0.0.0-20210820184906-b400eb5d5b6e
Repository: https://github.com/notegio/openrelay.git
Documentation: pkg.go.dev
# Functions
CheckMask verifies that a given hash matches the provided hashmask.
No description provided by the author
FindValidNonce finds a valid hash for a given hash mask, Terms, and Timestamp, and returns the Nonce used to generate thas hashmask.
GetAllTokenPairs returns an unfilitered list of Pairs based on the trading pairs currently present in the database, limited by a count and offset.
No description provided by the author
No description provided by the author
GetTokenABPairs returns a list of Pairs based on the trading pairs currrently present in the database, filtered to include only pairs that include both tokenA and tokenB.
GetTokenAPairs returns a list of Pairs based on the trading pairs currrently present in the database, filtered to include only pairs that include tokenA and limited by a count and offset.
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
No description provided by the author
No description provided by the author
No description provided by the author
OnesCount returns how many 1s appear in the binary representation of a string of bytes.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
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
No description provided by the author
No description provided by the author
HashMask is a string of bytes.
No description provided by the author
No description provided by the author
No description provided by the author
Pair tracks pairs of tokens TokenA and TokenB.
No description provided by the author
No description provided by the author
No description provided by the author
Terms represents an instance of the terms of service.
TermsManager keeps track of a database instance and a cache and provides several interfaces for interacting with the Terms of Service in the database.
TermsSig represent a user's signature of the terms of service.