Documentation ¶
Index ¶
Constants ¶
View Source
const ( RetryWaitMax = 120 * time.Second RetryMax = 60 )
View Source
const ( // SCRestAPIPrefix represents base URL path to execute smart contract rest points. SCRestAPIPrefix = "v1/screst/" SmartContractAddress = `6dba10422e368813802877a85039d3985d96760ed844092319743fb3a76712d7` RestPrefix = SCRestAPIPrefix + SmartContractAddress PathGetAuthorizerNodes = "/getAuthorizerNodes" PathGetGlobalConfig = "/getGlobalConfig" PathGetAuthorizer = "/getAuthorizer" )
Variables ¶
View Source
var Logger logger.Logger
Functions ¶
func MakeSCRestAPICall ¶
func MakeSCRestAPICall(opCode int, relativePath string, params Params, cb zcncore.GetInfoCallback)
MakeSCRestAPICall calls smart contract with provided address and makes retryable request to smart contract resource with provided relative path using params.
func NewRetryableClient ¶
func NewRetryableClient() *retryablehttp.Client
NewRetryableClient creates default retryablehttp.Client with timeouts and embedded NewClient result.
Types ¶
Click to show internal directories.
Click to hide internal directories.