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