_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c173300
validation
// EthBalanceAt returns the wei balance of the given account.
{ "resource": "" }
c173301
validation
// PSCSettle calls settle method of Privatix service contract.
{ "resource": "" }
c173302
validation
// PSCRemoveServiceOffering calls removeServiceOffering method of Privatix // service contract.
{ "resource": "" }
c173303
validation
// PSCPopupServiceOffering calls popupServiceOffering method of Privatix // service contract.
{ "resource": "" }
c173304
validation
// FilterLogs executes a Ethereum filter query.
{ "resource": "" }
c173305
validation
// HeaderByNumber returns a Ethereum block header from the current canonical // chain. If number is nil, the latest known header is returned.
{ "resource": "" }
c173306
validation
// PTCAddress returns Privatix token contract address.
{ "resource": "" }
c173307
validation
// PSCAddress returns Privatix service contract address.
{ "resource": "" }
c173308
validation
// NewHandler creates a new RPC handler.
{ "resource": "" }
c173309
validation
// keyFromChannelData returns the unique channel identifier // used in a Privatix Service Contract.
{ "resource": "" }
c173310
validation
// AgentAfterChannelCreate registers client and creates pre service create job.
{ "resource": "" }
c173311
validation
// AgentAfterChannelTopUp updates deposit of a channel.
{ "resource": "" }
c173312
validation
// AgentAfterUncooperativeCloseRequest sets channel's status to challenge period.
{ "resource": "" }
c173313
validation
// AgentAfterUncooperativeClose marks channel closed uncoop.
{ "resource": "" }
c173314
validation
// AgentAfterCooperativeClose marks channel as closed coop.
{ "resource": "" }
c173315
validation
// AgentPreServiceSuspend marks service as suspended.
{ "resource": "" }
c173316
validation
// AgentPreServiceUnsuspend marks service as active.
{ "resource": "" }
c173317
validation
// AgentPreServiceTerminate terminates the service.
{ "resource": "" }
c173318
validation
// AgentAfterOfferingMsgBCPublish updates offering status and creates // somc publish job.
{ "resource": "" }
c173319
validation
// AgentAfterOfferingDelete set offering status to `remove`
{ "resource": "" }
c173320
validation
// AgentPreOfferingDelete calls psc remove an offering.
{ "resource": "" }
c173321
validation
// checkInPeriod checks an offering being in period specified by periodKey.
{ "resource": "" }
c173322
validation
// AgentPreOfferingPopUp pop ups an offering.
{ "resource": "" }
c173323
validation
// AgentAfterOfferingPopUp updates the block number // when the offering was updated.
{ "resource": "" }
c173324
validation
// Print prints version and completes the program.
{ "resource": "" }
c173325
validation
// Error returns an error message of a given error.
{ "resource": "" }
c173326
validation
// Message returns an error message from a given error code.
{ "resource": "" }
c173327
validation
// RespondResult sends a response with a given result.
{ "resource": "" }
c173328
validation
// RespondError sends a response with a given error.
{ "resource": "" }
c173329
validation
// handlePay handles clients balance proof informations.
{ "resource": "" }
c173330
validation
// getOpenBlockNumber extracts the Open_block_number field of a given // channel-related EthLog. Returns false in case it failed, i.e. // the event has no such field.
{ "resource": "" }
c173331
validation
// Offering returns offerings raw msg with given hash.
{ "resource": "" }
c173332
validation
// HandlersMap returns handlers map needed to construct job queue.
{ "resource": "" }
c173333
validation
// Version returns the version of the database schema.
{ "resource": "" }
c173334
validation
// Migrate executes migration scripts.
{ "resource": "" }
c173335
validation
// NewMonitor creates new instance of billing monitor. // 'interval' specifies how often channels checks must be performed.
{ "resource": "" }
c173336
validation
// Run begins monitoring of channels. // In case of error - doesn't restarts automatically.
{ "resource": "" }
c173337
validation
// VerifyBillingLags checks all active channels for billing lags, // and schedules suspending of those, who are suffering from billing lags.
{ "resource": "" }
c173338
validation
// VerifySuspendedChannelsAndTryToUnsuspend scans all supsended channels, // and checks if all conditions are met to unsuspend them. // Is so - schedules task for appropriate channel unsuspending.
{ "resource": "" }
c173339
validation
// VerifyChannelsForInactivity scans all channels, that are not terminated, // and terminates those of them, who are staying inactive too long.
{ "resource": "" }
c173340
validation
// VerifySuspendedChannelsAndTryToTerminate scans all suspended channels, // and terminates those of them, who are staying suspended too long.
{ "resource": "" }
c173341
validation
// NewLogger creates a new database logger.
{ "resource": "" }
c173342
validation
// BalanceClosingHash computes balance message hash.
{ "resource": "" }
c173343
validation
// Run matches and opens external network ports.
{ "resource": "" }
c173344
validation
// RecoverPubKey recover public key from signature values.
{ "resource": "" }
c173345
validation
// GetTemplates returns templates.
{ "resource": "" }
c173346
validation
// CreateTemplate creates template.
{ "resource": "" }
c173347
validation
// CreateProduct creates new product.
{ "resource": "" }
c173348
validation
// UpdateProduct updates a product.
{ "resource": "" }
c173349
validation
// GetProducts returns all products available to the agent.
{ "resource": "" }
c173350
validation
// NewHandler creates a new session handler.
{ "resource": "" }
c173351
validation
// EncryptedKey returns encrypted keystore.Key in base64.
{ "resource": "" }
c173352
validation
// ExecuteCommand executes commands to manage database // db-create - command to create database // db-migrate - command to execute migration scripts // db-init-data - command to initialize database by default values // db-version - command to print the version of the database schema.
{ "resource": "" }
c173353
validation
// AddMapping maps an external port to a local port for a specific // service to NAT-PMP interface.
{ "resource": "" }
c173354
validation
// DeleteMapping removes the port mapping to NAT-PMP interface.
{ "resource": "" }
c173355
validation
// NewMonitor creates a new client billing monitor.
{ "resource": "" }
c173356
validation
// GetOfferingIncome returns total receipt balance from all channels of // offering with given id.
{ "resource": "" }
c173357
validation
// GetProductIncome returns total receipt balance from all channels of all // offerings with given product id.
{ "resource": "" }
c173358
validation
// GetTotalIncome returns total receipt balance from all channels.
{ "resource": "" }
c173359
validation
// Up00001 will be executed as part of a forward migration.
{ "resource": "" }
c173360
validation
// GetSettings returns settings.
{ "resource": "" }
c173361
validation
// UpdateSettings updates settings.
{ "resource": "" }
c173362
validation
// IsIPv4 checks if this is a valid IPv4
{ "resource": "" }
c173363
validation
// IsHostname checks if this is a hostname
{ "resource": "" }
c173364
validation
// IsNetPort checks if this is a valid net port
{ "resource": "" }
c173365
validation
// IsTLSCert if block is one or more // TLS certificates then function returns true
{ "resource": "" }
c173366
validation
// ValidateJSON validates a given JSON against a given schema.
{ "resource": "" }
c173367
validation
// NewConfig creates a default Ethereum client configuration.
{ "resource": "" }
c173368
validation
// ReadJSONFile reads and parses a JSON file filling a given data instance.
{ "resource": "" }
c173369
validation
// WriteJSONFile converts a given data instance to JSON and writes it to file.
{ "resource": "" }
c173370
validation
// IsUUID checks if a given string is a UUID.
{ "resource": "" }
c173371
validation
// ExeDirJoin composes a file name relative to a running executable.
{ "resource": "" }
c173372
validation
// RootPath returns a path of the root package.
{ "resource": "" }
c173373
validation
// Caller returns a caller's call location. If F1 calls F2 which in its turn // calls Caller, then this function will return a location within F1 where it // calls F2.
{ "resource": "" }
c173374
validation
// CheckConnection connects to the specified host on the specified port. // If the connection is successful then return true.
{ "resource": "" }
c173375
validation
// ClientAfterChannelCreate activates channel and triggers endpoint retrieval.
{ "resource": "" }
c173376
validation
// ClientEndpointCreate decodes endpoint message, saves it in the DB and // triggers product configuration.
{ "resource": "" }
c173377
validation
// ClientAfterUncooperativeClose changed channel status // to closed uncooperative.
{ "resource": "" }
c173378
validation
// ClientAfterCooperativeClose changed channel status // to closed cooperative and launches of terminate service procedure.
{ "resource": "" }
c173379
validation
// ClientPreServiceTerminate terminates service.
{ "resource": "" }
c173380
validation
// ClientPreServiceSuspend suspends service.
{ "resource": "" }
c173381
validation
// ClientPreServiceUnsuspend activates service.
{ "resource": "" }
c173382
validation
// ClientPreUncooperativeClose waiting for until the challenge // period is over. Then deletes the channel and settles // by transferring the balance to the Agent and the rest // of the deposit back to the Client.
{ "resource": "" }
c173383
validation
// ClientPreChannelTopUp checks client balance and creates transaction // for increase the channel deposit.
{ "resource": "" }
c173384
validation
// ClientAfterChannelTopUp updates deposit of a channel.
{ "resource": "" }
c173385
validation
// ClientPreUncooperativeCloseRequest requests the closing of the channel // and starts the challenge period.
{ "resource": "" }
c173386
validation
// ClientAfterUncooperativeCloseRequest waits for the channel // to uncooperative close, starts the service termination process.
{ "resource": "" }
c173387
validation
// ClientAfterOfferingMsgBCPublish creates offering.
{ "resource": "" }
c173388
validation
// ClientAfterOfferingPopUp updates offering in db or retrieves from somc // if new.
{ "resource": "" }
c173389
validation
// ClientAfterOfferingDelete sets offer status to `remove`;
{ "resource": "" }
c173390
validation
// DecrementCurrentSupply finds offering and decrements its current supply.
{ "resource": "" }
c173391
validation
// GetEndpoints returns endpoints.
{ "resource": "" }
c173392
validation
// GetGUISettings returns gui settings.
{ "resource": "" }
c173393
validation
// SetGUISettings sets gui settings.
{ "resource": "" }
c173394
validation
// HandleFunc registers a handler function for a given pattern.
{ "resource": "" }
c173395
validation
// RequireHTTPMethods wraps a given handler function inside an HTTP method // validating handler.
{ "resource": "" }
c173396
validation
// RequireBasicAuth wraps a given handler function inside a handler with basic // access authentication.
{ "resource": "" }
c173397
validation
// New function for initialize the service for generating // the Endpoint Message.
{ "resource": "" }
c173398
validation
// EndpointMessage returns the endpoint message object.
{ "resource": "" }
c173399
validation
// ConnChange subscribes to changes for adapter connection changes.
{ "resource": "" }