_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c27100 | train | // Since Tendermint doesn't close its DB connections | {
"resource": ""
} | ||
c27101 | train | // NewLogger creates a new logger based on the given level | {
"resource": ""
} | ||
c27102 | train | // Error prints an error log | {
"resource": ""
} | ||
c27103 | train | // Warn prints a warning log | {
"resource": ""
} | ||
c27104 | train | // Info prints an information log | {
"resource": ""
} | ||
c27105 | train | // Debug prints a debug log | {
"resource": ""
} | ||
c27106 | train | // Adds a public key and address to the template. If PublicKey will try to fetch it by Address.
// If both PublicKey and Address are not set will use the keyClient to generate a new keypair | {
"resource": ""
} | ||
c27107 | train | // Attempt to execute a transaction using ABCI conventions and codes | {
"resource": ""
} | ||
c27108 | train | // Some ABCI type helpers | {
"resource": ""
} | ||
c27109 | train | // Same as above, but with the first param the websocket connection | {
"resource": ""
} | ||
c27110 | train | // NewWebsocketManager returns a new WebsocketManager that routes according to
// the given funcMap and connects to the server with the given connection
// options. | {
"resource": ""
} | ||
c27111 | train | // returns error if HRS regression or no SignBytes. returns true if HRS is unchanged | {
"resource": ""
} | ||
c27112 | train | // String returns a string representation of the LastSignedInfo. | {
"resource": ""
} | ||
c27113 | train | // Get a version of the contract name to be used for an instance of the contract | {
"resource": ""
} | ||
c27114 | train | // Generate Solidity code for this SNative contract | {
"resource": ""
} | ||
c27115 | train | // clean queries from tabs, spaces and returns | {
"resource": ""
} | ||
c27116 | train | // Read a log line by waiting until one is available and returning it | {
"resource": ""
} | ||
c27117 | train | // Tries to read a log line from the channel buffer or returns nil if none is
// immediately available | {
"resource": ""
} | ||
c27118 | train | // Enters an infinite loop that will drain any log lines from the passed logger.
// You may pass in a channel
//
// Exits if the channel is closed. | {
"resource": ""
} | ||
c27119 | train | // Drains everything that is available at the time of calling | {
"resource": ""
} | ||
c27120 | train | // Drains the next contiguous segment of loglines up to the buffer cap waiting
// for at least one line | {
"resource": ""
} | ||
c27121 | train | // Close the existing channel halting goroutines that are draining the channel
// and create a new channel to buffer into. Should not cause any log lines
// arriving concurrently to be lost, but any that have not been drained from
// old channel may be. | {
"resource": ""
} | ||
c27122 | train | // Returns a Logger that wraps the outputLogger passed and does not block on
// calls to Log and a channel of any errors from the underlying logger | {
"resource": ""
} | ||
c27123 | train | // Create a new State object | {
"resource": ""
} | ||
c27124 | train | // Make genesis state from GenesisDoc and save to DB | {
"resource": ""
} | ||
c27125 | train | // Perform updates to state whilst holding the write lock, allows a commit to hold the write lock across multiple
// operations while preventing interlaced reads and writes | {
"resource": ""
} | ||
c27126 | train | // Creates a copy of the database to the supplied db | {
"resource": ""
} | ||
c27127 | train | // NewSQLDB delegates work to a specific database adapter implementation,
// opens database connection and create log tables | {
"resource": ""
} | ||
c27128 | train | // Close database connection | {
"resource": ""
} | ||
c27129 | train | // GetLastBlockID returns last inserted blockId from log table | {
"resource": ""
} | ||
c27130 | train | // SynchronizeDB synchronize db tables structures from given tables specifications | {
"resource": ""
} | ||
c27131 | train | // GetBlock returns all tables structures and row data for given block | {
"resource": ""
} | ||
c27132 | train | // RestoreDB restores the DB to a given moment in time | {
"resource": ""
} | ||
c27133 | train | // Get the tree at prefix for making reads | {
"resource": ""
} | ||
c27134 | train | // Lazy load tree | {
"resource": ""
} | ||
c27135 | train | // Create a new in-memory IAVL tree | {
"resource": ""
} | ||
c27136 | train | // Strips braces and return simple variable confined between braces | {
"resource": ""
} | ||
c27137 | train | // Returns true IFF value is zero value or has length 0 | {
"resource": ""
} | ||
c27138 | train | // Ensure the directory exists or create it if needed. | {
"resource": ""
} | ||
c27139 | train | // Check whether the provided directory exists | {
"resource": ""
} | ||
c27140 | train | // Returns JSON string compatible with that stored by monax-keys | {
"resource": ""
} | ||
c27141 | train | // Create a new SNative contract description object by passing a comment, name
// and a list of member functions descriptions | {
"resource": ""
} | ||
c27142 | train | // This function is designed to be called from the EVM once a SNative contract
// has been selected. It is also placed in a registry by registerSNativeContracts
// So it can be looked up by SNative address | {
"resource": ""
} | ||
c27143 | train | // We define the address of an SNative contact as the last 20 bytes of the sha3
// hash of its name | {
"resource": ""
} | ||
c27144 | train | // Get function by calling identifier FunctionSelector | {
"resource": ""
} | ||
c27145 | train | // Get function by name | {
"resource": ""
} | ||
c27146 | train | // Get functions in order of declaration | {
"resource": ""
} | ||
c27147 | train | //
// SNative functions
//
// Get function signature | {
"resource": ""
} | ||
c27148 | train | // Adds each of tagsList to CombinedTags - choosing whether values for the same key should
// be concatenated or whether the first should value should stick | {
"resource": ""
} | ||
c27149 | train | // Returns a copy of the configSource with skip set as passed in | {
"resource": ""
} | ||
c27150 | train | // Try to find config by using XDG base dir spec | {
"resource": ""
} | ||
c27151 | train | // Source from a single environment variable with config embedded in JSON | {
"resource": ""
} | ||
c27152 | train | // Passed a pointer to struct creates a deep copy of the struct | {
"resource": ""
} | ||
c27153 | train | // NewProjectionFromBytes creates a Projection from a stream of bytes | {
"resource": ""
} | ||
c27154 | train | // NewProjectionFromFolder creates a Projection from a folder containing spec files | {
"resource": ""
} | ||
c27155 | train | // NewProjectionFromEventSpec receives a sqlsol event specification
// and returns a pointer to a filled projection structure
// that contains event types mapped to SQL column types
// and Event tables structures with table and columns info | {
"resource": ""
} | ||
c27156 | train | // Get the column for a particular table and column name | {
"resource": ""
} | ||
c27157 | train | // readFile opens a given file and reads it contents into a stream of bytes | {
"resource": ""
} | ||
c27158 | train | // getSQLType maps event input types with corresponding SQL column types
// takes into account related solidity types info and element indexed or hashed | {
"resource": ""
} | ||
c27159 | train | // getGlobalColumns returns global columns for event table structures,
// these columns will be part of every SQL event table to relate data with source events | {
"resource": ""
} | ||
c27160 | train | // Copies all mutable parts of account | {
"resource": ""
} | ||
c27161 | train | // Produce a fully realised GenesisDoc from a template GenesisDoc that may omit values | {
"resource": ""
} | ||
c27162 | train | // Implements Writer, but will never error | {
"resource": ""
} | ||
c27163 | train | // Add the power of a validator and returns the flow into that validator | {
"resource": ""
} | ||
c27164 | train | // Returns the flow that would be induced by a validator power change | {
"resource": ""
} | ||
c27165 | train | // Returns the power of id but only if it is set | {
"resource": ""
} | ||
c27166 | train | // Version of Power to match interface | {
"resource": ""
} | ||
c27167 | train | // Returns an error if the Sets are not equal describing which part of their structures differ | {
"resource": ""
} | ||
c27168 | train | // Iterates over validators sorted by address | {
"resource": ""
} | ||
c27169 | train | // Get bounds suitable for events.Provider | {
"resource": ""
} | ||
c27170 | train | // Create a new RPC request. This is the generic struct that is passed to RPC
// methods | {
"resource": ""
} | ||
c27171 | train | // NewRPCResponse creates a new response object from a result | {
"resource": ""
} | ||
c27172 | train | // NewRPCErrorResponse creates a new error-response object from the error code and message | {
"resource": ""
} | ||
c27173 | train | // MultiIterator iterates in order over a series o | {
"resource": ""
} | ||
c27174 | train | // Returns an initialized key client to a docker container
// running the keys server
// Adding the Ip address is optional and should only be used
// for passing data | {
"resource": ""
} | ||
c27175 | train | // NormaliseDomain encodes the assumption that when nil is used as a lower bound is interpreted as low rather than high | {
"resource": ""
} | ||
c27176 | train | // Sorts the keys as if they were compared lexicographically with their KeyOrder prepended | {
"resource": ""
} | ||
c27177 | train | // DelegateCall is executed by the DELEGATECALL opcode, introduced as off Ethereum Homestead.
// The intent of delegate call is to run the code of the callee in the storage context of the caller;
// while preserving the original caller to the previous callee.
// Different to the normal CALL or CALLCODE, the value does ... | {
"resource": ""
} | ||
c27178 | train | // Try to deduct gasToUse from gasLeft. If ok return false, otherwise
// set err and return true. | {
"resource": ""
} | ||
c27179 | train | // Dump the bytecode being sent to the EVM in the current working directory | {
"resource": ""
} | ||
c27180 | train | // Deterministic account generation helper. Pass number of accounts to make | {
"resource": ""
} | ||
c27181 | train | // NewPostgresAdapter constructs a new db adapter | {
"resource": ""
} | ||
c27182 | train | // Open connects to a PostgreSQL database, opens it & create default schema if provided | {
"resource": ""
} | ||
c27183 | train | // CreateTableQuery builds query for creating a new table | {
"resource": ""
} | ||
c27184 | train | // TableDefinitionQuery returns a query with table structure | {
"resource": ""
} | ||
c27185 | train | // InsertLogQuery returns a query to insert a row in log table | {
"resource": ""
} | ||
c27186 | train | // NewProcess returns a no-consensus ABCI process suitable for running a single node without Tendermint.
// The CheckTx function can be used to submit transactions which are processed according | {
"resource": ""
} | ||
c27187 | train | // Encloses in Envelope and signs envelope | {
"resource": ""
} | ||
c27188 | train | // Generate SignBytes, panicking on any failure | {
"resource": ""
} | ||
c27189 | train | // Generate a transaction Receipt containing the Tx hash and other information if the Tx is call.
// Returned by ABCI methods. | {
"resource": ""
} | ||
c27190 | train | // Filter logger allows us to filter lines logged to it before passing on to underlying
// output logger
// Creates a logger that removes lines from output when the predicate evaluates true | {
"resource": ""
} | ||
c27191 | train | // Connect GRPC clients using ChainURL | {
"resource": ""
} | ||
c27192 | train | // Creates a keypair using attached keys service | {
"resource": ""
} | ||
c27193 | train | // Broadcast payload for remote signing | {
"resource": ""
} | ||
c27194 | train | // Broadcast envelope - can be locally signed or remote signing will be attempted | {
"resource": ""
} | ||
c27195 | train | // Run a single uncoordinated local state | {
"resource": ""
} | ||
c27196 | train | // Convert slice of ConcretePrivateAccounts to slice of SigningAccounts | {
"resource": ""
} | ||
c27197 | train | // Generates a new account with private key. | {
"resource": ""
} | ||
c27198 | train | // Generates a new account with private key from SHA256 hash of a secret | {
"resource": ""
} | ||
c27199 | train | // Dump SNative contracts | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.