_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c173200
validation
// Scan deserializes the log topics.
{ "resource": "" }
c173201
validation
// NewWorker returns new instance of worker.
{ "resource": "" }
c173202
validation
// NewLoggerBase creates a new LoggerBase.
{ "resource": "" }
c173203
validation
// Log adds a new log message with a given severity level.
{ "resource": "" }
c173204
validation
// PreAccountAddBalanceApprove approve balance if amount exists.
{ "resource": "" }
c173205
validation
// PreAccountAddBalance adds balance to psc.
{ "resource": "" }
c173206
validation
// AfterAccountAddBalance updates psc and ptc balance of an account.
{ "resource": "" }
c173207
validation
// AfterAccountReturnBalance updates psc and ptc balance of an account.
{ "resource": "" }
c173208
validation
// AccountUpdateBalances updates ptc, psc and eth balance values.
{ "resource": "" }
c173209
validation
// PreAccountReturnBalance returns from psc to ptc.
{ "resource": "" }
c173210
validation
// GetOfferingUsage returns total units used for all channels // with a given offering.
{ "resource": "" }
c173211
validation
// GetProductUsage returns total units used in all channel // of all offerings with given product.
{ "resource": "" }
c173212
validation
// AddMapping maps an external port to a local port for a specific // service to UPnP interface.
{ "resource": "" }
c173213
validation
// DeleteMapping removes the port mapping to UPnP interface.
{ "resource": "" }
c173214
validation
// PostCheque sends a payment cheque to a payment server.
{ "resource": "" }
c173215
validation
// NewHTTPClient returns a client that speaks to tor open sock.
{ "resource": "" }
c173216
validation
// NewServer creates a new UI server.
{ "resource": "" }
c173217
validation
// AddHandler registers a new RPC handler in a given namespace.
{ "resource": "" }
c173218
validation
// ListenAndServe starts to listen and to serve requests.
{ "resource": "" }
c173219
validation
// Recover ensures data consistency after unexpected controller's exit.
{ "resource": "" }
c173220
validation
// ConnStr composes a data connection string.
{ "resource": "" }
c173221
validation
// NewDBFromConnStr connects to db and returns db instance.
{ "resource": "" }
c173222
validation
// NewDB creates a new data connection handle.
{ "resource": "" }
c173223
validation
// GetCountry returns country code by ip. // Parses response in JSON format and returns a value of the field.
{ "resource": "" }
c173224
validation
// Endpoint returns endpoint msg for a channel with given key.
{ "resource": "" }
c173225
validation
// NewServer creates a new pay server.
{ "resource": "" }
c173226
validation
// NewMonitor creates new blockchain monitor.
{ "resource": "" }
c173227
validation
// initLastProcessedBlock calculates last processed block. If user role is // client and value of "eth.event.lastProcessedBlock" setting is 0, then value // of "eth.event.lastProcessedBlock" setting is equal the difference between // the last Ethereum block and a InitialBlocks value. If InitialBlocks // value is 0, the...
{ "resource": "" }
c173228
validation
// Start starts scanning blockchain for events.
{ "resource": "" }
c173229
validation
// newClient creates client for connection to the Ethereum.
{ "resource": "" }
c173230
validation
// Loop performs a function that creates new jobs with a certain frequency. // If at the moment there is already a similar active job, then such job is // ignored. The function works correctly only with jobs for which duplicates // are allowed.
{ "resource": "" }
c173231
validation
// Offering gets offering message through tor net.
{ "resource": "" }
c173232
validation
// Endpoint gets endpoint message through tor net.
{ "resource": "" }
c173233
validation
// Ping returns an error if remote enpoint cannot be reached.
{ "resource": "" }
c173234
validation
// GetEthTransactions returns transactions by related object.
{ "resource": "" }
c173235
validation
// AgentSeal encrypts message using client's public key and packs with // agent signature.
{ "resource": "" }
c173236
validation
// ClientOpen decrypts message using client's key and verifies using agent's key.
{ "resource": "" }
c173237
validation
// PackWithSignature packs message with signature.
{ "resource": "" }
c173238
validation
// UnpackSignature unpacks msg from signature.
{ "resource": "" }
c173239
validation
// VerifySignature returns true if signature is correct.
{ "resource": "" }
c173240
validation
// signature computes and returns signature.
{ "resource": "" }
c173241
validation
// GetObject finds object in a database by id, // then returns an object on raw JSON format.
{ "resource": "" }
c173242
validation
// GetObjectByHash finds object in a database by hash, // then returns an object on raw JSON format.
{ "resource": "" }
c173243
validation
// ToError converts error into Error pointer.
{ "resource": "" }
c173244
validation
// SetPassword sets the password only on the first call. // Returns error if password already exists.
{ "resource": "" }
c173245
validation
// UpdatePassword updates the password.
{ "resource": "" }
c173246
validation
// GetToken returns token if password is correct.
{ "resource": "" }
c173247
validation
// NewProcessor creates a new processor.
{ "resource": "" }
c173248
validation
// NewConfig creates a default job queue configuration.
{ "resource": "" }
c173249
validation
// NewQueue creates a new job queue.
{ "resource": "" }
c173250
validation
// AddWithDataAndDelay is convenience method to add a job with given data // and delay.
{ "resource": "" }
c173251
validation
// AddWithData is convenience method to add a job with given data.
{ "resource": "" }
c173252
validation
// AddSimple is convenience method to add a job.
{ "resource": "" }
c173253
validation
// AddWithDelay is convenience method to add a job with given data delay.
{ "resource": "" }
c173254
validation
// Subscribe adds a subscription to job result notifications for given keys. // Each subscription key can be be a job type or a job related id. SubID is // used to distinguish between different subscriptions.
{ "resource": "" }
c173255
validation
// Unsubscribe removes a subscription from job result notifications for given // ids of related objects. SubID is used to distinguish between different // subscriptions to a same related object.
{ "resource": "" }
c173256
validation
// TopUpChannel initiates JobClientPreChannelTopUp job.
{ "resource": "" }
c173257
validation
// ChangeChannelStatus updates channel state.
{ "resource": "" }
c173258
validation
// GetAgentChannels gets channels for agent.
{ "resource": "" }
c173259
validation
// GetChannelsUsage returns detailed usage on channels.
{ "resource": "" }
c173260
validation
// GetClientChannels gets client channel information.
{ "resource": "" }
c173261
validation
// ReadSetting reads value of a given setting.
{ "resource": "" }
c173262
validation
// ReadUintSetting reads value of a given uint setting.
{ "resource": "" }
c173263
validation
// ReadBoolSetting reads value of a given bool setting.
{ "resource": "" }
c173264
validation
// SuspendChannel tries to suspend a given channel.
{ "resource": "" }
c173265
validation
// ActivateChannel tries to activate a given channel.
{ "resource": "" }
c173266
validation
// TerminateChannel tries to terminate a given channel.
{ "resource": "" }
c173267
validation
// ExportPrivateKey returns a private key in base64 encoding by account id.
{ "resource": "" }
c173268
validation
// GetAccounts returns accounts.
{ "resource": "" }
c173269
validation
// GenerateAccount generates new private key and creates new account.
{ "resource": "" }
c173270
validation
// ImportAccountFromHex imports private key from hex, creates account // and initiates JobAccountUpdateBalances job.
{ "resource": "" }
c173271
validation
// ImportAccountFromJSON imports private key from JSON blob with password, // creates account and initiates JobAccountUpdateBalances job.
{ "resource": "" }
c173272
validation
// TransferTokens initiates JobPreAccountAddBalanceApprove // or JobPreAccountReturnBalance job depending on the direction of the transfer.
{ "resource": "" }
c173273
validation
// UpdateBalance initiates JobAccountUpdateBalances job.
{ "resource": "" }
c173274
validation
// UpdateAccount updates an account.
{ "resource": "" }
c173275
validation
// GetLastBlockNumber returns last known block number.
{ "resource": "" }
c173276
validation
// GetEndpoint returns an endpoint for a given client key.
{ "resource": "" }
c173277
validation
// SetProductConfig sets product configuration.
{ "resource": "" }
c173278
validation
// NewWriterLogger creates a new io.Writer based logger.
{ "resource": "" }
c173279
validation
// NewFileLogger creates a new file logger.
{ "resource": "" }
c173280
validation
// NewClient returns new client instance based given somc type and data.
{ "resource": "" }
c173281
validation
// Parse parses a NAT interface description.
{ "resource": "" }
c173282
validation
// Map adds a port mapping on NAT interface and keeps it alive until interface // is closed.
{ "resource": "" }
c173283
validation
// AddMapping maps an external port to a local port for a specific // service.
{ "resource": "" }
c173284
validation
// DeleteMapping removes the port mapping.
{ "resource": "" }
c173285
validation
// ReadFile reads a file content from the embedded filesystem.
{ "resource": "" }
c173286
validation
// GetUserRole returns user role.
{ "resource": "" }
c173287
validation
// NewHandler creates a new handler.
{ "resource": "" }
c173288
validation
// NewBackend returns eth back implementation.
{ "resource": "" }
c173289
validation
// addTimeout adds timeout to context.
{ "resource": "" }
c173290
validation
// SuggestGasPrice retrieves the currently suggested gas price to allow a timely // execution of a transaction.
{ "resource": "" }
c173291
validation
// EstimateGas tries to estimate the gas needed to execute a specific // transaction based on the current pending state of the backend blockchain.
{ "resource": "" }
c173292
validation
// CooperativeClose calls cooperativeClose method of Privatix service contract.
{ "resource": "" }
c173293
validation
// RegisterServiceOffering calls registerServiceOffering method of Privatix // service contract.
{ "resource": "" }
c173294
validation
// PTCBalanceOf calls balanceOf method of Privatix token contract.
{ "resource": "" }
c173295
validation
// PTCIncreaseApproval calls increaseApproval method of Privatix token contract.
{ "resource": "" }
c173296
validation
// PSCBalanceOf calls balanceOf method of Privatix service contract.
{ "resource": "" }
c173297
validation
// PSCAddBalanceERC20 calls addBalanceERC20 of Privatix service contract.
{ "resource": "" }
c173298
validation
// PSCGetOfferingInfo calls getOfferingInfo of Privatix service contract.
{ "resource": "" }
c173299
validation
// PSCGetChannelInfo calls getChannelInfo method of Privatix service contract.
{ "resource": "" }