1
0
Fork 0
forked from lthn/blockchain

Add Go SDK client for Lethean Blockchain API

Introduces a generated Go SDK client for the Lethean Blockchain API, including OpenAPI spec, models, API interfaces, documentation, and tests. This enables Go applications to interact with Lethean blockchain endpoints for block, info, and transaction operations.
This commit is contained in:
Snider 2025-10-19 14:49:39 +01:00
parent e88a4b1d20
commit 884958b0c7
58 changed files with 20317 additions and 0 deletions

24
utils/sdk/client/go/.gitignore generated vendored Normal file
View file

@ -0,0 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
*.prof

View file

@ -0,0 +1,4 @@
git_push.sh
.travis.yml
README.md
go.sum

View file

@ -0,0 +1,55 @@
.gitignore
api/openapi.yaml
api_block.go
api_info.go
client.go
configuration.go
docs/BlockAPI.md
docs/BlockDetailsModel.md
docs/BlockProcessingPerformanceModel.md
docs/BlockTemplateModel.md
docs/BlockTemplateRequestModel.md
docs/DbStatInfoModel.md
docs/HeightModel.md
docs/InfoAPI.md
docs/InfoModel.md
docs/MaintainersInfoModel.md
docs/PerformanceModel.md
docs/PosEntryModel.md
docs/SubmitBlockRequestModel.md
docs/SubmitBlockResponseModel.md
docs/TransactionAttachmentModel.md
docs/TransactionDetailsModel.md
docs/TransactionExtraModel.md
docs/TransactionInputModel.md
docs/TransactionOutputModel.md
docs/TxGenerationContextModel.md
docs/TxPoolPerformanceModel.md
docs/TxProcessingPerformanceModel.md
docs/VersionModel.md
go.mod
model_block_details_model.go
model_block_processing_performance_model.go
model_block_template_model.go
model_block_template_request_model.go
model_db_stat_info_model.go
model_height_model.go
model_info_model.go
model_maintainers_info_model.go
model_performance_model.go
model_pos_entry_model.go
model_submit_block_request_model.go
model_submit_block_response_model.go
model_transaction_attachment_model.go
model_transaction_details_model.go
model_transaction_extra_model.go
model_transaction_input_model.go
model_transaction_output_model.go
model_tx_generation_context_model.go
model_tx_pool_performance_model.go
model_tx_processing_performance_model.go
model_version_model.go
response.go
test/api_block_test.go
test/api_info_test.go
utils.go

View file

@ -0,0 +1 @@
7.16.0

1329
utils/sdk/client/go/api/openapi.yaml generated Normal file

File diff suppressed because it is too large Load diff

599
utils/sdk/client/go/api_block.go generated Normal file
View file

@ -0,0 +1,599 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"bytes"
"context"
"io"
"net/http"
"net/url"
"strings"
)
type BlockAPI interface {
/*
CreateBlockTemplate Create a block template for mining
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateBlockTemplateRequest
*/
CreateBlockTemplate(ctx context.Context) ApiCreateBlockTemplateRequest
// CreateBlockTemplateExecute executes the request
// @return BlockTemplateModel
CreateBlockTemplateExecute(r ApiCreateBlockTemplateRequest) (*BlockTemplateModel, *http.Response, error)
/*
GetBlock Get a block by its hash or height (ID)
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param identifier The hash (hex string) or height (integer) of the block to retrieve.
@return ApiGetBlockRequest
*/
GetBlock(ctx context.Context, identifier string) ApiGetBlockRequest
// GetBlockExecute executes the request
// @return BlockDetailsModel
GetBlockExecute(r ApiGetBlockRequest) (*BlockDetailsModel, *http.Response, error)
/*
GetBlocks Get one or more blocks, with optional pagination.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetBlocksRequest
*/
GetBlocks(ctx context.Context) ApiGetBlocksRequest
// GetBlocksExecute executes the request
// @return []BlockDetailsModel
GetBlocksExecute(r ApiGetBlocksRequest) ([]BlockDetailsModel, *http.Response, error)
/*
GetHeight Get the current blockchain height
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetHeightRequest
*/
GetHeight(ctx context.Context) ApiGetHeightRequest
// GetHeightExecute executes the request
// @return HeightModel
GetHeightExecute(r ApiGetHeightRequest) (*HeightModel, *http.Response, error)
/*
SubmitBlock Submit a new block to the network
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSubmitBlockRequest
*/
SubmitBlock(ctx context.Context) ApiSubmitBlockRequest
// SubmitBlockExecute executes the request
// @return SubmitBlockResponseModel
SubmitBlockExecute(r ApiSubmitBlockRequest) (*SubmitBlockResponseModel, *http.Response, error)
}
// BlockAPIService BlockAPI service
type BlockAPIService service
type ApiCreateBlockTemplateRequest struct {
ctx context.Context
ApiService BlockAPI
blockTemplateRequestModel *BlockTemplateRequestModel
}
func (r ApiCreateBlockTemplateRequest) BlockTemplateRequestModel(blockTemplateRequestModel BlockTemplateRequestModel) ApiCreateBlockTemplateRequest {
r.blockTemplateRequestModel = &blockTemplateRequestModel
return r
}
func (r ApiCreateBlockTemplateRequest) Execute() (*BlockTemplateModel, *http.Response, error) {
return r.ApiService.CreateBlockTemplateExecute(r)
}
/*
CreateBlockTemplate Create a block template for mining
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateBlockTemplateRequest
*/
func (a *BlockAPIService) CreateBlockTemplate(ctx context.Context) ApiCreateBlockTemplateRequest {
return ApiCreateBlockTemplateRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return BlockTemplateModel
func (a *BlockAPIService) CreateBlockTemplateExecute(r ApiCreateBlockTemplateRequest) (*BlockTemplateModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *BlockTemplateModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BlockAPIService.CreateBlockTemplate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/block/template"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.blockTemplateRequestModel == nil {
return localVarReturnValue, nil, reportError("blockTemplateRequestModel is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.blockTemplateRequestModel
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetBlockRequest struct {
ctx context.Context
ApiService BlockAPI
identifier string
}
func (r ApiGetBlockRequest) Execute() (*BlockDetailsModel, *http.Response, error) {
return r.ApiService.GetBlockExecute(r)
}
/*
GetBlock Get a block by its hash or height (ID)
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param identifier The hash (hex string) or height (integer) of the block to retrieve.
@return ApiGetBlockRequest
*/
func (a *BlockAPIService) GetBlock(ctx context.Context, identifier string) ApiGetBlockRequest {
return ApiGetBlockRequest{
ApiService: a,
ctx: ctx,
identifier: identifier,
}
}
// Execute executes the request
// @return BlockDetailsModel
func (a *BlockAPIService) GetBlockExecute(r ApiGetBlockRequest) (*BlockDetailsModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *BlockDetailsModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BlockAPIService.GetBlock")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/block/{identifier}"
localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetBlocksRequest struct {
ctx context.Context
ApiService BlockAPI
}
func (r ApiGetBlocksRequest) Execute() ([]BlockDetailsModel, *http.Response, error) {
return r.ApiService.GetBlocksExecute(r)
}
/*
GetBlocks Get one or more blocks, with optional pagination.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetBlocksRequest
*/
func (a *BlockAPIService) GetBlocks(ctx context.Context) ApiGetBlocksRequest {
return ApiGetBlocksRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []BlockDetailsModel
func (a *BlockAPIService) GetBlocksExecute(r ApiGetBlocksRequest) ([]BlockDetailsModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []BlockDetailsModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BlockAPIService.GetBlocks")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/block"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetHeightRequest struct {
ctx context.Context
ApiService BlockAPI
}
func (r ApiGetHeightRequest) Execute() (*HeightModel, *http.Response, error) {
return r.ApiService.GetHeightExecute(r)
}
/*
GetHeight Get the current blockchain height
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetHeightRequest
*/
func (a *BlockAPIService) GetHeight(ctx context.Context) ApiGetHeightRequest {
return ApiGetHeightRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return HeightModel
func (a *BlockAPIService) GetHeightExecute(r ApiGetHeightRequest) (*HeightModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *HeightModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BlockAPIService.GetHeight")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/block/height"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSubmitBlockRequest struct {
ctx context.Context
ApiService BlockAPI
submitBlockRequestModel *SubmitBlockRequestModel
}
func (r ApiSubmitBlockRequest) SubmitBlockRequestModel(submitBlockRequestModel SubmitBlockRequestModel) ApiSubmitBlockRequest {
r.submitBlockRequestModel = &submitBlockRequestModel
return r
}
func (r ApiSubmitBlockRequest) Execute() (*SubmitBlockResponseModel, *http.Response, error) {
return r.ApiService.SubmitBlockExecute(r)
}
/*
SubmitBlock Submit a new block to the network
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSubmitBlockRequest
*/
func (a *BlockAPIService) SubmitBlock(ctx context.Context) ApiSubmitBlockRequest {
return ApiSubmitBlockRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return SubmitBlockResponseModel
func (a *BlockAPIService) SubmitBlockExecute(r ApiSubmitBlockRequest) (*SubmitBlockResponseModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *SubmitBlockResponseModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BlockAPIService.SubmitBlock")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/block/submit"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.submitBlockRequestModel == nil {
return localVarReturnValue, nil, reportError("submitBlockRequestModel is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.submitBlockRequestModel
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

258
utils/sdk/client/go/api_info.go generated Normal file
View file

@ -0,0 +1,258 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"bytes"
"context"
"io"
"net/http"
"net/url"
)
type InfoAPI interface {
/*
GetInfo Get detailed information about the blockchain and daemon state
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetInfoRequest
*/
GetInfo(ctx context.Context) ApiGetInfoRequest
// GetInfoExecute executes the request
// @return InfoModel
GetInfoExecute(r ApiGetInfoRequest) (*InfoModel, *http.Response, error)
/*
Version Get API version
Returns the current version of the API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVersionRequest
*/
Version(ctx context.Context) ApiVersionRequest
// VersionExecute executes the request
// @return VersionModel
VersionExecute(r ApiVersionRequest) (*VersionModel, *http.Response, error)
}
// InfoAPIService InfoAPI service
type InfoAPIService service
type ApiGetInfoRequest struct {
ctx context.Context
ApiService InfoAPI
flags *string
}
// Possible values: net_time_delta_median, current_network_hashrate_50, current_network_hashrate_350, seconds_for_10_blocks, seconds_for_30_blocks, transactions_daily_stat, last_pos_timestamp, last_pow_timestamp, total_coins, last_block_size, tx_count_in_last_block, pos_sequence_factor, pow_sequence_factor, pos_difficulty, performance, outs_stat, expirations_median.
func (r ApiGetInfoRequest) Flags(flags string) ApiGetInfoRequest {
r.flags = &flags
return r
}
func (r ApiGetInfoRequest) Execute() (*InfoModel, *http.Response, error) {
return r.ApiService.GetInfoExecute(r)
}
/*
GetInfo Get detailed information about the blockchain and daemon state
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetInfoRequest
*/
func (a *InfoAPIService) GetInfo(ctx context.Context) ApiGetInfoRequest {
return ApiGetInfoRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return InfoModel
func (a *InfoAPIService) GetInfoExecute(r ApiGetInfoRequest) (*InfoModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *InfoModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InfoAPIService.GetInfo")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/info"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.flags != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "flags", r.flags, "form", "")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiVersionRequest struct {
ctx context.Context
ApiService InfoAPI
}
func (r ApiVersionRequest) Execute() (*VersionModel, *http.Response, error) {
return r.ApiService.VersionExecute(r)
}
/*
Version Get API version
Returns the current version of the API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiVersionRequest
*/
func (a *InfoAPIService) Version(ctx context.Context) ApiVersionRequest {
return ApiVersionRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return VersionModel
func (a *InfoAPIService) VersionExecute(r ApiVersionRequest) (*VersionModel, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *VersionModel
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InfoAPIService.Version")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/info/version"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

659
utils/sdk/client/go/client.go generated Normal file
View file

@ -0,0 +1,659 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"bytes"
"context"
"encoding/json"
"encoding/xml"
"errors"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"net/http/httputil"
"net/url"
"os"
"path/filepath"
"reflect"
"regexp"
"strconv"
"strings"
"time"
"unicode/utf8"
)
var (
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
)
// APIClient manages communication with the Lethean Blockchain API API v6.0.1
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
common service // Reuse a single struct instead of allocating one for each service on the heap.
// API Services
BlockAPI BlockAPI
InfoAPI InfoAPI
}
type service struct {
client *APIClient
}
// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
// optionally a custom http.Client to allow for advanced features such as caching.
func NewAPIClient(cfg *Configuration) *APIClient {
if cfg.HTTPClient == nil {
cfg.HTTPClient = http.DefaultClient
}
c := &APIClient{}
c.cfg = cfg
c.common.client = c
// API Services
c.BlockAPI = (*BlockAPIService)(&c.common)
c.InfoAPI = (*InfoAPIService)(&c.common)
return c
}
func atoi(in string) (int, error) {
return strconv.Atoi(in)
}
// selectHeaderContentType select a content type from the available list.
func selectHeaderContentType(contentTypes []string) string {
if len(contentTypes) == 0 {
return ""
}
if contains(contentTypes, "application/json") {
return "application/json"
}
return contentTypes[0] // use the first content type specified in 'consumes'
}
// selectHeaderAccept join all accept types and return
func selectHeaderAccept(accepts []string) string {
if len(accepts) == 0 {
return ""
}
if contains(accepts, "application/json") {
return "application/json"
}
return strings.Join(accepts, ",")
}
// contains is a case insensitive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.EqualFold(a, needle) {
return true
}
}
return false
}
// Verify optional parameters are of the correct type.
func typeCheckParameter(obj interface{}, expected string, name string) error {
// Make sure there is an object.
if obj == nil {
return nil
}
// Check the type is as expected.
if reflect.TypeOf(obj).String() != expected {
return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String())
}
return nil
}
func parameterValueToString( obj interface{}, key string ) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
}
return fmt.Sprintf("%v", obj)
}
var param,ok = obj.(MappedNullable)
if !ok {
return ""
}
dataMap,err := param.ToMap()
if err != nil {
return ""
}
return fmt.Sprintf("%v", dataMap[key])
}
// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
// supporting deep object syntax
func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) {
var v = reflect.ValueOf(obj)
var value = ""
if v == reflect.ValueOf(nil) {
value = "null"
} else {
switch v.Kind() {
case reflect.Invalid:
value = "invalid"
case reflect.Struct:
if t,ok := obj.(MappedNullable); ok {
dataMap,err := t.ToMap()
if err != nil {
return
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
return
}
if t, ok := obj.(time.Time); ok {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
return
}
value = v.Type().String() + " value"
case reflect.Slice:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
var lenIndValue = indValue.Len()
for i:=0;i<lenIndValue;i++ {
var arrayValue = indValue.Index(i)
var keyPrefixForCollectionType = keyPrefix
if style == "deepObject" {
keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
}
return
case reflect.Map:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
iter := indValue.MapRange()
for iter.Next() {
k,v := iter.Key(), iter.Value()
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
}
return
case reflect.Interface:
fallthrough
case reflect.Ptr:
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
return
case reflect.Int, reflect.Int8, reflect.Int16,
reflect.Int32, reflect.Int64:
value = strconv.FormatInt(v.Int(), 10)
case reflect.Uint, reflect.Uint8, reflect.Uint16,
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
value = strconv.FormatUint(v.Uint(), 10)
case reflect.Float32, reflect.Float64:
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
case reflect.Bool:
value = strconv.FormatBool(v.Bool())
case reflect.String:
value = v.String()
default:
value = v.Type().String() + " value"
}
}
switch valuesMap := headerOrQueryParams.(type) {
case url.Values:
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value)
} else {
valuesMap.Add(keyPrefix, value)
}
break
case map[string]string:
valuesMap[keyPrefix] = value
break
}
}
// helper for converting interface{} parameters to json strings
func parameterToJson(obj interface{}) (string, error) {
jsonBuf, err := json.Marshal(obj)
if err != nil {
return "", err
}
return string(jsonBuf), err
}
// callAPI do the request.
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
if c.cfg.Debug {
dump, err := httputil.DumpRequestOut(request, true)
if err != nil {
return nil, err
}
log.Printf("\n%s\n", string(dump))
}
resp, err := c.cfg.HTTPClient.Do(request)
if err != nil {
return resp, err
}
if c.cfg.Debug {
dump, err := httputil.DumpResponse(resp, true)
if err != nil {
return resp, err
}
log.Printf("\n%s\n", string(dump))
}
return resp, err
}
// Allow modification of underlying config for alternate implementations and testing
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
func (c *APIClient) GetConfig() *Configuration {
return c.cfg
}
type formFile struct {
fileBytes []byte
fileName string
formFileName string
}
// prepareRequest build the request
func (c *APIClient) prepareRequest(
ctx context.Context,
path string, method string,
postBody interface{},
headerParams map[string]string,
queryParams url.Values,
formParams url.Values,
formFiles []formFile) (localVarRequest *http.Request, err error) {
var body *bytes.Buffer
// Detect postBody type and post.
if postBody != nil {
contentType := headerParams["Content-Type"]
if contentType == "" {
contentType = detectContentType(postBody)
headerParams["Content-Type"] = contentType
}
body, err = setBody(postBody, contentType)
if err != nil {
return nil, err
}
}
// add form parameters and file if available.
if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) {
if body != nil {
return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
}
body = &bytes.Buffer{}
w := multipart.NewWriter(body)
for k, v := range formParams {
for _, iv := range v {
if strings.HasPrefix(k, "@") { // file
err = addFile(w, k[1:], iv)
if err != nil {
return nil, err
}
} else { // form value
w.WriteField(k, iv)
}
}
}
for _, formFile := range formFiles {
if len(formFile.fileBytes) > 0 && formFile.fileName != "" {
w.Boundary()
part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
if err != nil {
return nil, err
}
_, err = part.Write(formFile.fileBytes)
if err != nil {
return nil, err
}
}
}
// Set the Boundary in the Content-Type
headerParams["Content-Type"] = w.FormDataContentType()
// Set Content-Length
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
w.Close()
}
if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 {
if body != nil {
return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.")
}
body = &bytes.Buffer{}
body.WriteString(formParams.Encode())
// Set Content-Length
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
}
// Setup path and query parameters
url, err := url.Parse(path)
if err != nil {
return nil, err
}
// Override request host, if applicable
if c.cfg.Host != "" {
url.Host = c.cfg.Host
}
// Override request scheme, if applicable
if c.cfg.Scheme != "" {
url.Scheme = c.cfg.Scheme
}
// Adding Query Param
query := url.Query()
for k, v := range queryParams {
for _, iv := range v {
query.Add(k, iv)
}
}
// Encode the parameters.
url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string {
pieces := strings.Split(s, "=")
pieces[0] = queryDescape.Replace(pieces[0])
return strings.Join(pieces, "=")
})
// Generate a new request
if body != nil {
localVarRequest, err = http.NewRequest(method, url.String(), body)
} else {
localVarRequest, err = http.NewRequest(method, url.String(), nil)
}
if err != nil {
return nil, err
}
// add header parameters, if any
if len(headerParams) > 0 {
headers := http.Header{}
for h, v := range headerParams {
headers[h] = []string{v}
}
localVarRequest.Header = headers
}
// Add the user agent to the request.
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
if ctx != nil {
// add context to the request
localVarRequest = localVarRequest.WithContext(ctx)
// Walk through any authentication.
}
for header, value := range c.cfg.DefaultHeader {
localVarRequest.Header.Add(header, value)
}
return localVarRequest, nil
}
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
if len(b) == 0 {
return nil
}
if s, ok := v.(*string); ok {
*s = string(b)
return nil
}
if f, ok := v.(*os.File); ok {
f, err = os.CreateTemp("", "HttpClientFile")
if err != nil {
return
}
_, err = f.Write(b)
if err != nil {
return
}
_, err = f.Seek(0, io.SeekStart)
return
}
if f, ok := v.(**os.File); ok {
*f, err = os.CreateTemp("", "HttpClientFile")
if err != nil {
return
}
_, err = (*f).Write(b)
if err != nil {
return
}
_, err = (*f).Seek(0, io.SeekStart)
return
}
if XmlCheck.MatchString(contentType) {
if err = xml.Unmarshal(b, v); err != nil {
return err
}
return nil
}
if JsonCheck.MatchString(contentType) {
if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined
if err = unmarshalObj.UnmarshalJSON(b); err != nil {
return err
}
} else {
return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
}
} else if err = json.Unmarshal(b, v); err != nil { // simple model
return err
}
return nil
}
return errors.New("undefined response type")
}
// Add a file to the multipart request
func addFile(w *multipart.Writer, fieldName, path string) error {
file, err := os.Open(filepath.Clean(path))
if err != nil {
return err
}
err = file.Close()
if err != nil {
return err
}
part, err := w.CreateFormFile(fieldName, filepath.Base(path))
if err != nil {
return err
}
_, err = io.Copy(part, file)
return err
}
// Set request body from an interface{}
func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
if bodyBuf == nil {
bodyBuf = &bytes.Buffer{}
}
if reader, ok := body.(io.Reader); ok {
_, err = bodyBuf.ReadFrom(reader)
} else if fp, ok := body.(*os.File); ok {
_, err = bodyBuf.ReadFrom(fp)
} else if b, ok := body.([]byte); ok {
_, err = bodyBuf.Write(b)
} else if s, ok := body.(string); ok {
_, err = bodyBuf.WriteString(s)
} else if s, ok := body.(*string); ok {
_, err = bodyBuf.WriteString(*s)
} else if JsonCheck.MatchString(contentType) {
err = json.NewEncoder(bodyBuf).Encode(body)
} else if XmlCheck.MatchString(contentType) {
var bs []byte
bs, err = xml.Marshal(body)
if err == nil {
bodyBuf.Write(bs)
}
}
if err != nil {
return nil, err
}
if bodyBuf.Len() == 0 {
err = fmt.Errorf("invalid body type %s\n", contentType)
return nil, err
}
return bodyBuf, nil
}
// detectContentType method is used to figure out `Request.Body` content type for request header
func detectContentType(body interface{}) string {
contentType := "text/plain; charset=utf-8"
kind := reflect.TypeOf(body).Kind()
switch kind {
case reflect.Struct, reflect.Map, reflect.Ptr:
contentType = "application/json; charset=utf-8"
case reflect.String:
contentType = "text/plain; charset=utf-8"
default:
if b, ok := body.([]byte); ok {
contentType = http.DetectContentType(b)
} else if kind == reflect.Slice {
contentType = "application/json; charset=utf-8"
}
}
return contentType
}
// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
type cacheControl map[string]string
func parseCacheControl(headers http.Header) cacheControl {
cc := cacheControl{}
ccHeader := headers.Get("Cache-Control")
for _, part := range strings.Split(ccHeader, ",") {
part = strings.Trim(part, " ")
if part == "" {
continue
}
if strings.ContainsRune(part, '=') {
keyval := strings.Split(part, "=")
cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
} else {
cc[part] = ""
}
}
return cc
}
// CacheExpires helper function to determine remaining time before repeating a request.
func CacheExpires(r *http.Response) time.Time {
// Figure out when the cache expires.
var expires time.Time
now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
if err != nil {
return time.Now()
}
respCacheControl := parseCacheControl(r.Header)
if maxAge, ok := respCacheControl["max-age"]; ok {
lifetime, err := time.ParseDuration(maxAge + "s")
if err != nil {
expires = now
} else {
expires = now.Add(lifetime)
}
} else {
expiresHeader := r.Header.Get("Expires")
if expiresHeader != "" {
expires, err = time.Parse(time.RFC1123, expiresHeader)
if err != nil {
expires = now
}
}
}
return expires
}
func strlen(s string) int {
return utf8.RuneCountInString(s)
}
// GenericOpenAPIError Provides access to the body, error and model on returned errors.
type GenericOpenAPIError struct {
body []byte
error string
model interface{}
}
// Error returns non-empty string if there was an error.
func (e GenericOpenAPIError) Error() string {
return e.error
}
// Body returns the raw bytes of the response
func (e GenericOpenAPIError) Body() []byte {
return e.body
}
// Model returns the unpacked model of the error
func (e GenericOpenAPIError) Model() interface{} {
return e.model
}
// format error message using title and detail when model implements rfc7807
func formatErrorMessage(status string, v interface{}) string {
str := ""
metaValue := reflect.ValueOf(v).Elem()
if metaValue.Kind() == reflect.Struct {
field := metaValue.FieldByName("Title")
if field != (reflect.Value{}) {
str = fmt.Sprintf("%s", field.Interface())
}
field = metaValue.FieldByName("Detail")
if field != (reflect.Value{}) {
str = fmt.Sprintf("%s (%s)", str, field.Interface())
}
}
return strings.TrimSpace(fmt.Sprintf("%s %s", status, str))
}

219
utils/sdk/client/go/configuration.go generated Normal file
View file

@ -0,0 +1,219 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"context"
"fmt"
"net/http"
"strings"
)
// contextKeys are used to identify the type of value in the context.
// Since these are string, it is possible to get a short description of the
// context key for logging and debugging using key.String().
type contextKey string
func (c contextKey) String() string {
return "auth " + string(c)
}
var (
// ContextServerIndex uses a server configuration from the index.
ContextServerIndex = contextKey("serverIndex")
// ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerIndices = contextKey("serverOperationIndices")
// ContextServerVariables overrides a server configuration variables.
ContextServerVariables = contextKey("serverVariables")
// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextOperationServerVariables = contextKey("serverOperationVariables")
)
// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BasicAuth struct {
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
}
// APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIKey struct {
Key string
Prefix string
}
// ServerVariable stores the information about a server variable
type ServerVariable struct {
Description string
DefaultValue string
EnumValues []string
}
// ServerConfiguration stores the information about a server
type ServerConfiguration struct {
URL string
Description string
Variables map[string]ServerVariable
}
// ServerConfigurations stores multiple ServerConfiguration items
type ServerConfigurations []ServerConfiguration
// Configuration stores the configuration of the API client
type Configuration struct {
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Debug bool `json:"debug,omitempty"`
Servers ServerConfigurations
OperationServers map[string]ServerConfigurations
HTTPClient *http.Client
}
// NewConfiguration returns a new Configuration object
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: ServerConfigurations{
{
URL: "http://127.0.0.1:36943",
Description: "Local Daemon",
},
{
URL: "http://seed.lethean.io:36943",
Description: "Seed Server",
},
},
OperationServers: map[string]ServerConfigurations{
},
}
return cfg
}
// AddDefaultHeader adds a new HTTP header to the default header in the request
func (c *Configuration) AddDefaultHeader(key string, value string) {
c.DefaultHeader[key] = value
}
// URL formats template on a index using given variables
func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) {
if index < 0 || len(sc) <= index {
return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1)
}
server := sc[index]
url := server.URL
// go through variables and replace placeholders
for name, variable := range server.Variables {
if value, ok := variables[name]; ok {
found := bool(len(variable.EnumValues) == 0)
for _, enumValue := range variable.EnumValues {
if value == enumValue {
found = true
}
}
if !found {
return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues)
}
url = strings.Replace(url, "{"+name+"}", value, -1)
} else {
url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1)
}
}
return url, nil
}
// ServerURL returns URL based on server settings
func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) {
return c.Servers.URL(index, variables)
}
func getServerIndex(ctx context.Context) (int, error) {
si := ctx.Value(ContextServerIndex)
if si != nil {
if index, ok := si.(int); ok {
return index, nil
}
return 0, reportError("Invalid type %T should be int", si)
}
return 0, nil
}
func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) {
osi := ctx.Value(ContextOperationServerIndices)
if osi != nil {
if operationIndices, ok := osi.(map[string]int); !ok {
return 0, reportError("Invalid type %T should be map[string]int", osi)
} else {
index, ok := operationIndices[endpoint]
if ok {
return index, nil
}
}
}
return getServerIndex(ctx)
}
func getServerVariables(ctx context.Context) (map[string]string, error) {
sv := ctx.Value(ContextServerVariables)
if sv != nil {
if variables, ok := sv.(map[string]string); ok {
return variables, nil
}
return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv)
}
return nil, nil
}
func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) {
osv := ctx.Value(ContextOperationServerVariables)
if osv != nil {
if operationVariables, ok := osv.(map[string]map[string]string); !ok {
return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv)
} else {
variables, ok := operationVariables[endpoint]
if ok {
return variables, nil
}
}
}
return getServerVariables(ctx)
}
// ServerURLWithContext returns a new server URL given an endpoint
func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) {
sc, ok := c.OperationServers[endpoint]
if !ok {
sc = c.Servers
}
if ctx == nil {
return sc.URL(0, nil)
}
index, err := getServerOperationIndex(ctx, endpoint)
if err != nil {
return "", err
}
variables, err := getServerOperationVariables(ctx, endpoint)
if err != nil {
return "", err
}
return sc.URL(index, variables)
}

327
utils/sdk/client/go/docs/BlockAPI.md generated Normal file
View file

@ -0,0 +1,327 @@
# \BlockAPI
All URIs are relative to *http://127.0.0.1:36943*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateBlockTemplate**](BlockAPI.md#CreateBlockTemplate) | **Post** /block/template | Create a block template for mining
[**GetBlock**](BlockAPI.md#GetBlock) | **Get** /block/{identifier} | Get a block by its hash or height (ID)
[**GetBlocks**](BlockAPI.md#GetBlocks) | **Get** /block | Get one or more blocks, with optional pagination.
[**GetHeight**](BlockAPI.md#GetHeight) | **Get** /block/height | Get the current blockchain height
[**SubmitBlock**](BlockAPI.md#SubmitBlock) | **Post** /block/submit | Submit a new block to the network
## CreateBlockTemplate
> BlockTemplateModel CreateBlockTemplate(ctx).BlockTemplateRequestModel(blockTemplateRequestModel).Execute()
Create a block template for mining
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
blockTemplateRequestModel := *openapiclient.NewBlockTemplateRequestModel() // BlockTemplateRequestModel |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BlockAPI.CreateBlockTemplate(context.Background()).BlockTemplateRequestModel(blockTemplateRequestModel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlockAPI.CreateBlockTemplate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateBlockTemplate`: BlockTemplateModel
fmt.Fprintf(os.Stdout, "Response from `BlockAPI.CreateBlockTemplate`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiCreateBlockTemplateRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**blockTemplateRequestModel** | [**BlockTemplateRequestModel**](BlockTemplateRequestModel.md) | |
### Return type
[**BlockTemplateModel**](BlockTemplateModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## GetBlock
> BlockDetailsModel GetBlock(ctx, identifier).Execute()
Get a block by its hash or height (ID)
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
identifier := "identifier_example" // string | The hash (hex string) or height (integer) of the block to retrieve.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BlockAPI.GetBlock(context.Background(), identifier).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlockAPI.GetBlock``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBlock`: BlockDetailsModel
fmt.Fprintf(os.Stdout, "Response from `BlockAPI.GetBlock`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**identifier** | **string** | The hash (hex string) or height (integer) of the block to retrieve. |
### Other Parameters
Other parameters are passed through a pointer to a apiGetBlockRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
### Return type
[**BlockDetailsModel**](BlockDetailsModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## GetBlocks
> []BlockDetailsModel GetBlocks(ctx).Execute()
Get one or more blocks, with optional pagination.
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BlockAPI.GetBlocks(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlockAPI.GetBlocks``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBlocks`: []BlockDetailsModel
fmt.Fprintf(os.Stdout, "Response from `BlockAPI.GetBlocks`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiGetBlocksRequest struct via the builder pattern
### Return type
[**[]BlockDetailsModel**](BlockDetailsModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## GetHeight
> HeightModel GetHeight(ctx).Execute()
Get the current blockchain height
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BlockAPI.GetHeight(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlockAPI.GetHeight``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetHeight`: HeightModel
fmt.Fprintf(os.Stdout, "Response from `BlockAPI.GetHeight`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiGetHeightRequest struct via the builder pattern
### Return type
[**HeightModel**](HeightModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## SubmitBlock
> SubmitBlockResponseModel SubmitBlock(ctx).SubmitBlockRequestModel(submitBlockRequestModel).Execute()
Submit a new block to the network
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
submitBlockRequestModel := *openapiclient.NewSubmitBlockRequestModel() // SubmitBlockRequestModel |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BlockAPI.SubmitBlock(context.Background()).SubmitBlockRequestModel(submitBlockRequestModel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlockAPI.SubmitBlock``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SubmitBlock`: SubmitBlockResponseModel
fmt.Fprintf(os.Stdout, "Response from `BlockAPI.SubmitBlock`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiSubmitBlockRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**submitBlockRequestModel** | [**SubmitBlockRequestModel**](SubmitBlockRequestModel.md) | |
### Return type
[**SubmitBlockResponseModel**](SubmitBlockResponseModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

View file

@ -0,0 +1,680 @@
# BlockDetailsModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ActualTimestamp** | Pointer to **int32** | | [optional]
**AlreadyGeneratedCoins** | Pointer to **string** | | [optional]
**BaseReward** | Pointer to **int32** | | [optional]
**Blob** | Pointer to **string** | | [optional]
**BlockCumulativeSize** | Pointer to **int32** | | [optional]
**BlockTselfSize** | Pointer to **int32** | | [optional]
**CumulativeDiffAdjusted** | Pointer to **string** | | [optional]
**CumulativeDiffPrecise** | Pointer to **string** | | [optional]
**Difficulty** | Pointer to **string** | | [optional]
**EffectiveFeeMedian** | Pointer to **int32** | | [optional]
**Height** | Pointer to **int32** | | [optional]
**Id** | Pointer to **string** | | [optional]
**IsOrphan** | Pointer to **bool** | | [optional]
**MinerTextInfo** | Pointer to **string** | | [optional]
**ObjectInJson** | Pointer to **string** | | [optional]
**Penalty** | Pointer to **int32** | | [optional]
**PowSeed** | Pointer to **string** | | [optional]
**PrevId** | Pointer to **string** | | [optional]
**SummaryReward** | Pointer to **int32** | | [optional]
**ThisBlockFeeMedian** | Pointer to **int32** | | [optional]
**Timestamp** | Pointer to **int32** | | [optional]
**TotalFee** | Pointer to **int32** | | [optional]
**TotalTxsSize** | Pointer to **int32** | | [optional]
**TransactionsDetails** | Pointer to [**[]TransactionDetailsModel**](TransactionDetailsModel.md) | | [optional]
**Type** | Pointer to **int32** | | [optional]
## Methods
### NewBlockDetailsModel
`func NewBlockDetailsModel() *BlockDetailsModel`
NewBlockDetailsModel instantiates a new BlockDetailsModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewBlockDetailsModelWithDefaults
`func NewBlockDetailsModelWithDefaults() *BlockDetailsModel`
NewBlockDetailsModelWithDefaults instantiates a new BlockDetailsModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetActualTimestamp
`func (o *BlockDetailsModel) GetActualTimestamp() int32`
GetActualTimestamp returns the ActualTimestamp field if non-nil, zero value otherwise.
### GetActualTimestampOk
`func (o *BlockDetailsModel) GetActualTimestampOk() (*int32, bool)`
GetActualTimestampOk returns a tuple with the ActualTimestamp field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetActualTimestamp
`func (o *BlockDetailsModel) SetActualTimestamp(v int32)`
SetActualTimestamp sets ActualTimestamp field to given value.
### HasActualTimestamp
`func (o *BlockDetailsModel) HasActualTimestamp() bool`
HasActualTimestamp returns a boolean if a field has been set.
### GetAlreadyGeneratedCoins
`func (o *BlockDetailsModel) GetAlreadyGeneratedCoins() string`
GetAlreadyGeneratedCoins returns the AlreadyGeneratedCoins field if non-nil, zero value otherwise.
### GetAlreadyGeneratedCoinsOk
`func (o *BlockDetailsModel) GetAlreadyGeneratedCoinsOk() (*string, bool)`
GetAlreadyGeneratedCoinsOk returns a tuple with the AlreadyGeneratedCoins field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAlreadyGeneratedCoins
`func (o *BlockDetailsModel) SetAlreadyGeneratedCoins(v string)`
SetAlreadyGeneratedCoins sets AlreadyGeneratedCoins field to given value.
### HasAlreadyGeneratedCoins
`func (o *BlockDetailsModel) HasAlreadyGeneratedCoins() bool`
HasAlreadyGeneratedCoins returns a boolean if a field has been set.
### GetBaseReward
`func (o *BlockDetailsModel) GetBaseReward() int32`
GetBaseReward returns the BaseReward field if non-nil, zero value otherwise.
### GetBaseRewardOk
`func (o *BlockDetailsModel) GetBaseRewardOk() (*int32, bool)`
GetBaseRewardOk returns a tuple with the BaseReward field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBaseReward
`func (o *BlockDetailsModel) SetBaseReward(v int32)`
SetBaseReward sets BaseReward field to given value.
### HasBaseReward
`func (o *BlockDetailsModel) HasBaseReward() bool`
HasBaseReward returns a boolean if a field has been set.
### GetBlob
`func (o *BlockDetailsModel) GetBlob() string`
GetBlob returns the Blob field if non-nil, zero value otherwise.
### GetBlobOk
`func (o *BlockDetailsModel) GetBlobOk() (*string, bool)`
GetBlobOk returns a tuple with the Blob field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlob
`func (o *BlockDetailsModel) SetBlob(v string)`
SetBlob sets Blob field to given value.
### HasBlob
`func (o *BlockDetailsModel) HasBlob() bool`
HasBlob returns a boolean if a field has been set.
### GetBlockCumulativeSize
`func (o *BlockDetailsModel) GetBlockCumulativeSize() int32`
GetBlockCumulativeSize returns the BlockCumulativeSize field if non-nil, zero value otherwise.
### GetBlockCumulativeSizeOk
`func (o *BlockDetailsModel) GetBlockCumulativeSizeOk() (*int32, bool)`
GetBlockCumulativeSizeOk returns a tuple with the BlockCumulativeSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockCumulativeSize
`func (o *BlockDetailsModel) SetBlockCumulativeSize(v int32)`
SetBlockCumulativeSize sets BlockCumulativeSize field to given value.
### HasBlockCumulativeSize
`func (o *BlockDetailsModel) HasBlockCumulativeSize() bool`
HasBlockCumulativeSize returns a boolean if a field has been set.
### GetBlockTselfSize
`func (o *BlockDetailsModel) GetBlockTselfSize() int32`
GetBlockTselfSize returns the BlockTselfSize field if non-nil, zero value otherwise.
### GetBlockTselfSizeOk
`func (o *BlockDetailsModel) GetBlockTselfSizeOk() (*int32, bool)`
GetBlockTselfSizeOk returns a tuple with the BlockTselfSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockTselfSize
`func (o *BlockDetailsModel) SetBlockTselfSize(v int32)`
SetBlockTselfSize sets BlockTselfSize field to given value.
### HasBlockTselfSize
`func (o *BlockDetailsModel) HasBlockTselfSize() bool`
HasBlockTselfSize returns a boolean if a field has been set.
### GetCumulativeDiffAdjusted
`func (o *BlockDetailsModel) GetCumulativeDiffAdjusted() string`
GetCumulativeDiffAdjusted returns the CumulativeDiffAdjusted field if non-nil, zero value otherwise.
### GetCumulativeDiffAdjustedOk
`func (o *BlockDetailsModel) GetCumulativeDiffAdjustedOk() (*string, bool)`
GetCumulativeDiffAdjustedOk returns a tuple with the CumulativeDiffAdjusted field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCumulativeDiffAdjusted
`func (o *BlockDetailsModel) SetCumulativeDiffAdjusted(v string)`
SetCumulativeDiffAdjusted sets CumulativeDiffAdjusted field to given value.
### HasCumulativeDiffAdjusted
`func (o *BlockDetailsModel) HasCumulativeDiffAdjusted() bool`
HasCumulativeDiffAdjusted returns a boolean if a field has been set.
### GetCumulativeDiffPrecise
`func (o *BlockDetailsModel) GetCumulativeDiffPrecise() string`
GetCumulativeDiffPrecise returns the CumulativeDiffPrecise field if non-nil, zero value otherwise.
### GetCumulativeDiffPreciseOk
`func (o *BlockDetailsModel) GetCumulativeDiffPreciseOk() (*string, bool)`
GetCumulativeDiffPreciseOk returns a tuple with the CumulativeDiffPrecise field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCumulativeDiffPrecise
`func (o *BlockDetailsModel) SetCumulativeDiffPrecise(v string)`
SetCumulativeDiffPrecise sets CumulativeDiffPrecise field to given value.
### HasCumulativeDiffPrecise
`func (o *BlockDetailsModel) HasCumulativeDiffPrecise() bool`
HasCumulativeDiffPrecise returns a boolean if a field has been set.
### GetDifficulty
`func (o *BlockDetailsModel) GetDifficulty() string`
GetDifficulty returns the Difficulty field if non-nil, zero value otherwise.
### GetDifficultyOk
`func (o *BlockDetailsModel) GetDifficultyOk() (*string, bool)`
GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDifficulty
`func (o *BlockDetailsModel) SetDifficulty(v string)`
SetDifficulty sets Difficulty field to given value.
### HasDifficulty
`func (o *BlockDetailsModel) HasDifficulty() bool`
HasDifficulty returns a boolean if a field has been set.
### GetEffectiveFeeMedian
`func (o *BlockDetailsModel) GetEffectiveFeeMedian() int32`
GetEffectiveFeeMedian returns the EffectiveFeeMedian field if non-nil, zero value otherwise.
### GetEffectiveFeeMedianOk
`func (o *BlockDetailsModel) GetEffectiveFeeMedianOk() (*int32, bool)`
GetEffectiveFeeMedianOk returns a tuple with the EffectiveFeeMedian field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEffectiveFeeMedian
`func (o *BlockDetailsModel) SetEffectiveFeeMedian(v int32)`
SetEffectiveFeeMedian sets EffectiveFeeMedian field to given value.
### HasEffectiveFeeMedian
`func (o *BlockDetailsModel) HasEffectiveFeeMedian() bool`
HasEffectiveFeeMedian returns a boolean if a field has been set.
### GetHeight
`func (o *BlockDetailsModel) GetHeight() int32`
GetHeight returns the Height field if non-nil, zero value otherwise.
### GetHeightOk
`func (o *BlockDetailsModel) GetHeightOk() (*int32, bool)`
GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHeight
`func (o *BlockDetailsModel) SetHeight(v int32)`
SetHeight sets Height field to given value.
### HasHeight
`func (o *BlockDetailsModel) HasHeight() bool`
HasHeight returns a boolean if a field has been set.
### GetId
`func (o *BlockDetailsModel) GetId() string`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *BlockDetailsModel) GetIdOk() (*string, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *BlockDetailsModel) SetId(v string)`
SetId sets Id field to given value.
### HasId
`func (o *BlockDetailsModel) HasId() bool`
HasId returns a boolean if a field has been set.
### GetIsOrphan
`func (o *BlockDetailsModel) GetIsOrphan() bool`
GetIsOrphan returns the IsOrphan field if non-nil, zero value otherwise.
### GetIsOrphanOk
`func (o *BlockDetailsModel) GetIsOrphanOk() (*bool, bool)`
GetIsOrphanOk returns a tuple with the IsOrphan field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsOrphan
`func (o *BlockDetailsModel) SetIsOrphan(v bool)`
SetIsOrphan sets IsOrphan field to given value.
### HasIsOrphan
`func (o *BlockDetailsModel) HasIsOrphan() bool`
HasIsOrphan returns a boolean if a field has been set.
### GetMinerTextInfo
`func (o *BlockDetailsModel) GetMinerTextInfo() string`
GetMinerTextInfo returns the MinerTextInfo field if non-nil, zero value otherwise.
### GetMinerTextInfoOk
`func (o *BlockDetailsModel) GetMinerTextInfoOk() (*string, bool)`
GetMinerTextInfoOk returns a tuple with the MinerTextInfo field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMinerTextInfo
`func (o *BlockDetailsModel) SetMinerTextInfo(v string)`
SetMinerTextInfo sets MinerTextInfo field to given value.
### HasMinerTextInfo
`func (o *BlockDetailsModel) HasMinerTextInfo() bool`
HasMinerTextInfo returns a boolean if a field has been set.
### GetObjectInJson
`func (o *BlockDetailsModel) GetObjectInJson() string`
GetObjectInJson returns the ObjectInJson field if non-nil, zero value otherwise.
### GetObjectInJsonOk
`func (o *BlockDetailsModel) GetObjectInJsonOk() (*string, bool)`
GetObjectInJsonOk returns a tuple with the ObjectInJson field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetObjectInJson
`func (o *BlockDetailsModel) SetObjectInJson(v string)`
SetObjectInJson sets ObjectInJson field to given value.
### HasObjectInJson
`func (o *BlockDetailsModel) HasObjectInJson() bool`
HasObjectInJson returns a boolean if a field has been set.
### GetPenalty
`func (o *BlockDetailsModel) GetPenalty() int32`
GetPenalty returns the Penalty field if non-nil, zero value otherwise.
### GetPenaltyOk
`func (o *BlockDetailsModel) GetPenaltyOk() (*int32, bool)`
GetPenaltyOk returns a tuple with the Penalty field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPenalty
`func (o *BlockDetailsModel) SetPenalty(v int32)`
SetPenalty sets Penalty field to given value.
### HasPenalty
`func (o *BlockDetailsModel) HasPenalty() bool`
HasPenalty returns a boolean if a field has been set.
### GetPowSeed
`func (o *BlockDetailsModel) GetPowSeed() string`
GetPowSeed returns the PowSeed field if non-nil, zero value otherwise.
### GetPowSeedOk
`func (o *BlockDetailsModel) GetPowSeedOk() (*string, bool)`
GetPowSeedOk returns a tuple with the PowSeed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPowSeed
`func (o *BlockDetailsModel) SetPowSeed(v string)`
SetPowSeed sets PowSeed field to given value.
### HasPowSeed
`func (o *BlockDetailsModel) HasPowSeed() bool`
HasPowSeed returns a boolean if a field has been set.
### GetPrevId
`func (o *BlockDetailsModel) GetPrevId() string`
GetPrevId returns the PrevId field if non-nil, zero value otherwise.
### GetPrevIdOk
`func (o *BlockDetailsModel) GetPrevIdOk() (*string, bool)`
GetPrevIdOk returns a tuple with the PrevId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrevId
`func (o *BlockDetailsModel) SetPrevId(v string)`
SetPrevId sets PrevId field to given value.
### HasPrevId
`func (o *BlockDetailsModel) HasPrevId() bool`
HasPrevId returns a boolean if a field has been set.
### GetSummaryReward
`func (o *BlockDetailsModel) GetSummaryReward() int32`
GetSummaryReward returns the SummaryReward field if non-nil, zero value otherwise.
### GetSummaryRewardOk
`func (o *BlockDetailsModel) GetSummaryRewardOk() (*int32, bool)`
GetSummaryRewardOk returns a tuple with the SummaryReward field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSummaryReward
`func (o *BlockDetailsModel) SetSummaryReward(v int32)`
SetSummaryReward sets SummaryReward field to given value.
### HasSummaryReward
`func (o *BlockDetailsModel) HasSummaryReward() bool`
HasSummaryReward returns a boolean if a field has been set.
### GetThisBlockFeeMedian
`func (o *BlockDetailsModel) GetThisBlockFeeMedian() int32`
GetThisBlockFeeMedian returns the ThisBlockFeeMedian field if non-nil, zero value otherwise.
### GetThisBlockFeeMedianOk
`func (o *BlockDetailsModel) GetThisBlockFeeMedianOk() (*int32, bool)`
GetThisBlockFeeMedianOk returns a tuple with the ThisBlockFeeMedian field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetThisBlockFeeMedian
`func (o *BlockDetailsModel) SetThisBlockFeeMedian(v int32)`
SetThisBlockFeeMedian sets ThisBlockFeeMedian field to given value.
### HasThisBlockFeeMedian
`func (o *BlockDetailsModel) HasThisBlockFeeMedian() bool`
HasThisBlockFeeMedian returns a boolean if a field has been set.
### GetTimestamp
`func (o *BlockDetailsModel) GetTimestamp() int32`
GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.
### GetTimestampOk
`func (o *BlockDetailsModel) GetTimestampOk() (*int32, bool)`
GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTimestamp
`func (o *BlockDetailsModel) SetTimestamp(v int32)`
SetTimestamp sets Timestamp field to given value.
### HasTimestamp
`func (o *BlockDetailsModel) HasTimestamp() bool`
HasTimestamp returns a boolean if a field has been set.
### GetTotalFee
`func (o *BlockDetailsModel) GetTotalFee() int32`
GetTotalFee returns the TotalFee field if non-nil, zero value otherwise.
### GetTotalFeeOk
`func (o *BlockDetailsModel) GetTotalFeeOk() (*int32, bool)`
GetTotalFeeOk returns a tuple with the TotalFee field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTotalFee
`func (o *BlockDetailsModel) SetTotalFee(v int32)`
SetTotalFee sets TotalFee field to given value.
### HasTotalFee
`func (o *BlockDetailsModel) HasTotalFee() bool`
HasTotalFee returns a boolean if a field has been set.
### GetTotalTxsSize
`func (o *BlockDetailsModel) GetTotalTxsSize() int32`
GetTotalTxsSize returns the TotalTxsSize field if non-nil, zero value otherwise.
### GetTotalTxsSizeOk
`func (o *BlockDetailsModel) GetTotalTxsSizeOk() (*int32, bool)`
GetTotalTxsSizeOk returns a tuple with the TotalTxsSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTotalTxsSize
`func (o *BlockDetailsModel) SetTotalTxsSize(v int32)`
SetTotalTxsSize sets TotalTxsSize field to given value.
### HasTotalTxsSize
`func (o *BlockDetailsModel) HasTotalTxsSize() bool`
HasTotalTxsSize returns a boolean if a field has been set.
### GetTransactionsDetails
`func (o *BlockDetailsModel) GetTransactionsDetails() []TransactionDetailsModel`
GetTransactionsDetails returns the TransactionsDetails field if non-nil, zero value otherwise.
### GetTransactionsDetailsOk
`func (o *BlockDetailsModel) GetTransactionsDetailsOk() (*[]TransactionDetailsModel, bool)`
GetTransactionsDetailsOk returns a tuple with the TransactionsDetails field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTransactionsDetails
`func (o *BlockDetailsModel) SetTransactionsDetails(v []TransactionDetailsModel)`
SetTransactionsDetails sets TransactionsDetails field to given value.
### HasTransactionsDetails
`func (o *BlockDetailsModel) HasTransactionsDetails() bool`
HasTransactionsDetails returns a boolean if a field has been set.
### GetType
`func (o *BlockDetailsModel) GetType() int32`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *BlockDetailsModel) GetTypeOk() (*int32, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *BlockDetailsModel) SetType(v int32)`
SetType sets Type field to given value.
### HasType
`func (o *BlockDetailsModel) HasType() bool`
HasType returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,446 @@
# BlockProcessingPerformanceModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**BlockProcessingTime0** | Pointer to **int32** | | [optional]
**BlockProcessingTime1** | Pointer to **int32** | | [optional]
**TargetCalculatingTime2** | Pointer to **int32** | | [optional]
**LonghashCalculatingTime3** | Pointer to **int32** | | [optional]
**AllTxsInsertTime5** | Pointer to **int32** | | [optional]
**EtcStuff6** | Pointer to **int32** | | [optional]
**InsertTime4** | Pointer to **int32** | | [optional]
**RaiseBlockCoreEvent** | Pointer to **int32** | | [optional]
**ValidateMinerTransactionTime** | Pointer to **int32** | | [optional]
**CollectRangeproofsDataFromTxTime** | Pointer to **int32** | | [optional]
**VerifyMultipleZcOutsRangeProofsTime** | Pointer to **int32** | | [optional]
**TargetCalculatingEnumBlocks** | Pointer to **int32** | | [optional]
**TargetCalculatingCalc** | Pointer to **int32** | | [optional]
**PosValidateKiSearch** | Pointer to **int32** | | [optional]
**PosValidateGetOutKeysForInputs** | Pointer to **int32** | | [optional]
**PosValidateZvp** | Pointer to **int32** | | [optional]
## Methods
### NewBlockProcessingPerformanceModel
`func NewBlockProcessingPerformanceModel() *BlockProcessingPerformanceModel`
NewBlockProcessingPerformanceModel instantiates a new BlockProcessingPerformanceModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewBlockProcessingPerformanceModelWithDefaults
`func NewBlockProcessingPerformanceModelWithDefaults() *BlockProcessingPerformanceModel`
NewBlockProcessingPerformanceModelWithDefaults instantiates a new BlockProcessingPerformanceModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetBlockProcessingTime0
`func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime0() int32`
GetBlockProcessingTime0 returns the BlockProcessingTime0 field if non-nil, zero value otherwise.
### GetBlockProcessingTime0Ok
`func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime0Ok() (*int32, bool)`
GetBlockProcessingTime0Ok returns a tuple with the BlockProcessingTime0 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockProcessingTime0
`func (o *BlockProcessingPerformanceModel) SetBlockProcessingTime0(v int32)`
SetBlockProcessingTime0 sets BlockProcessingTime0 field to given value.
### HasBlockProcessingTime0
`func (o *BlockProcessingPerformanceModel) HasBlockProcessingTime0() bool`
HasBlockProcessingTime0 returns a boolean if a field has been set.
### GetBlockProcessingTime1
`func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime1() int32`
GetBlockProcessingTime1 returns the BlockProcessingTime1 field if non-nil, zero value otherwise.
### GetBlockProcessingTime1Ok
`func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime1Ok() (*int32, bool)`
GetBlockProcessingTime1Ok returns a tuple with the BlockProcessingTime1 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockProcessingTime1
`func (o *BlockProcessingPerformanceModel) SetBlockProcessingTime1(v int32)`
SetBlockProcessingTime1 sets BlockProcessingTime1 field to given value.
### HasBlockProcessingTime1
`func (o *BlockProcessingPerformanceModel) HasBlockProcessingTime1() bool`
HasBlockProcessingTime1 returns a boolean if a field has been set.
### GetTargetCalculatingTime2
`func (o *BlockProcessingPerformanceModel) GetTargetCalculatingTime2() int32`
GetTargetCalculatingTime2 returns the TargetCalculatingTime2 field if non-nil, zero value otherwise.
### GetTargetCalculatingTime2Ok
`func (o *BlockProcessingPerformanceModel) GetTargetCalculatingTime2Ok() (*int32, bool)`
GetTargetCalculatingTime2Ok returns a tuple with the TargetCalculatingTime2 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTargetCalculatingTime2
`func (o *BlockProcessingPerformanceModel) SetTargetCalculatingTime2(v int32)`
SetTargetCalculatingTime2 sets TargetCalculatingTime2 field to given value.
### HasTargetCalculatingTime2
`func (o *BlockProcessingPerformanceModel) HasTargetCalculatingTime2() bool`
HasTargetCalculatingTime2 returns a boolean if a field has been set.
### GetLonghashCalculatingTime3
`func (o *BlockProcessingPerformanceModel) GetLonghashCalculatingTime3() int32`
GetLonghashCalculatingTime3 returns the LonghashCalculatingTime3 field if non-nil, zero value otherwise.
### GetLonghashCalculatingTime3Ok
`func (o *BlockProcessingPerformanceModel) GetLonghashCalculatingTime3Ok() (*int32, bool)`
GetLonghashCalculatingTime3Ok returns a tuple with the LonghashCalculatingTime3 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetLonghashCalculatingTime3
`func (o *BlockProcessingPerformanceModel) SetLonghashCalculatingTime3(v int32)`
SetLonghashCalculatingTime3 sets LonghashCalculatingTime3 field to given value.
### HasLonghashCalculatingTime3
`func (o *BlockProcessingPerformanceModel) HasLonghashCalculatingTime3() bool`
HasLonghashCalculatingTime3 returns a boolean if a field has been set.
### GetAllTxsInsertTime5
`func (o *BlockProcessingPerformanceModel) GetAllTxsInsertTime5() int32`
GetAllTxsInsertTime5 returns the AllTxsInsertTime5 field if non-nil, zero value otherwise.
### GetAllTxsInsertTime5Ok
`func (o *BlockProcessingPerformanceModel) GetAllTxsInsertTime5Ok() (*int32, bool)`
GetAllTxsInsertTime5Ok returns a tuple with the AllTxsInsertTime5 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAllTxsInsertTime5
`func (o *BlockProcessingPerformanceModel) SetAllTxsInsertTime5(v int32)`
SetAllTxsInsertTime5 sets AllTxsInsertTime5 field to given value.
### HasAllTxsInsertTime5
`func (o *BlockProcessingPerformanceModel) HasAllTxsInsertTime5() bool`
HasAllTxsInsertTime5 returns a boolean if a field has been set.
### GetEtcStuff6
`func (o *BlockProcessingPerformanceModel) GetEtcStuff6() int32`
GetEtcStuff6 returns the EtcStuff6 field if non-nil, zero value otherwise.
### GetEtcStuff6Ok
`func (o *BlockProcessingPerformanceModel) GetEtcStuff6Ok() (*int32, bool)`
GetEtcStuff6Ok returns a tuple with the EtcStuff6 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetEtcStuff6
`func (o *BlockProcessingPerformanceModel) SetEtcStuff6(v int32)`
SetEtcStuff6 sets EtcStuff6 field to given value.
### HasEtcStuff6
`func (o *BlockProcessingPerformanceModel) HasEtcStuff6() bool`
HasEtcStuff6 returns a boolean if a field has been set.
### GetInsertTime4
`func (o *BlockProcessingPerformanceModel) GetInsertTime4() int32`
GetInsertTime4 returns the InsertTime4 field if non-nil, zero value otherwise.
### GetInsertTime4Ok
`func (o *BlockProcessingPerformanceModel) GetInsertTime4Ok() (*int32, bool)`
GetInsertTime4Ok returns a tuple with the InsertTime4 field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetInsertTime4
`func (o *BlockProcessingPerformanceModel) SetInsertTime4(v int32)`
SetInsertTime4 sets InsertTime4 field to given value.
### HasInsertTime4
`func (o *BlockProcessingPerformanceModel) HasInsertTime4() bool`
HasInsertTime4 returns a boolean if a field has been set.
### GetRaiseBlockCoreEvent
`func (o *BlockProcessingPerformanceModel) GetRaiseBlockCoreEvent() int32`
GetRaiseBlockCoreEvent returns the RaiseBlockCoreEvent field if non-nil, zero value otherwise.
### GetRaiseBlockCoreEventOk
`func (o *BlockProcessingPerformanceModel) GetRaiseBlockCoreEventOk() (*int32, bool)`
GetRaiseBlockCoreEventOk returns a tuple with the RaiseBlockCoreEvent field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRaiseBlockCoreEvent
`func (o *BlockProcessingPerformanceModel) SetRaiseBlockCoreEvent(v int32)`
SetRaiseBlockCoreEvent sets RaiseBlockCoreEvent field to given value.
### HasRaiseBlockCoreEvent
`func (o *BlockProcessingPerformanceModel) HasRaiseBlockCoreEvent() bool`
HasRaiseBlockCoreEvent returns a boolean if a field has been set.
### GetValidateMinerTransactionTime
`func (o *BlockProcessingPerformanceModel) GetValidateMinerTransactionTime() int32`
GetValidateMinerTransactionTime returns the ValidateMinerTransactionTime field if non-nil, zero value otherwise.
### GetValidateMinerTransactionTimeOk
`func (o *BlockProcessingPerformanceModel) GetValidateMinerTransactionTimeOk() (*int32, bool)`
GetValidateMinerTransactionTimeOk returns a tuple with the ValidateMinerTransactionTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidateMinerTransactionTime
`func (o *BlockProcessingPerformanceModel) SetValidateMinerTransactionTime(v int32)`
SetValidateMinerTransactionTime sets ValidateMinerTransactionTime field to given value.
### HasValidateMinerTransactionTime
`func (o *BlockProcessingPerformanceModel) HasValidateMinerTransactionTime() bool`
HasValidateMinerTransactionTime returns a boolean if a field has been set.
### GetCollectRangeproofsDataFromTxTime
`func (o *BlockProcessingPerformanceModel) GetCollectRangeproofsDataFromTxTime() int32`
GetCollectRangeproofsDataFromTxTime returns the CollectRangeproofsDataFromTxTime field if non-nil, zero value otherwise.
### GetCollectRangeproofsDataFromTxTimeOk
`func (o *BlockProcessingPerformanceModel) GetCollectRangeproofsDataFromTxTimeOk() (*int32, bool)`
GetCollectRangeproofsDataFromTxTimeOk returns a tuple with the CollectRangeproofsDataFromTxTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCollectRangeproofsDataFromTxTime
`func (o *BlockProcessingPerformanceModel) SetCollectRangeproofsDataFromTxTime(v int32)`
SetCollectRangeproofsDataFromTxTime sets CollectRangeproofsDataFromTxTime field to given value.
### HasCollectRangeproofsDataFromTxTime
`func (o *BlockProcessingPerformanceModel) HasCollectRangeproofsDataFromTxTime() bool`
HasCollectRangeproofsDataFromTxTime returns a boolean if a field has been set.
### GetVerifyMultipleZcOutsRangeProofsTime
`func (o *BlockProcessingPerformanceModel) GetVerifyMultipleZcOutsRangeProofsTime() int32`
GetVerifyMultipleZcOutsRangeProofsTime returns the VerifyMultipleZcOutsRangeProofsTime field if non-nil, zero value otherwise.
### GetVerifyMultipleZcOutsRangeProofsTimeOk
`func (o *BlockProcessingPerformanceModel) GetVerifyMultipleZcOutsRangeProofsTimeOk() (*int32, bool)`
GetVerifyMultipleZcOutsRangeProofsTimeOk returns a tuple with the VerifyMultipleZcOutsRangeProofsTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVerifyMultipleZcOutsRangeProofsTime
`func (o *BlockProcessingPerformanceModel) SetVerifyMultipleZcOutsRangeProofsTime(v int32)`
SetVerifyMultipleZcOutsRangeProofsTime sets VerifyMultipleZcOutsRangeProofsTime field to given value.
### HasVerifyMultipleZcOutsRangeProofsTime
`func (o *BlockProcessingPerformanceModel) HasVerifyMultipleZcOutsRangeProofsTime() bool`
HasVerifyMultipleZcOutsRangeProofsTime returns a boolean if a field has been set.
### GetTargetCalculatingEnumBlocks
`func (o *BlockProcessingPerformanceModel) GetTargetCalculatingEnumBlocks() int32`
GetTargetCalculatingEnumBlocks returns the TargetCalculatingEnumBlocks field if non-nil, zero value otherwise.
### GetTargetCalculatingEnumBlocksOk
`func (o *BlockProcessingPerformanceModel) GetTargetCalculatingEnumBlocksOk() (*int32, bool)`
GetTargetCalculatingEnumBlocksOk returns a tuple with the TargetCalculatingEnumBlocks field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTargetCalculatingEnumBlocks
`func (o *BlockProcessingPerformanceModel) SetTargetCalculatingEnumBlocks(v int32)`
SetTargetCalculatingEnumBlocks sets TargetCalculatingEnumBlocks field to given value.
### HasTargetCalculatingEnumBlocks
`func (o *BlockProcessingPerformanceModel) HasTargetCalculatingEnumBlocks() bool`
HasTargetCalculatingEnumBlocks returns a boolean if a field has been set.
### GetTargetCalculatingCalc
`func (o *BlockProcessingPerformanceModel) GetTargetCalculatingCalc() int32`
GetTargetCalculatingCalc returns the TargetCalculatingCalc field if non-nil, zero value otherwise.
### GetTargetCalculatingCalcOk
`func (o *BlockProcessingPerformanceModel) GetTargetCalculatingCalcOk() (*int32, bool)`
GetTargetCalculatingCalcOk returns a tuple with the TargetCalculatingCalc field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTargetCalculatingCalc
`func (o *BlockProcessingPerformanceModel) SetTargetCalculatingCalc(v int32)`
SetTargetCalculatingCalc sets TargetCalculatingCalc field to given value.
### HasTargetCalculatingCalc
`func (o *BlockProcessingPerformanceModel) HasTargetCalculatingCalc() bool`
HasTargetCalculatingCalc returns a boolean if a field has been set.
### GetPosValidateKiSearch
`func (o *BlockProcessingPerformanceModel) GetPosValidateKiSearch() int32`
GetPosValidateKiSearch returns the PosValidateKiSearch field if non-nil, zero value otherwise.
### GetPosValidateKiSearchOk
`func (o *BlockProcessingPerformanceModel) GetPosValidateKiSearchOk() (*int32, bool)`
GetPosValidateKiSearchOk returns a tuple with the PosValidateKiSearch field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPosValidateKiSearch
`func (o *BlockProcessingPerformanceModel) SetPosValidateKiSearch(v int32)`
SetPosValidateKiSearch sets PosValidateKiSearch field to given value.
### HasPosValidateKiSearch
`func (o *BlockProcessingPerformanceModel) HasPosValidateKiSearch() bool`
HasPosValidateKiSearch returns a boolean if a field has been set.
### GetPosValidateGetOutKeysForInputs
`func (o *BlockProcessingPerformanceModel) GetPosValidateGetOutKeysForInputs() int32`
GetPosValidateGetOutKeysForInputs returns the PosValidateGetOutKeysForInputs field if non-nil, zero value otherwise.
### GetPosValidateGetOutKeysForInputsOk
`func (o *BlockProcessingPerformanceModel) GetPosValidateGetOutKeysForInputsOk() (*int32, bool)`
GetPosValidateGetOutKeysForInputsOk returns a tuple with the PosValidateGetOutKeysForInputs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPosValidateGetOutKeysForInputs
`func (o *BlockProcessingPerformanceModel) SetPosValidateGetOutKeysForInputs(v int32)`
SetPosValidateGetOutKeysForInputs sets PosValidateGetOutKeysForInputs field to given value.
### HasPosValidateGetOutKeysForInputs
`func (o *BlockProcessingPerformanceModel) HasPosValidateGetOutKeysForInputs() bool`
HasPosValidateGetOutKeysForInputs returns a boolean if a field has been set.
### GetPosValidateZvp
`func (o *BlockProcessingPerformanceModel) GetPosValidateZvp() int32`
GetPosValidateZvp returns the PosValidateZvp field if non-nil, zero value otherwise.
### GetPosValidateZvpOk
`func (o *BlockProcessingPerformanceModel) GetPosValidateZvpOk() (*int32, bool)`
GetPosValidateZvpOk returns a tuple with the PosValidateZvp field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPosValidateZvp
`func (o *BlockProcessingPerformanceModel) SetPosValidateZvp(v int32)`
SetPosValidateZvp sets PosValidateZvp field to given value.
### HasPosValidateZvp
`func (o *BlockProcessingPerformanceModel) HasPosValidateZvp() bool`
HasPosValidateZvp returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,264 @@
# BlockTemplateModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**BlocktemplateBlob** | Pointer to **string** | | [optional]
**Difficulty** | Pointer to **string** | | [optional]
**Height** | Pointer to **int32** | | [optional]
**MinerTxTgc** | Pointer to [**TxGenerationContextModel**](TxGenerationContextModel.md) | | [optional]
**BlockRewardWithoutFee** | Pointer to **int32** | | [optional]
**BlockReward** | Pointer to **int32** | | [optional]
**TxsFee** | Pointer to **int32** | | [optional]
**PrevHash** | Pointer to **string** | | [optional]
**Seed** | Pointer to **string** | | [optional]
## Methods
### NewBlockTemplateModel
`func NewBlockTemplateModel() *BlockTemplateModel`
NewBlockTemplateModel instantiates a new BlockTemplateModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewBlockTemplateModelWithDefaults
`func NewBlockTemplateModelWithDefaults() *BlockTemplateModel`
NewBlockTemplateModelWithDefaults instantiates a new BlockTemplateModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetBlocktemplateBlob
`func (o *BlockTemplateModel) GetBlocktemplateBlob() string`
GetBlocktemplateBlob returns the BlocktemplateBlob field if non-nil, zero value otherwise.
### GetBlocktemplateBlobOk
`func (o *BlockTemplateModel) GetBlocktemplateBlobOk() (*string, bool)`
GetBlocktemplateBlobOk returns a tuple with the BlocktemplateBlob field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlocktemplateBlob
`func (o *BlockTemplateModel) SetBlocktemplateBlob(v string)`
SetBlocktemplateBlob sets BlocktemplateBlob field to given value.
### HasBlocktemplateBlob
`func (o *BlockTemplateModel) HasBlocktemplateBlob() bool`
HasBlocktemplateBlob returns a boolean if a field has been set.
### GetDifficulty
`func (o *BlockTemplateModel) GetDifficulty() string`
GetDifficulty returns the Difficulty field if non-nil, zero value otherwise.
### GetDifficultyOk
`func (o *BlockTemplateModel) GetDifficultyOk() (*string, bool)`
GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDifficulty
`func (o *BlockTemplateModel) SetDifficulty(v string)`
SetDifficulty sets Difficulty field to given value.
### HasDifficulty
`func (o *BlockTemplateModel) HasDifficulty() bool`
HasDifficulty returns a boolean if a field has been set.
### GetHeight
`func (o *BlockTemplateModel) GetHeight() int32`
GetHeight returns the Height field if non-nil, zero value otherwise.
### GetHeightOk
`func (o *BlockTemplateModel) GetHeightOk() (*int32, bool)`
GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHeight
`func (o *BlockTemplateModel) SetHeight(v int32)`
SetHeight sets Height field to given value.
### HasHeight
`func (o *BlockTemplateModel) HasHeight() bool`
HasHeight returns a boolean if a field has been set.
### GetMinerTxTgc
`func (o *BlockTemplateModel) GetMinerTxTgc() TxGenerationContextModel`
GetMinerTxTgc returns the MinerTxTgc field if non-nil, zero value otherwise.
### GetMinerTxTgcOk
`func (o *BlockTemplateModel) GetMinerTxTgcOk() (*TxGenerationContextModel, bool)`
GetMinerTxTgcOk returns a tuple with the MinerTxTgc field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMinerTxTgc
`func (o *BlockTemplateModel) SetMinerTxTgc(v TxGenerationContextModel)`
SetMinerTxTgc sets MinerTxTgc field to given value.
### HasMinerTxTgc
`func (o *BlockTemplateModel) HasMinerTxTgc() bool`
HasMinerTxTgc returns a boolean if a field has been set.
### GetBlockRewardWithoutFee
`func (o *BlockTemplateModel) GetBlockRewardWithoutFee() int32`
GetBlockRewardWithoutFee returns the BlockRewardWithoutFee field if non-nil, zero value otherwise.
### GetBlockRewardWithoutFeeOk
`func (o *BlockTemplateModel) GetBlockRewardWithoutFeeOk() (*int32, bool)`
GetBlockRewardWithoutFeeOk returns a tuple with the BlockRewardWithoutFee field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockRewardWithoutFee
`func (o *BlockTemplateModel) SetBlockRewardWithoutFee(v int32)`
SetBlockRewardWithoutFee sets BlockRewardWithoutFee field to given value.
### HasBlockRewardWithoutFee
`func (o *BlockTemplateModel) HasBlockRewardWithoutFee() bool`
HasBlockRewardWithoutFee returns a boolean if a field has been set.
### GetBlockReward
`func (o *BlockTemplateModel) GetBlockReward() int32`
GetBlockReward returns the BlockReward field if non-nil, zero value otherwise.
### GetBlockRewardOk
`func (o *BlockTemplateModel) GetBlockRewardOk() (*int32, bool)`
GetBlockRewardOk returns a tuple with the BlockReward field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockReward
`func (o *BlockTemplateModel) SetBlockReward(v int32)`
SetBlockReward sets BlockReward field to given value.
### HasBlockReward
`func (o *BlockTemplateModel) HasBlockReward() bool`
HasBlockReward returns a boolean if a field has been set.
### GetTxsFee
`func (o *BlockTemplateModel) GetTxsFee() int32`
GetTxsFee returns the TxsFee field if non-nil, zero value otherwise.
### GetTxsFeeOk
`func (o *BlockTemplateModel) GetTxsFeeOk() (*int32, bool)`
GetTxsFeeOk returns a tuple with the TxsFee field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxsFee
`func (o *BlockTemplateModel) SetTxsFee(v int32)`
SetTxsFee sets TxsFee field to given value.
### HasTxsFee
`func (o *BlockTemplateModel) HasTxsFee() bool`
HasTxsFee returns a boolean if a field has been set.
### GetPrevHash
`func (o *BlockTemplateModel) GetPrevHash() string`
GetPrevHash returns the PrevHash field if non-nil, zero value otherwise.
### GetPrevHashOk
`func (o *BlockTemplateModel) GetPrevHashOk() (*string, bool)`
GetPrevHashOk returns a tuple with the PrevHash field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPrevHash
`func (o *BlockTemplateModel) SetPrevHash(v string)`
SetPrevHash sets PrevHash field to given value.
### HasPrevHash
`func (o *BlockTemplateModel) HasPrevHash() bool`
HasPrevHash returns a boolean if a field has been set.
### GetSeed
`func (o *BlockTemplateModel) GetSeed() string`
GetSeed returns the Seed field if non-nil, zero value otherwise.
### GetSeedOk
`func (o *BlockTemplateModel) GetSeedOk() (*string, bool)`
GetSeedOk returns a tuple with the Seed field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSeed
`func (o *BlockTemplateModel) SetSeed(v string)`
SetSeed sets Seed field to given value.
### HasSeed
`func (o *BlockTemplateModel) HasSeed() bool`
HasSeed returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,212 @@
# BlockTemplateRequestModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MinerAddress** | Pointer to **string** | | [optional]
**StakeholderAddress** | Pointer to **string** | | [optional]
**ExNonce** | Pointer to **string** | | [optional]
**PosBlock** | Pointer to **bool** | | [optional]
**IgnorePowTsCheck** | Pointer to **bool** | | [optional]
**Pe** | Pointer to [**PosEntryModel**](PosEntryModel.md) | | [optional]
**ExplicitTxs** | Pointer to **[]string** | | [optional]
## Methods
### NewBlockTemplateRequestModel
`func NewBlockTemplateRequestModel() *BlockTemplateRequestModel`
NewBlockTemplateRequestModel instantiates a new BlockTemplateRequestModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewBlockTemplateRequestModelWithDefaults
`func NewBlockTemplateRequestModelWithDefaults() *BlockTemplateRequestModel`
NewBlockTemplateRequestModelWithDefaults instantiates a new BlockTemplateRequestModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetMinerAddress
`func (o *BlockTemplateRequestModel) GetMinerAddress() string`
GetMinerAddress returns the MinerAddress field if non-nil, zero value otherwise.
### GetMinerAddressOk
`func (o *BlockTemplateRequestModel) GetMinerAddressOk() (*string, bool)`
GetMinerAddressOk returns a tuple with the MinerAddress field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMinerAddress
`func (o *BlockTemplateRequestModel) SetMinerAddress(v string)`
SetMinerAddress sets MinerAddress field to given value.
### HasMinerAddress
`func (o *BlockTemplateRequestModel) HasMinerAddress() bool`
HasMinerAddress returns a boolean if a field has been set.
### GetStakeholderAddress
`func (o *BlockTemplateRequestModel) GetStakeholderAddress() string`
GetStakeholderAddress returns the StakeholderAddress field if non-nil, zero value otherwise.
### GetStakeholderAddressOk
`func (o *BlockTemplateRequestModel) GetStakeholderAddressOk() (*string, bool)`
GetStakeholderAddressOk returns a tuple with the StakeholderAddress field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStakeholderAddress
`func (o *BlockTemplateRequestModel) SetStakeholderAddress(v string)`
SetStakeholderAddress sets StakeholderAddress field to given value.
### HasStakeholderAddress
`func (o *BlockTemplateRequestModel) HasStakeholderAddress() bool`
HasStakeholderAddress returns a boolean if a field has been set.
### GetExNonce
`func (o *BlockTemplateRequestModel) GetExNonce() string`
GetExNonce returns the ExNonce field if non-nil, zero value otherwise.
### GetExNonceOk
`func (o *BlockTemplateRequestModel) GetExNonceOk() (*string, bool)`
GetExNonceOk returns a tuple with the ExNonce field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExNonce
`func (o *BlockTemplateRequestModel) SetExNonce(v string)`
SetExNonce sets ExNonce field to given value.
### HasExNonce
`func (o *BlockTemplateRequestModel) HasExNonce() bool`
HasExNonce returns a boolean if a field has been set.
### GetPosBlock
`func (o *BlockTemplateRequestModel) GetPosBlock() bool`
GetPosBlock returns the PosBlock field if non-nil, zero value otherwise.
### GetPosBlockOk
`func (o *BlockTemplateRequestModel) GetPosBlockOk() (*bool, bool)`
GetPosBlockOk returns a tuple with the PosBlock field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPosBlock
`func (o *BlockTemplateRequestModel) SetPosBlock(v bool)`
SetPosBlock sets PosBlock field to given value.
### HasPosBlock
`func (o *BlockTemplateRequestModel) HasPosBlock() bool`
HasPosBlock returns a boolean if a field has been set.
### GetIgnorePowTsCheck
`func (o *BlockTemplateRequestModel) GetIgnorePowTsCheck() bool`
GetIgnorePowTsCheck returns the IgnorePowTsCheck field if non-nil, zero value otherwise.
### GetIgnorePowTsCheckOk
`func (o *BlockTemplateRequestModel) GetIgnorePowTsCheckOk() (*bool, bool)`
GetIgnorePowTsCheckOk returns a tuple with the IgnorePowTsCheck field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIgnorePowTsCheck
`func (o *BlockTemplateRequestModel) SetIgnorePowTsCheck(v bool)`
SetIgnorePowTsCheck sets IgnorePowTsCheck field to given value.
### HasIgnorePowTsCheck
`func (o *BlockTemplateRequestModel) HasIgnorePowTsCheck() bool`
HasIgnorePowTsCheck returns a boolean if a field has been set.
### GetPe
`func (o *BlockTemplateRequestModel) GetPe() PosEntryModel`
GetPe returns the Pe field if non-nil, zero value otherwise.
### GetPeOk
`func (o *BlockTemplateRequestModel) GetPeOk() (*PosEntryModel, bool)`
GetPeOk returns a tuple with the Pe field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPe
`func (o *BlockTemplateRequestModel) SetPe(v PosEntryModel)`
SetPe sets Pe field to given value.
### HasPe
`func (o *BlockTemplateRequestModel) HasPe() bool`
HasPe returns a boolean if a field has been set.
### GetExplicitTxs
`func (o *BlockTemplateRequestModel) GetExplicitTxs() []string`
GetExplicitTxs returns the ExplicitTxs field if non-nil, zero value otherwise.
### GetExplicitTxsOk
`func (o *BlockTemplateRequestModel) GetExplicitTxsOk() (*[]string, bool)`
GetExplicitTxsOk returns a tuple with the ExplicitTxs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExplicitTxs
`func (o *BlockTemplateRequestModel) SetExplicitTxs(v []string)`
SetExplicitTxs sets ExplicitTxs field to given value.
### HasExplicitTxs
`func (o *BlockTemplateRequestModel) HasExplicitTxs() bool`
HasExplicitTxs returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,108 @@
# DbStatInfoModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TxCount** | Pointer to **int32** | | [optional]
**WriteTxCount** | Pointer to **int32** | | [optional]
**MapSize** | Pointer to **int32** | | [optional]
## Methods
### NewDbStatInfoModel
`func NewDbStatInfoModel() *DbStatInfoModel`
NewDbStatInfoModel instantiates a new DbStatInfoModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewDbStatInfoModelWithDefaults
`func NewDbStatInfoModelWithDefaults() *DbStatInfoModel`
NewDbStatInfoModelWithDefaults instantiates a new DbStatInfoModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetTxCount
`func (o *DbStatInfoModel) GetTxCount() int32`
GetTxCount returns the TxCount field if non-nil, zero value otherwise.
### GetTxCountOk
`func (o *DbStatInfoModel) GetTxCountOk() (*int32, bool)`
GetTxCountOk returns a tuple with the TxCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCount
`func (o *DbStatInfoModel) SetTxCount(v int32)`
SetTxCount sets TxCount field to given value.
### HasTxCount
`func (o *DbStatInfoModel) HasTxCount() bool`
HasTxCount returns a boolean if a field has been set.
### GetWriteTxCount
`func (o *DbStatInfoModel) GetWriteTxCount() int32`
GetWriteTxCount returns the WriteTxCount field if non-nil, zero value otherwise.
### GetWriteTxCountOk
`func (o *DbStatInfoModel) GetWriteTxCountOk() (*int32, bool)`
GetWriteTxCountOk returns a tuple with the WriteTxCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWriteTxCount
`func (o *DbStatInfoModel) SetWriteTxCount(v int32)`
SetWriteTxCount sets WriteTxCount field to given value.
### HasWriteTxCount
`func (o *DbStatInfoModel) HasWriteTxCount() bool`
HasWriteTxCount returns a boolean if a field has been set.
### GetMapSize
`func (o *DbStatInfoModel) GetMapSize() int32`
GetMapSize returns the MapSize field if non-nil, zero value otherwise.
### GetMapSizeOk
`func (o *DbStatInfoModel) GetMapSizeOk() (*int32, bool)`
GetMapSizeOk returns a tuple with the MapSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMapSize
`func (o *DbStatInfoModel) SetMapSize(v int32)`
SetMapSize sets MapSize field to given value.
### HasMapSize
`func (o *DbStatInfoModel) HasMapSize() bool`
HasMapSize returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

56
utils/sdk/client/go/docs/HeightModel.md generated Normal file
View file

@ -0,0 +1,56 @@
# HeightModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Height** | Pointer to **int32** | | [optional]
## Methods
### NewHeightModel
`func NewHeightModel() *HeightModel`
NewHeightModel instantiates a new HeightModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewHeightModelWithDefaults
`func NewHeightModelWithDefaults() *HeightModel`
NewHeightModelWithDefaults instantiates a new HeightModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetHeight
`func (o *HeightModel) GetHeight() int32`
GetHeight returns the Height field if non-nil, zero value otherwise.
### GetHeightOk
`func (o *HeightModel) GetHeightOk() (*int32, bool)`
GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHeight
`func (o *HeightModel) SetHeight(v int32)`
SetHeight sets Height field to given value.
### HasHeight
`func (o *HeightModel) HasHeight() bool`
HasHeight returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

135
utils/sdk/client/go/docs/InfoAPI.md generated Normal file
View file

@ -0,0 +1,135 @@
# \InfoAPI
All URIs are relative to *http://127.0.0.1:36943*
Method | HTTP request | Description
------------- | ------------- | -------------
[**GetInfo**](InfoAPI.md#GetInfo) | **Get** /info | Get detailed information about the blockchain and daemon state
[**Version**](InfoAPI.md#Version) | **Get** /info/version | Get API version
## GetInfo
> InfoModel GetInfo(ctx).Flags(flags).Execute()
Get detailed information about the blockchain and daemon state
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
flags := "flags_example" // string | Possible values: net_time_delta_median, current_network_hashrate_50, current_network_hashrate_350, seconds_for_10_blocks, seconds_for_30_blocks, transactions_daily_stat, last_pos_timestamp, last_pow_timestamp, total_coins, last_block_size, tx_count_in_last_block, pos_sequence_factor, pow_sequence_factor, pos_difficulty, performance, outs_stat, expirations_median. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.GetInfo(context.Background()).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.GetInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetInfo`: InfoModel
fmt.Fprintf(os.Stdout, "Response from `InfoAPI.GetInfo`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiGetInfoRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**flags** | **string** | Possible values: net_time_delta_median, current_network_hashrate_50, current_network_hashrate_350, seconds_for_10_blocks, seconds_for_30_blocks, transactions_daily_stat, last_pos_timestamp, last_pow_timestamp, total_coins, last_block_size, tx_count_in_last_block, pos_sequence_factor, pow_sequence_factor, pos_difficulty, performance, outs_stat, expirations_median. |
### Return type
[**InfoModel**](InfoModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## Version
> VersionModel Version(ctx).Execute()
Get API version
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.Version(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.Version``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Version`: VersionModel
fmt.Fprintf(os.Stdout, "Response from `InfoAPI.Version`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiVersionRequest struct via the builder pattern
### Return type
[**VersionModel**](VersionModel.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

1226
utils/sdk/client/go/docs/InfoModel.md generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,160 @@
# MaintainersInfoModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VerMajor** | Pointer to **int32** | | [optional]
**VerMinor** | Pointer to **int32** | | [optional]
**VerRevision** | Pointer to **int32** | | [optional]
**BuildNo** | Pointer to **int32** | | [optional]
**Mode** | Pointer to **int32** | | [optional]
## Methods
### NewMaintainersInfoModel
`func NewMaintainersInfoModel() *MaintainersInfoModel`
NewMaintainersInfoModel instantiates a new MaintainersInfoModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewMaintainersInfoModelWithDefaults
`func NewMaintainersInfoModelWithDefaults() *MaintainersInfoModel`
NewMaintainersInfoModelWithDefaults instantiates a new MaintainersInfoModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetVerMajor
`func (o *MaintainersInfoModel) GetVerMajor() int32`
GetVerMajor returns the VerMajor field if non-nil, zero value otherwise.
### GetVerMajorOk
`func (o *MaintainersInfoModel) GetVerMajorOk() (*int32, bool)`
GetVerMajorOk returns a tuple with the VerMajor field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVerMajor
`func (o *MaintainersInfoModel) SetVerMajor(v int32)`
SetVerMajor sets VerMajor field to given value.
### HasVerMajor
`func (o *MaintainersInfoModel) HasVerMajor() bool`
HasVerMajor returns a boolean if a field has been set.
### GetVerMinor
`func (o *MaintainersInfoModel) GetVerMinor() int32`
GetVerMinor returns the VerMinor field if non-nil, zero value otherwise.
### GetVerMinorOk
`func (o *MaintainersInfoModel) GetVerMinorOk() (*int32, bool)`
GetVerMinorOk returns a tuple with the VerMinor field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVerMinor
`func (o *MaintainersInfoModel) SetVerMinor(v int32)`
SetVerMinor sets VerMinor field to given value.
### HasVerMinor
`func (o *MaintainersInfoModel) HasVerMinor() bool`
HasVerMinor returns a boolean if a field has been set.
### GetVerRevision
`func (o *MaintainersInfoModel) GetVerRevision() int32`
GetVerRevision returns the VerRevision field if non-nil, zero value otherwise.
### GetVerRevisionOk
`func (o *MaintainersInfoModel) GetVerRevisionOk() (*int32, bool)`
GetVerRevisionOk returns a tuple with the VerRevision field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVerRevision
`func (o *MaintainersInfoModel) SetVerRevision(v int32)`
SetVerRevision sets VerRevision field to given value.
### HasVerRevision
`func (o *MaintainersInfoModel) HasVerRevision() bool`
HasVerRevision returns a boolean if a field has been set.
### GetBuildNo
`func (o *MaintainersInfoModel) GetBuildNo() int32`
GetBuildNo returns the BuildNo field if non-nil, zero value otherwise.
### GetBuildNoOk
`func (o *MaintainersInfoModel) GetBuildNoOk() (*int32, bool)`
GetBuildNoOk returns a tuple with the BuildNo field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBuildNo
`func (o *MaintainersInfoModel) SetBuildNo(v int32)`
SetBuildNo sets BuildNo field to given value.
### HasBuildNo
`func (o *MaintainersInfoModel) HasBuildNo() bool`
HasBuildNo returns a boolean if a field has been set.
### GetMode
`func (o *MaintainersInfoModel) GetMode() int32`
GetMode returns the Mode field if non-nil, zero value otherwise.
### GetModeOk
`func (o *MaintainersInfoModel) GetModeOk() (*int32, bool)`
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMode
`func (o *MaintainersInfoModel) SetMode(v int32)`
SetMode sets Mode field to given value.
### HasMode
`func (o *MaintainersInfoModel) HasMode() bool`
HasMode returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,134 @@
# PerformanceModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**BlockProcessing** | Pointer to [**BlockProcessingPerformanceModel**](BlockProcessingPerformanceModel.md) | | [optional]
**TxProcessing** | Pointer to [**TxProcessingPerformanceModel**](TxProcessingPerformanceModel.md) | | [optional]
**TxPool** | Pointer to [**TxPoolPerformanceModel**](TxPoolPerformanceModel.md) | | [optional]
**DbStatInfo** | Pointer to [**DbStatInfoModel**](DbStatInfoModel.md) | | [optional]
## Methods
### NewPerformanceModel
`func NewPerformanceModel() *PerformanceModel`
NewPerformanceModel instantiates a new PerformanceModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewPerformanceModelWithDefaults
`func NewPerformanceModelWithDefaults() *PerformanceModel`
NewPerformanceModelWithDefaults instantiates a new PerformanceModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetBlockProcessing
`func (o *PerformanceModel) GetBlockProcessing() BlockProcessingPerformanceModel`
GetBlockProcessing returns the BlockProcessing field if non-nil, zero value otherwise.
### GetBlockProcessingOk
`func (o *PerformanceModel) GetBlockProcessingOk() (*BlockProcessingPerformanceModel, bool)`
GetBlockProcessingOk returns a tuple with the BlockProcessing field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockProcessing
`func (o *PerformanceModel) SetBlockProcessing(v BlockProcessingPerformanceModel)`
SetBlockProcessing sets BlockProcessing field to given value.
### HasBlockProcessing
`func (o *PerformanceModel) HasBlockProcessing() bool`
HasBlockProcessing returns a boolean if a field has been set.
### GetTxProcessing
`func (o *PerformanceModel) GetTxProcessing() TxProcessingPerformanceModel`
GetTxProcessing returns the TxProcessing field if non-nil, zero value otherwise.
### GetTxProcessingOk
`func (o *PerformanceModel) GetTxProcessingOk() (*TxProcessingPerformanceModel, bool)`
GetTxProcessingOk returns a tuple with the TxProcessing field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxProcessing
`func (o *PerformanceModel) SetTxProcessing(v TxProcessingPerformanceModel)`
SetTxProcessing sets TxProcessing field to given value.
### HasTxProcessing
`func (o *PerformanceModel) HasTxProcessing() bool`
HasTxProcessing returns a boolean if a field has been set.
### GetTxPool
`func (o *PerformanceModel) GetTxPool() TxPoolPerformanceModel`
GetTxPool returns the TxPool field if non-nil, zero value otherwise.
### GetTxPoolOk
`func (o *PerformanceModel) GetTxPoolOk() (*TxPoolPerformanceModel, bool)`
GetTxPoolOk returns a tuple with the TxPool field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxPool
`func (o *PerformanceModel) SetTxPool(v TxPoolPerformanceModel)`
SetTxPool sets TxPool field to given value.
### HasTxPool
`func (o *PerformanceModel) HasTxPool() bool`
HasTxPool returns a boolean if a field has been set.
### GetDbStatInfo
`func (o *PerformanceModel) GetDbStatInfo() DbStatInfoModel`
GetDbStatInfo returns the DbStatInfo field if non-nil, zero value otherwise.
### GetDbStatInfoOk
`func (o *PerformanceModel) GetDbStatInfoOk() (*DbStatInfoModel, bool)`
GetDbStatInfoOk returns a tuple with the DbStatInfo field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDbStatInfo
`func (o *PerformanceModel) SetDbStatInfo(v DbStatInfoModel)`
SetDbStatInfo sets DbStatInfo field to given value.
### HasDbStatInfo
`func (o *PerformanceModel) HasDbStatInfo() bool`
HasDbStatInfo returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

238
utils/sdk/client/go/docs/PosEntryModel.md generated Normal file
View file

@ -0,0 +1,238 @@
# PosEntryModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Amount** | Pointer to **int32** | | [optional]
**GIndex** | Pointer to **int32** | | [optional]
**Keyimage** | Pointer to **string** | | [optional]
**BlockTimestamp** | Pointer to **int32** | | [optional]
**StakeUnlockTime** | Pointer to **int32** | | [optional]
**TxId** | Pointer to **string** | | [optional]
**TxOutIndex** | Pointer to **int32** | | [optional]
**WalletIndex** | Pointer to **int32** | | [optional]
## Methods
### NewPosEntryModel
`func NewPosEntryModel() *PosEntryModel`
NewPosEntryModel instantiates a new PosEntryModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewPosEntryModelWithDefaults
`func NewPosEntryModelWithDefaults() *PosEntryModel`
NewPosEntryModelWithDefaults instantiates a new PosEntryModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAmount
`func (o *PosEntryModel) GetAmount() int32`
GetAmount returns the Amount field if non-nil, zero value otherwise.
### GetAmountOk
`func (o *PosEntryModel) GetAmountOk() (*int32, bool)`
GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmount
`func (o *PosEntryModel) SetAmount(v int32)`
SetAmount sets Amount field to given value.
### HasAmount
`func (o *PosEntryModel) HasAmount() bool`
HasAmount returns a boolean if a field has been set.
### GetGIndex
`func (o *PosEntryModel) GetGIndex() int32`
GetGIndex returns the GIndex field if non-nil, zero value otherwise.
### GetGIndexOk
`func (o *PosEntryModel) GetGIndexOk() (*int32, bool)`
GetGIndexOk returns a tuple with the GIndex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGIndex
`func (o *PosEntryModel) SetGIndex(v int32)`
SetGIndex sets GIndex field to given value.
### HasGIndex
`func (o *PosEntryModel) HasGIndex() bool`
HasGIndex returns a boolean if a field has been set.
### GetKeyimage
`func (o *PosEntryModel) GetKeyimage() string`
GetKeyimage returns the Keyimage field if non-nil, zero value otherwise.
### GetKeyimageOk
`func (o *PosEntryModel) GetKeyimageOk() (*string, bool)`
GetKeyimageOk returns a tuple with the Keyimage field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKeyimage
`func (o *PosEntryModel) SetKeyimage(v string)`
SetKeyimage sets Keyimage field to given value.
### HasKeyimage
`func (o *PosEntryModel) HasKeyimage() bool`
HasKeyimage returns a boolean if a field has been set.
### GetBlockTimestamp
`func (o *PosEntryModel) GetBlockTimestamp() int32`
GetBlockTimestamp returns the BlockTimestamp field if non-nil, zero value otherwise.
### GetBlockTimestampOk
`func (o *PosEntryModel) GetBlockTimestampOk() (*int32, bool)`
GetBlockTimestampOk returns a tuple with the BlockTimestamp field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockTimestamp
`func (o *PosEntryModel) SetBlockTimestamp(v int32)`
SetBlockTimestamp sets BlockTimestamp field to given value.
### HasBlockTimestamp
`func (o *PosEntryModel) HasBlockTimestamp() bool`
HasBlockTimestamp returns a boolean if a field has been set.
### GetStakeUnlockTime
`func (o *PosEntryModel) GetStakeUnlockTime() int32`
GetStakeUnlockTime returns the StakeUnlockTime field if non-nil, zero value otherwise.
### GetStakeUnlockTimeOk
`func (o *PosEntryModel) GetStakeUnlockTimeOk() (*int32, bool)`
GetStakeUnlockTimeOk returns a tuple with the StakeUnlockTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStakeUnlockTime
`func (o *PosEntryModel) SetStakeUnlockTime(v int32)`
SetStakeUnlockTime sets StakeUnlockTime field to given value.
### HasStakeUnlockTime
`func (o *PosEntryModel) HasStakeUnlockTime() bool`
HasStakeUnlockTime returns a boolean if a field has been set.
### GetTxId
`func (o *PosEntryModel) GetTxId() string`
GetTxId returns the TxId field if non-nil, zero value otherwise.
### GetTxIdOk
`func (o *PosEntryModel) GetTxIdOk() (*string, bool)`
GetTxIdOk returns a tuple with the TxId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxId
`func (o *PosEntryModel) SetTxId(v string)`
SetTxId sets TxId field to given value.
### HasTxId
`func (o *PosEntryModel) HasTxId() bool`
HasTxId returns a boolean if a field has been set.
### GetTxOutIndex
`func (o *PosEntryModel) GetTxOutIndex() int32`
GetTxOutIndex returns the TxOutIndex field if non-nil, zero value otherwise.
### GetTxOutIndexOk
`func (o *PosEntryModel) GetTxOutIndexOk() (*int32, bool)`
GetTxOutIndexOk returns a tuple with the TxOutIndex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxOutIndex
`func (o *PosEntryModel) SetTxOutIndex(v int32)`
SetTxOutIndex sets TxOutIndex field to given value.
### HasTxOutIndex
`func (o *PosEntryModel) HasTxOutIndex() bool`
HasTxOutIndex returns a boolean if a field has been set.
### GetWalletIndex
`func (o *PosEntryModel) GetWalletIndex() int32`
GetWalletIndex returns the WalletIndex field if non-nil, zero value otherwise.
### GetWalletIndexOk
`func (o *PosEntryModel) GetWalletIndexOk() (*int32, bool)`
GetWalletIndexOk returns a tuple with the WalletIndex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetWalletIndex
`func (o *PosEntryModel) SetWalletIndex(v int32)`
SetWalletIndex sets WalletIndex field to given value.
### HasWalletIndex
`func (o *PosEntryModel) HasWalletIndex() bool`
HasWalletIndex returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,56 @@
# SubmitBlockRequestModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**BlockBlob** | Pointer to **string** | | [optional]
## Methods
### NewSubmitBlockRequestModel
`func NewSubmitBlockRequestModel() *SubmitBlockRequestModel`
NewSubmitBlockRequestModel instantiates a new SubmitBlockRequestModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewSubmitBlockRequestModelWithDefaults
`func NewSubmitBlockRequestModelWithDefaults() *SubmitBlockRequestModel`
NewSubmitBlockRequestModelWithDefaults instantiates a new SubmitBlockRequestModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetBlockBlob
`func (o *SubmitBlockRequestModel) GetBlockBlob() string`
GetBlockBlob returns the BlockBlob field if non-nil, zero value otherwise.
### GetBlockBlobOk
`func (o *SubmitBlockRequestModel) GetBlockBlobOk() (*string, bool)`
GetBlockBlobOk returns a tuple with the BlockBlob field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlockBlob
`func (o *SubmitBlockRequestModel) SetBlockBlob(v string)`
SetBlockBlob sets BlockBlob field to given value.
### HasBlockBlob
`func (o *SubmitBlockRequestModel) HasBlockBlob() bool`
HasBlockBlob returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,56 @@
# SubmitBlockResponseModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Status** | Pointer to **string** | | [optional]
## Methods
### NewSubmitBlockResponseModel
`func NewSubmitBlockResponseModel() *SubmitBlockResponseModel`
NewSubmitBlockResponseModel instantiates a new SubmitBlockResponseModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewSubmitBlockResponseModelWithDefaults
`func NewSubmitBlockResponseModelWithDefaults() *SubmitBlockResponseModel`
NewSubmitBlockResponseModelWithDefaults instantiates a new SubmitBlockResponseModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetStatus
`func (o *SubmitBlockResponseModel) GetStatus() string`
GetStatus returns the Status field if non-nil, zero value otherwise.
### GetStatusOk
`func (o *SubmitBlockResponseModel) GetStatusOk() (*string, bool)`
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStatus
`func (o *SubmitBlockResponseModel) SetStatus(v string)`
SetStatus sets Status field to given value.
### HasStatus
`func (o *SubmitBlockResponseModel) HasStatus() bool`
HasStatus returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,108 @@
# TransactionAttachmentModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | Pointer to **string** | | [optional]
**ShortView** | Pointer to **string** | | [optional]
**DetailsView** | Pointer to **string** | | [optional]
## Methods
### NewTransactionAttachmentModel
`func NewTransactionAttachmentModel() *TransactionAttachmentModel`
NewTransactionAttachmentModel instantiates a new TransactionAttachmentModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTransactionAttachmentModelWithDefaults
`func NewTransactionAttachmentModelWithDefaults() *TransactionAttachmentModel`
NewTransactionAttachmentModelWithDefaults instantiates a new TransactionAttachmentModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetType
`func (o *TransactionAttachmentModel) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *TransactionAttachmentModel) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *TransactionAttachmentModel) SetType(v string)`
SetType sets Type field to given value.
### HasType
`func (o *TransactionAttachmentModel) HasType() bool`
HasType returns a boolean if a field has been set.
### GetShortView
`func (o *TransactionAttachmentModel) GetShortView() string`
GetShortView returns the ShortView field if non-nil, zero value otherwise.
### GetShortViewOk
`func (o *TransactionAttachmentModel) GetShortViewOk() (*string, bool)`
GetShortViewOk returns a tuple with the ShortView field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetShortView
`func (o *TransactionAttachmentModel) SetShortView(v string)`
SetShortView sets ShortView field to given value.
### HasShortView
`func (o *TransactionAttachmentModel) HasShortView() bool`
HasShortView returns a boolean if a field has been set.
### GetDetailsView
`func (o *TransactionAttachmentModel) GetDetailsView() string`
GetDetailsView returns the DetailsView field if non-nil, zero value otherwise.
### GetDetailsViewOk
`func (o *TransactionAttachmentModel) GetDetailsViewOk() (*string, bool)`
GetDetailsViewOk returns a tuple with the DetailsView field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDetailsView
`func (o *TransactionAttachmentModel) SetDetailsView(v string)`
SetDetailsView sets DetailsView field to given value.
### HasDetailsView
`func (o *TransactionAttachmentModel) HasDetailsView() bool`
HasDetailsView returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,368 @@
# TransactionDetailsModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Amount** | Pointer to **int32** | | [optional]
**Attachments** | Pointer to [**[]TransactionAttachmentModel**](TransactionAttachmentModel.md) | | [optional]
**Blob** | Pointer to **string** | | [optional]
**BlobSize** | Pointer to **int32** | | [optional]
**Extra** | Pointer to [**[]TransactionExtraModel**](TransactionExtraModel.md) | | [optional]
**Fee** | Pointer to **int32** | | [optional]
**Id** | Pointer to **string** | | [optional]
**Ins** | Pointer to [**[]TransactionInputModel**](TransactionInputModel.md) | | [optional]
**KeeperBlock** | Pointer to **int64** | | [optional]
**ObjectInJson** | Pointer to **string** | | [optional]
**Outs** | Pointer to [**[]TransactionOutputModel**](TransactionOutputModel.md) | | [optional]
**PubKey** | Pointer to **string** | | [optional]
**Timestamp** | Pointer to **int32** | | [optional]
## Methods
### NewTransactionDetailsModel
`func NewTransactionDetailsModel() *TransactionDetailsModel`
NewTransactionDetailsModel instantiates a new TransactionDetailsModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTransactionDetailsModelWithDefaults
`func NewTransactionDetailsModelWithDefaults() *TransactionDetailsModel`
NewTransactionDetailsModelWithDefaults instantiates a new TransactionDetailsModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAmount
`func (o *TransactionDetailsModel) GetAmount() int32`
GetAmount returns the Amount field if non-nil, zero value otherwise.
### GetAmountOk
`func (o *TransactionDetailsModel) GetAmountOk() (*int32, bool)`
GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmount
`func (o *TransactionDetailsModel) SetAmount(v int32)`
SetAmount sets Amount field to given value.
### HasAmount
`func (o *TransactionDetailsModel) HasAmount() bool`
HasAmount returns a boolean if a field has been set.
### GetAttachments
`func (o *TransactionDetailsModel) GetAttachments() []TransactionAttachmentModel`
GetAttachments returns the Attachments field if non-nil, zero value otherwise.
### GetAttachmentsOk
`func (o *TransactionDetailsModel) GetAttachmentsOk() (*[]TransactionAttachmentModel, bool)`
GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAttachments
`func (o *TransactionDetailsModel) SetAttachments(v []TransactionAttachmentModel)`
SetAttachments sets Attachments field to given value.
### HasAttachments
`func (o *TransactionDetailsModel) HasAttachments() bool`
HasAttachments returns a boolean if a field has been set.
### GetBlob
`func (o *TransactionDetailsModel) GetBlob() string`
GetBlob returns the Blob field if non-nil, zero value otherwise.
### GetBlobOk
`func (o *TransactionDetailsModel) GetBlobOk() (*string, bool)`
GetBlobOk returns a tuple with the Blob field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlob
`func (o *TransactionDetailsModel) SetBlob(v string)`
SetBlob sets Blob field to given value.
### HasBlob
`func (o *TransactionDetailsModel) HasBlob() bool`
HasBlob returns a boolean if a field has been set.
### GetBlobSize
`func (o *TransactionDetailsModel) GetBlobSize() int32`
GetBlobSize returns the BlobSize field if non-nil, zero value otherwise.
### GetBlobSizeOk
`func (o *TransactionDetailsModel) GetBlobSizeOk() (*int32, bool)`
GetBlobSizeOk returns a tuple with the BlobSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlobSize
`func (o *TransactionDetailsModel) SetBlobSize(v int32)`
SetBlobSize sets BlobSize field to given value.
### HasBlobSize
`func (o *TransactionDetailsModel) HasBlobSize() bool`
HasBlobSize returns a boolean if a field has been set.
### GetExtra
`func (o *TransactionDetailsModel) GetExtra() []TransactionExtraModel`
GetExtra returns the Extra field if non-nil, zero value otherwise.
### GetExtraOk
`func (o *TransactionDetailsModel) GetExtraOk() (*[]TransactionExtraModel, bool)`
GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExtra
`func (o *TransactionDetailsModel) SetExtra(v []TransactionExtraModel)`
SetExtra sets Extra field to given value.
### HasExtra
`func (o *TransactionDetailsModel) HasExtra() bool`
HasExtra returns a boolean if a field has been set.
### GetFee
`func (o *TransactionDetailsModel) GetFee() int32`
GetFee returns the Fee field if non-nil, zero value otherwise.
### GetFeeOk
`func (o *TransactionDetailsModel) GetFeeOk() (*int32, bool)`
GetFeeOk returns a tuple with the Fee field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetFee
`func (o *TransactionDetailsModel) SetFee(v int32)`
SetFee sets Fee field to given value.
### HasFee
`func (o *TransactionDetailsModel) HasFee() bool`
HasFee returns a boolean if a field has been set.
### GetId
`func (o *TransactionDetailsModel) GetId() string`
GetId returns the Id field if non-nil, zero value otherwise.
### GetIdOk
`func (o *TransactionDetailsModel) GetIdOk() (*string, bool)`
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetId
`func (o *TransactionDetailsModel) SetId(v string)`
SetId sets Id field to given value.
### HasId
`func (o *TransactionDetailsModel) HasId() bool`
HasId returns a boolean if a field has been set.
### GetIns
`func (o *TransactionDetailsModel) GetIns() []TransactionInputModel`
GetIns returns the Ins field if non-nil, zero value otherwise.
### GetInsOk
`func (o *TransactionDetailsModel) GetInsOk() (*[]TransactionInputModel, bool)`
GetInsOk returns a tuple with the Ins field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIns
`func (o *TransactionDetailsModel) SetIns(v []TransactionInputModel)`
SetIns sets Ins field to given value.
### HasIns
`func (o *TransactionDetailsModel) HasIns() bool`
HasIns returns a boolean if a field has been set.
### GetKeeperBlock
`func (o *TransactionDetailsModel) GetKeeperBlock() int64`
GetKeeperBlock returns the KeeperBlock field if non-nil, zero value otherwise.
### GetKeeperBlockOk
`func (o *TransactionDetailsModel) GetKeeperBlockOk() (*int64, bool)`
GetKeeperBlockOk returns a tuple with the KeeperBlock field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKeeperBlock
`func (o *TransactionDetailsModel) SetKeeperBlock(v int64)`
SetKeeperBlock sets KeeperBlock field to given value.
### HasKeeperBlock
`func (o *TransactionDetailsModel) HasKeeperBlock() bool`
HasKeeperBlock returns a boolean if a field has been set.
### GetObjectInJson
`func (o *TransactionDetailsModel) GetObjectInJson() string`
GetObjectInJson returns the ObjectInJson field if non-nil, zero value otherwise.
### GetObjectInJsonOk
`func (o *TransactionDetailsModel) GetObjectInJsonOk() (*string, bool)`
GetObjectInJsonOk returns a tuple with the ObjectInJson field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetObjectInJson
`func (o *TransactionDetailsModel) SetObjectInJson(v string)`
SetObjectInJson sets ObjectInJson field to given value.
### HasObjectInJson
`func (o *TransactionDetailsModel) HasObjectInJson() bool`
HasObjectInJson returns a boolean if a field has been set.
### GetOuts
`func (o *TransactionDetailsModel) GetOuts() []TransactionOutputModel`
GetOuts returns the Outs field if non-nil, zero value otherwise.
### GetOutsOk
`func (o *TransactionDetailsModel) GetOutsOk() (*[]TransactionOutputModel, bool)`
GetOutsOk returns a tuple with the Outs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetOuts
`func (o *TransactionDetailsModel) SetOuts(v []TransactionOutputModel)`
SetOuts sets Outs field to given value.
### HasOuts
`func (o *TransactionDetailsModel) HasOuts() bool`
HasOuts returns a boolean if a field has been set.
### GetPubKey
`func (o *TransactionDetailsModel) GetPubKey() string`
GetPubKey returns the PubKey field if non-nil, zero value otherwise.
### GetPubKeyOk
`func (o *TransactionDetailsModel) GetPubKeyOk() (*string, bool)`
GetPubKeyOk returns a tuple with the PubKey field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPubKey
`func (o *TransactionDetailsModel) SetPubKey(v string)`
SetPubKey sets PubKey field to given value.
### HasPubKey
`func (o *TransactionDetailsModel) HasPubKey() bool`
HasPubKey returns a boolean if a field has been set.
### GetTimestamp
`func (o *TransactionDetailsModel) GetTimestamp() int32`
GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.
### GetTimestampOk
`func (o *TransactionDetailsModel) GetTimestampOk() (*int32, bool)`
GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTimestamp
`func (o *TransactionDetailsModel) SetTimestamp(v int32)`
SetTimestamp sets Timestamp field to given value.
### HasTimestamp
`func (o *TransactionDetailsModel) HasTimestamp() bool`
HasTimestamp returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,108 @@
# TransactionExtraModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | Pointer to **string** | | [optional]
**ShortView** | Pointer to **string** | | [optional]
**DetailsView** | Pointer to **string** | | [optional]
## Methods
### NewTransactionExtraModel
`func NewTransactionExtraModel() *TransactionExtraModel`
NewTransactionExtraModel instantiates a new TransactionExtraModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTransactionExtraModelWithDefaults
`func NewTransactionExtraModelWithDefaults() *TransactionExtraModel`
NewTransactionExtraModelWithDefaults instantiates a new TransactionExtraModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetType
`func (o *TransactionExtraModel) GetType() string`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
`func (o *TransactionExtraModel) GetTypeOk() (*string, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
`func (o *TransactionExtraModel) SetType(v string)`
SetType sets Type field to given value.
### HasType
`func (o *TransactionExtraModel) HasType() bool`
HasType returns a boolean if a field has been set.
### GetShortView
`func (o *TransactionExtraModel) GetShortView() string`
GetShortView returns the ShortView field if non-nil, zero value otherwise.
### GetShortViewOk
`func (o *TransactionExtraModel) GetShortViewOk() (*string, bool)`
GetShortViewOk returns a tuple with the ShortView field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetShortView
`func (o *TransactionExtraModel) SetShortView(v string)`
SetShortView sets ShortView field to given value.
### HasShortView
`func (o *TransactionExtraModel) HasShortView() bool`
HasShortView returns a boolean if a field has been set.
### GetDetailsView
`func (o *TransactionExtraModel) GetDetailsView() string`
GetDetailsView returns the DetailsView field if non-nil, zero value otherwise.
### GetDetailsViewOk
`func (o *TransactionExtraModel) GetDetailsViewOk() (*string, bool)`
GetDetailsViewOk returns a tuple with the DetailsView field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDetailsView
`func (o *TransactionExtraModel) SetDetailsView(v string)`
SetDetailsView sets DetailsView field to given value.
### HasDetailsView
`func (o *TransactionExtraModel) HasDetailsView() bool`
HasDetailsView returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,160 @@
# TransactionInputModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Amount** | Pointer to **int32** | | [optional]
**GlobalIndexes** | Pointer to **[]int32** | | [optional]
**HtlcOrigin** | Pointer to **string** | | [optional]
**KimageOrMsId** | Pointer to **string** | | [optional]
**MultisigCount** | Pointer to **int32** | | [optional]
## Methods
### NewTransactionInputModel
`func NewTransactionInputModel() *TransactionInputModel`
NewTransactionInputModel instantiates a new TransactionInputModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTransactionInputModelWithDefaults
`func NewTransactionInputModelWithDefaults() *TransactionInputModel`
NewTransactionInputModelWithDefaults instantiates a new TransactionInputModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAmount
`func (o *TransactionInputModel) GetAmount() int32`
GetAmount returns the Amount field if non-nil, zero value otherwise.
### GetAmountOk
`func (o *TransactionInputModel) GetAmountOk() (*int32, bool)`
GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmount
`func (o *TransactionInputModel) SetAmount(v int32)`
SetAmount sets Amount field to given value.
### HasAmount
`func (o *TransactionInputModel) HasAmount() bool`
HasAmount returns a boolean if a field has been set.
### GetGlobalIndexes
`func (o *TransactionInputModel) GetGlobalIndexes() []int32`
GetGlobalIndexes returns the GlobalIndexes field if non-nil, zero value otherwise.
### GetGlobalIndexesOk
`func (o *TransactionInputModel) GetGlobalIndexesOk() (*[]int32, bool)`
GetGlobalIndexesOk returns a tuple with the GlobalIndexes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGlobalIndexes
`func (o *TransactionInputModel) SetGlobalIndexes(v []int32)`
SetGlobalIndexes sets GlobalIndexes field to given value.
### HasGlobalIndexes
`func (o *TransactionInputModel) HasGlobalIndexes() bool`
HasGlobalIndexes returns a boolean if a field has been set.
### GetHtlcOrigin
`func (o *TransactionInputModel) GetHtlcOrigin() string`
GetHtlcOrigin returns the HtlcOrigin field if non-nil, zero value otherwise.
### GetHtlcOriginOk
`func (o *TransactionInputModel) GetHtlcOriginOk() (*string, bool)`
GetHtlcOriginOk returns a tuple with the HtlcOrigin field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetHtlcOrigin
`func (o *TransactionInputModel) SetHtlcOrigin(v string)`
SetHtlcOrigin sets HtlcOrigin field to given value.
### HasHtlcOrigin
`func (o *TransactionInputModel) HasHtlcOrigin() bool`
HasHtlcOrigin returns a boolean if a field has been set.
### GetKimageOrMsId
`func (o *TransactionInputModel) GetKimageOrMsId() string`
GetKimageOrMsId returns the KimageOrMsId field if non-nil, zero value otherwise.
### GetKimageOrMsIdOk
`func (o *TransactionInputModel) GetKimageOrMsIdOk() (*string, bool)`
GetKimageOrMsIdOk returns a tuple with the KimageOrMsId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetKimageOrMsId
`func (o *TransactionInputModel) SetKimageOrMsId(v string)`
SetKimageOrMsId sets KimageOrMsId field to given value.
### HasKimageOrMsId
`func (o *TransactionInputModel) HasKimageOrMsId() bool`
HasKimageOrMsId returns a boolean if a field has been set.
### GetMultisigCount
`func (o *TransactionInputModel) GetMultisigCount() int32`
GetMultisigCount returns the MultisigCount field if non-nil, zero value otherwise.
### GetMultisigCountOk
`func (o *TransactionInputModel) GetMultisigCountOk() (*int32, bool)`
GetMultisigCountOk returns a tuple with the MultisigCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMultisigCount
`func (o *TransactionInputModel) SetMultisigCount(v int32)`
SetMultisigCount sets MultisigCount field to given value.
### HasMultisigCount
`func (o *TransactionInputModel) HasMultisigCount() bool`
HasMultisigCount returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,160 @@
# TransactionOutputModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Amount** | Pointer to **int32** | | [optional]
**GlobalIndex** | Pointer to **int32** | | [optional]
**IsSpent** | Pointer to **bool** | | [optional]
**MinimumSigs** | Pointer to **int32** | | [optional]
**PubKeys** | Pointer to **[]string** | | [optional]
## Methods
### NewTransactionOutputModel
`func NewTransactionOutputModel() *TransactionOutputModel`
NewTransactionOutputModel instantiates a new TransactionOutputModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTransactionOutputModelWithDefaults
`func NewTransactionOutputModelWithDefaults() *TransactionOutputModel`
NewTransactionOutputModelWithDefaults instantiates a new TransactionOutputModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAmount
`func (o *TransactionOutputModel) GetAmount() int32`
GetAmount returns the Amount field if non-nil, zero value otherwise.
### GetAmountOk
`func (o *TransactionOutputModel) GetAmountOk() (*int32, bool)`
GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmount
`func (o *TransactionOutputModel) SetAmount(v int32)`
SetAmount sets Amount field to given value.
### HasAmount
`func (o *TransactionOutputModel) HasAmount() bool`
HasAmount returns a boolean if a field has been set.
### GetGlobalIndex
`func (o *TransactionOutputModel) GetGlobalIndex() int32`
GetGlobalIndex returns the GlobalIndex field if non-nil, zero value otherwise.
### GetGlobalIndexOk
`func (o *TransactionOutputModel) GetGlobalIndexOk() (*int32, bool)`
GetGlobalIndexOk returns a tuple with the GlobalIndex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetGlobalIndex
`func (o *TransactionOutputModel) SetGlobalIndex(v int32)`
SetGlobalIndex sets GlobalIndex field to given value.
### HasGlobalIndex
`func (o *TransactionOutputModel) HasGlobalIndex() bool`
HasGlobalIndex returns a boolean if a field has been set.
### GetIsSpent
`func (o *TransactionOutputModel) GetIsSpent() bool`
GetIsSpent returns the IsSpent field if non-nil, zero value otherwise.
### GetIsSpentOk
`func (o *TransactionOutputModel) GetIsSpentOk() (*bool, bool)`
GetIsSpentOk returns a tuple with the IsSpent field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetIsSpent
`func (o *TransactionOutputModel) SetIsSpent(v bool)`
SetIsSpent sets IsSpent field to given value.
### HasIsSpent
`func (o *TransactionOutputModel) HasIsSpent() bool`
HasIsSpent returns a boolean if a field has been set.
### GetMinimumSigs
`func (o *TransactionOutputModel) GetMinimumSigs() int32`
GetMinimumSigs returns the MinimumSigs field if non-nil, zero value otherwise.
### GetMinimumSigsOk
`func (o *TransactionOutputModel) GetMinimumSigsOk() (*int32, bool)`
GetMinimumSigsOk returns a tuple with the MinimumSigs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMinimumSigs
`func (o *TransactionOutputModel) SetMinimumSigs(v int32)`
SetMinimumSigs sets MinimumSigs field to given value.
### HasMinimumSigs
`func (o *TransactionOutputModel) HasMinimumSigs() bool`
HasMinimumSigs returns a boolean if a field has been set.
### GetPubKeys
`func (o *TransactionOutputModel) GetPubKeys() []string`
GetPubKeys returns the PubKeys field if non-nil, zero value otherwise.
### GetPubKeysOk
`func (o *TransactionOutputModel) GetPubKeysOk() (*[]string, bool)`
GetPubKeysOk returns a tuple with the PubKeys field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPubKeys
`func (o *TransactionOutputModel) SetPubKeys(v []string)`
SetPubKeys sets PubKeys field to given value.
### HasPubKeys
`func (o *TransactionOutputModel) HasPubKeys() bool`
HasPubKeys returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,654 @@
# TxGenerationContextModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AssetIds** | Pointer to **[]string** | | [optional]
**BlindedAssetIds** | Pointer to **[]string** | | [optional]
**AmountCommitments** | Pointer to **[]string** | | [optional]
**AssetIdBlindingMasks** | Pointer to **[]string** | | [optional]
**Amounts** | Pointer to **[]string** | | [optional]
**AmountBlindingMasks** | Pointer to **[]string** | | [optional]
**PseudoOutsBlindedAssetIds** | Pointer to **[]string** | | [optional]
**PseudoOutsPlusRealOutBlindingMasks** | Pointer to **[]string** | | [optional]
**RealZcInsAssetIds** | Pointer to **[]string** | | [optional]
**ZcInputAmounts** | Pointer to **[]int32** | | [optional]
**PseudoOutAmountCommitmentsSum** | Pointer to **string** | | [optional]
**PseudoOutAmountBlindingMasksSum** | Pointer to **string** | | [optional]
**RealInAssetIdBlindingMaskXAmountSum** | Pointer to **string** | | [optional]
**AmountCommitmentsSum** | Pointer to **string** | | [optional]
**AmountBlindingMasksSum** | Pointer to **string** | | [optional]
**AssetIdBlindingMaskXAmountSum** | Pointer to **string** | | [optional]
**AoAssetId** | Pointer to **string** | | [optional]
**AoAssetIdPt** | Pointer to **string** | | [optional]
**AoAmountCommitment** | Pointer to **string** | | [optional]
**AoAmountBlindingMask** | Pointer to **string** | | [optional]
**AoCommitmentInOutputs** | Pointer to **bool** | | [optional]
**TxKeyPub** | Pointer to **string** | | [optional]
**TxKeySec** | Pointer to **string** | | [optional]
**TxPubKeyP** | Pointer to **string** | | [optional]
## Methods
### NewTxGenerationContextModel
`func NewTxGenerationContextModel() *TxGenerationContextModel`
NewTxGenerationContextModel instantiates a new TxGenerationContextModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTxGenerationContextModelWithDefaults
`func NewTxGenerationContextModelWithDefaults() *TxGenerationContextModel`
NewTxGenerationContextModelWithDefaults instantiates a new TxGenerationContextModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetAssetIds
`func (o *TxGenerationContextModel) GetAssetIds() []string`
GetAssetIds returns the AssetIds field if non-nil, zero value otherwise.
### GetAssetIdsOk
`func (o *TxGenerationContextModel) GetAssetIdsOk() (*[]string, bool)`
GetAssetIdsOk returns a tuple with the AssetIds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAssetIds
`func (o *TxGenerationContextModel) SetAssetIds(v []string)`
SetAssetIds sets AssetIds field to given value.
### HasAssetIds
`func (o *TxGenerationContextModel) HasAssetIds() bool`
HasAssetIds returns a boolean if a field has been set.
### GetBlindedAssetIds
`func (o *TxGenerationContextModel) GetBlindedAssetIds() []string`
GetBlindedAssetIds returns the BlindedAssetIds field if non-nil, zero value otherwise.
### GetBlindedAssetIdsOk
`func (o *TxGenerationContextModel) GetBlindedAssetIdsOk() (*[]string, bool)`
GetBlindedAssetIdsOk returns a tuple with the BlindedAssetIds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBlindedAssetIds
`func (o *TxGenerationContextModel) SetBlindedAssetIds(v []string)`
SetBlindedAssetIds sets BlindedAssetIds field to given value.
### HasBlindedAssetIds
`func (o *TxGenerationContextModel) HasBlindedAssetIds() bool`
HasBlindedAssetIds returns a boolean if a field has been set.
### GetAmountCommitments
`func (o *TxGenerationContextModel) GetAmountCommitments() []string`
GetAmountCommitments returns the AmountCommitments field if non-nil, zero value otherwise.
### GetAmountCommitmentsOk
`func (o *TxGenerationContextModel) GetAmountCommitmentsOk() (*[]string, bool)`
GetAmountCommitmentsOk returns a tuple with the AmountCommitments field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmountCommitments
`func (o *TxGenerationContextModel) SetAmountCommitments(v []string)`
SetAmountCommitments sets AmountCommitments field to given value.
### HasAmountCommitments
`func (o *TxGenerationContextModel) HasAmountCommitments() bool`
HasAmountCommitments returns a boolean if a field has been set.
### GetAssetIdBlindingMasks
`func (o *TxGenerationContextModel) GetAssetIdBlindingMasks() []string`
GetAssetIdBlindingMasks returns the AssetIdBlindingMasks field if non-nil, zero value otherwise.
### GetAssetIdBlindingMasksOk
`func (o *TxGenerationContextModel) GetAssetIdBlindingMasksOk() (*[]string, bool)`
GetAssetIdBlindingMasksOk returns a tuple with the AssetIdBlindingMasks field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAssetIdBlindingMasks
`func (o *TxGenerationContextModel) SetAssetIdBlindingMasks(v []string)`
SetAssetIdBlindingMasks sets AssetIdBlindingMasks field to given value.
### HasAssetIdBlindingMasks
`func (o *TxGenerationContextModel) HasAssetIdBlindingMasks() bool`
HasAssetIdBlindingMasks returns a boolean if a field has been set.
### GetAmounts
`func (o *TxGenerationContextModel) GetAmounts() []string`
GetAmounts returns the Amounts field if non-nil, zero value otherwise.
### GetAmountsOk
`func (o *TxGenerationContextModel) GetAmountsOk() (*[]string, bool)`
GetAmountsOk returns a tuple with the Amounts field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmounts
`func (o *TxGenerationContextModel) SetAmounts(v []string)`
SetAmounts sets Amounts field to given value.
### HasAmounts
`func (o *TxGenerationContextModel) HasAmounts() bool`
HasAmounts returns a boolean if a field has been set.
### GetAmountBlindingMasks
`func (o *TxGenerationContextModel) GetAmountBlindingMasks() []string`
GetAmountBlindingMasks returns the AmountBlindingMasks field if non-nil, zero value otherwise.
### GetAmountBlindingMasksOk
`func (o *TxGenerationContextModel) GetAmountBlindingMasksOk() (*[]string, bool)`
GetAmountBlindingMasksOk returns a tuple with the AmountBlindingMasks field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmountBlindingMasks
`func (o *TxGenerationContextModel) SetAmountBlindingMasks(v []string)`
SetAmountBlindingMasks sets AmountBlindingMasks field to given value.
### HasAmountBlindingMasks
`func (o *TxGenerationContextModel) HasAmountBlindingMasks() bool`
HasAmountBlindingMasks returns a boolean if a field has been set.
### GetPseudoOutsBlindedAssetIds
`func (o *TxGenerationContextModel) GetPseudoOutsBlindedAssetIds() []string`
GetPseudoOutsBlindedAssetIds returns the PseudoOutsBlindedAssetIds field if non-nil, zero value otherwise.
### GetPseudoOutsBlindedAssetIdsOk
`func (o *TxGenerationContextModel) GetPseudoOutsBlindedAssetIdsOk() (*[]string, bool)`
GetPseudoOutsBlindedAssetIdsOk returns a tuple with the PseudoOutsBlindedAssetIds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPseudoOutsBlindedAssetIds
`func (o *TxGenerationContextModel) SetPseudoOutsBlindedAssetIds(v []string)`
SetPseudoOutsBlindedAssetIds sets PseudoOutsBlindedAssetIds field to given value.
### HasPseudoOutsBlindedAssetIds
`func (o *TxGenerationContextModel) HasPseudoOutsBlindedAssetIds() bool`
HasPseudoOutsBlindedAssetIds returns a boolean if a field has been set.
### GetPseudoOutsPlusRealOutBlindingMasks
`func (o *TxGenerationContextModel) GetPseudoOutsPlusRealOutBlindingMasks() []string`
GetPseudoOutsPlusRealOutBlindingMasks returns the PseudoOutsPlusRealOutBlindingMasks field if non-nil, zero value otherwise.
### GetPseudoOutsPlusRealOutBlindingMasksOk
`func (o *TxGenerationContextModel) GetPseudoOutsPlusRealOutBlindingMasksOk() (*[]string, bool)`
GetPseudoOutsPlusRealOutBlindingMasksOk returns a tuple with the PseudoOutsPlusRealOutBlindingMasks field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPseudoOutsPlusRealOutBlindingMasks
`func (o *TxGenerationContextModel) SetPseudoOutsPlusRealOutBlindingMasks(v []string)`
SetPseudoOutsPlusRealOutBlindingMasks sets PseudoOutsPlusRealOutBlindingMasks field to given value.
### HasPseudoOutsPlusRealOutBlindingMasks
`func (o *TxGenerationContextModel) HasPseudoOutsPlusRealOutBlindingMasks() bool`
HasPseudoOutsPlusRealOutBlindingMasks returns a boolean if a field has been set.
### GetRealZcInsAssetIds
`func (o *TxGenerationContextModel) GetRealZcInsAssetIds() []string`
GetRealZcInsAssetIds returns the RealZcInsAssetIds field if non-nil, zero value otherwise.
### GetRealZcInsAssetIdsOk
`func (o *TxGenerationContextModel) GetRealZcInsAssetIdsOk() (*[]string, bool)`
GetRealZcInsAssetIdsOk returns a tuple with the RealZcInsAssetIds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRealZcInsAssetIds
`func (o *TxGenerationContextModel) SetRealZcInsAssetIds(v []string)`
SetRealZcInsAssetIds sets RealZcInsAssetIds field to given value.
### HasRealZcInsAssetIds
`func (o *TxGenerationContextModel) HasRealZcInsAssetIds() bool`
HasRealZcInsAssetIds returns a boolean if a field has been set.
### GetZcInputAmounts
`func (o *TxGenerationContextModel) GetZcInputAmounts() []int32`
GetZcInputAmounts returns the ZcInputAmounts field if non-nil, zero value otherwise.
### GetZcInputAmountsOk
`func (o *TxGenerationContextModel) GetZcInputAmountsOk() (*[]int32, bool)`
GetZcInputAmountsOk returns a tuple with the ZcInputAmounts field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetZcInputAmounts
`func (o *TxGenerationContextModel) SetZcInputAmounts(v []int32)`
SetZcInputAmounts sets ZcInputAmounts field to given value.
### HasZcInputAmounts
`func (o *TxGenerationContextModel) HasZcInputAmounts() bool`
HasZcInputAmounts returns a boolean if a field has been set.
### GetPseudoOutAmountCommitmentsSum
`func (o *TxGenerationContextModel) GetPseudoOutAmountCommitmentsSum() string`
GetPseudoOutAmountCommitmentsSum returns the PseudoOutAmountCommitmentsSum field if non-nil, zero value otherwise.
### GetPseudoOutAmountCommitmentsSumOk
`func (o *TxGenerationContextModel) GetPseudoOutAmountCommitmentsSumOk() (*string, bool)`
GetPseudoOutAmountCommitmentsSumOk returns a tuple with the PseudoOutAmountCommitmentsSum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPseudoOutAmountCommitmentsSum
`func (o *TxGenerationContextModel) SetPseudoOutAmountCommitmentsSum(v string)`
SetPseudoOutAmountCommitmentsSum sets PseudoOutAmountCommitmentsSum field to given value.
### HasPseudoOutAmountCommitmentsSum
`func (o *TxGenerationContextModel) HasPseudoOutAmountCommitmentsSum() bool`
HasPseudoOutAmountCommitmentsSum returns a boolean if a field has been set.
### GetPseudoOutAmountBlindingMasksSum
`func (o *TxGenerationContextModel) GetPseudoOutAmountBlindingMasksSum() string`
GetPseudoOutAmountBlindingMasksSum returns the PseudoOutAmountBlindingMasksSum field if non-nil, zero value otherwise.
### GetPseudoOutAmountBlindingMasksSumOk
`func (o *TxGenerationContextModel) GetPseudoOutAmountBlindingMasksSumOk() (*string, bool)`
GetPseudoOutAmountBlindingMasksSumOk returns a tuple with the PseudoOutAmountBlindingMasksSum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetPseudoOutAmountBlindingMasksSum
`func (o *TxGenerationContextModel) SetPseudoOutAmountBlindingMasksSum(v string)`
SetPseudoOutAmountBlindingMasksSum sets PseudoOutAmountBlindingMasksSum field to given value.
### HasPseudoOutAmountBlindingMasksSum
`func (o *TxGenerationContextModel) HasPseudoOutAmountBlindingMasksSum() bool`
HasPseudoOutAmountBlindingMasksSum returns a boolean if a field has been set.
### GetRealInAssetIdBlindingMaskXAmountSum
`func (o *TxGenerationContextModel) GetRealInAssetIdBlindingMaskXAmountSum() string`
GetRealInAssetIdBlindingMaskXAmountSum returns the RealInAssetIdBlindingMaskXAmountSum field if non-nil, zero value otherwise.
### GetRealInAssetIdBlindingMaskXAmountSumOk
`func (o *TxGenerationContextModel) GetRealInAssetIdBlindingMaskXAmountSumOk() (*string, bool)`
GetRealInAssetIdBlindingMaskXAmountSumOk returns a tuple with the RealInAssetIdBlindingMaskXAmountSum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRealInAssetIdBlindingMaskXAmountSum
`func (o *TxGenerationContextModel) SetRealInAssetIdBlindingMaskXAmountSum(v string)`
SetRealInAssetIdBlindingMaskXAmountSum sets RealInAssetIdBlindingMaskXAmountSum field to given value.
### HasRealInAssetIdBlindingMaskXAmountSum
`func (o *TxGenerationContextModel) HasRealInAssetIdBlindingMaskXAmountSum() bool`
HasRealInAssetIdBlindingMaskXAmountSum returns a boolean if a field has been set.
### GetAmountCommitmentsSum
`func (o *TxGenerationContextModel) GetAmountCommitmentsSum() string`
GetAmountCommitmentsSum returns the AmountCommitmentsSum field if non-nil, zero value otherwise.
### GetAmountCommitmentsSumOk
`func (o *TxGenerationContextModel) GetAmountCommitmentsSumOk() (*string, bool)`
GetAmountCommitmentsSumOk returns a tuple with the AmountCommitmentsSum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmountCommitmentsSum
`func (o *TxGenerationContextModel) SetAmountCommitmentsSum(v string)`
SetAmountCommitmentsSum sets AmountCommitmentsSum field to given value.
### HasAmountCommitmentsSum
`func (o *TxGenerationContextModel) HasAmountCommitmentsSum() bool`
HasAmountCommitmentsSum returns a boolean if a field has been set.
### GetAmountBlindingMasksSum
`func (o *TxGenerationContextModel) GetAmountBlindingMasksSum() string`
GetAmountBlindingMasksSum returns the AmountBlindingMasksSum field if non-nil, zero value otherwise.
### GetAmountBlindingMasksSumOk
`func (o *TxGenerationContextModel) GetAmountBlindingMasksSumOk() (*string, bool)`
GetAmountBlindingMasksSumOk returns a tuple with the AmountBlindingMasksSum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAmountBlindingMasksSum
`func (o *TxGenerationContextModel) SetAmountBlindingMasksSum(v string)`
SetAmountBlindingMasksSum sets AmountBlindingMasksSum field to given value.
### HasAmountBlindingMasksSum
`func (o *TxGenerationContextModel) HasAmountBlindingMasksSum() bool`
HasAmountBlindingMasksSum returns a boolean if a field has been set.
### GetAssetIdBlindingMaskXAmountSum
`func (o *TxGenerationContextModel) GetAssetIdBlindingMaskXAmountSum() string`
GetAssetIdBlindingMaskXAmountSum returns the AssetIdBlindingMaskXAmountSum field if non-nil, zero value otherwise.
### GetAssetIdBlindingMaskXAmountSumOk
`func (o *TxGenerationContextModel) GetAssetIdBlindingMaskXAmountSumOk() (*string, bool)`
GetAssetIdBlindingMaskXAmountSumOk returns a tuple with the AssetIdBlindingMaskXAmountSum field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAssetIdBlindingMaskXAmountSum
`func (o *TxGenerationContextModel) SetAssetIdBlindingMaskXAmountSum(v string)`
SetAssetIdBlindingMaskXAmountSum sets AssetIdBlindingMaskXAmountSum field to given value.
### HasAssetIdBlindingMaskXAmountSum
`func (o *TxGenerationContextModel) HasAssetIdBlindingMaskXAmountSum() bool`
HasAssetIdBlindingMaskXAmountSum returns a boolean if a field has been set.
### GetAoAssetId
`func (o *TxGenerationContextModel) GetAoAssetId() string`
GetAoAssetId returns the AoAssetId field if non-nil, zero value otherwise.
### GetAoAssetIdOk
`func (o *TxGenerationContextModel) GetAoAssetIdOk() (*string, bool)`
GetAoAssetIdOk returns a tuple with the AoAssetId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAoAssetId
`func (o *TxGenerationContextModel) SetAoAssetId(v string)`
SetAoAssetId sets AoAssetId field to given value.
### HasAoAssetId
`func (o *TxGenerationContextModel) HasAoAssetId() bool`
HasAoAssetId returns a boolean if a field has been set.
### GetAoAssetIdPt
`func (o *TxGenerationContextModel) GetAoAssetIdPt() string`
GetAoAssetIdPt returns the AoAssetIdPt field if non-nil, zero value otherwise.
### GetAoAssetIdPtOk
`func (o *TxGenerationContextModel) GetAoAssetIdPtOk() (*string, bool)`
GetAoAssetIdPtOk returns a tuple with the AoAssetIdPt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAoAssetIdPt
`func (o *TxGenerationContextModel) SetAoAssetIdPt(v string)`
SetAoAssetIdPt sets AoAssetIdPt field to given value.
### HasAoAssetIdPt
`func (o *TxGenerationContextModel) HasAoAssetIdPt() bool`
HasAoAssetIdPt returns a boolean if a field has been set.
### GetAoAmountCommitment
`func (o *TxGenerationContextModel) GetAoAmountCommitment() string`
GetAoAmountCommitment returns the AoAmountCommitment field if non-nil, zero value otherwise.
### GetAoAmountCommitmentOk
`func (o *TxGenerationContextModel) GetAoAmountCommitmentOk() (*string, bool)`
GetAoAmountCommitmentOk returns a tuple with the AoAmountCommitment field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAoAmountCommitment
`func (o *TxGenerationContextModel) SetAoAmountCommitment(v string)`
SetAoAmountCommitment sets AoAmountCommitment field to given value.
### HasAoAmountCommitment
`func (o *TxGenerationContextModel) HasAoAmountCommitment() bool`
HasAoAmountCommitment returns a boolean if a field has been set.
### GetAoAmountBlindingMask
`func (o *TxGenerationContextModel) GetAoAmountBlindingMask() string`
GetAoAmountBlindingMask returns the AoAmountBlindingMask field if non-nil, zero value otherwise.
### GetAoAmountBlindingMaskOk
`func (o *TxGenerationContextModel) GetAoAmountBlindingMaskOk() (*string, bool)`
GetAoAmountBlindingMaskOk returns a tuple with the AoAmountBlindingMask field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAoAmountBlindingMask
`func (o *TxGenerationContextModel) SetAoAmountBlindingMask(v string)`
SetAoAmountBlindingMask sets AoAmountBlindingMask field to given value.
### HasAoAmountBlindingMask
`func (o *TxGenerationContextModel) HasAoAmountBlindingMask() bool`
HasAoAmountBlindingMask returns a boolean if a field has been set.
### GetAoCommitmentInOutputs
`func (o *TxGenerationContextModel) GetAoCommitmentInOutputs() bool`
GetAoCommitmentInOutputs returns the AoCommitmentInOutputs field if non-nil, zero value otherwise.
### GetAoCommitmentInOutputsOk
`func (o *TxGenerationContextModel) GetAoCommitmentInOutputsOk() (*bool, bool)`
GetAoCommitmentInOutputsOk returns a tuple with the AoCommitmentInOutputs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetAoCommitmentInOutputs
`func (o *TxGenerationContextModel) SetAoCommitmentInOutputs(v bool)`
SetAoCommitmentInOutputs sets AoCommitmentInOutputs field to given value.
### HasAoCommitmentInOutputs
`func (o *TxGenerationContextModel) HasAoCommitmentInOutputs() bool`
HasAoCommitmentInOutputs returns a boolean if a field has been set.
### GetTxKeyPub
`func (o *TxGenerationContextModel) GetTxKeyPub() string`
GetTxKeyPub returns the TxKeyPub field if non-nil, zero value otherwise.
### GetTxKeyPubOk
`func (o *TxGenerationContextModel) GetTxKeyPubOk() (*string, bool)`
GetTxKeyPubOk returns a tuple with the TxKeyPub field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxKeyPub
`func (o *TxGenerationContextModel) SetTxKeyPub(v string)`
SetTxKeyPub sets TxKeyPub field to given value.
### HasTxKeyPub
`func (o *TxGenerationContextModel) HasTxKeyPub() bool`
HasTxKeyPub returns a boolean if a field has been set.
### GetTxKeySec
`func (o *TxGenerationContextModel) GetTxKeySec() string`
GetTxKeySec returns the TxKeySec field if non-nil, zero value otherwise.
### GetTxKeySecOk
`func (o *TxGenerationContextModel) GetTxKeySecOk() (*string, bool)`
GetTxKeySecOk returns a tuple with the TxKeySec field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxKeySec
`func (o *TxGenerationContextModel) SetTxKeySec(v string)`
SetTxKeySec sets TxKeySec field to given value.
### HasTxKeySec
`func (o *TxGenerationContextModel) HasTxKeySec() bool`
HasTxKeySec returns a boolean if a field has been set.
### GetTxPubKeyP
`func (o *TxGenerationContextModel) GetTxPubKeyP() string`
GetTxPubKeyP returns the TxPubKeyP field if non-nil, zero value otherwise.
### GetTxPubKeyPOk
`func (o *TxGenerationContextModel) GetTxPubKeyPOk() (*string, bool)`
GetTxPubKeyPOk returns a tuple with the TxPubKeyP field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxPubKeyP
`func (o *TxGenerationContextModel) SetTxPubKeyP(v string)`
SetTxPubKeyP sets TxPubKeyP field to given value.
### HasTxPubKeyP
`func (o *TxGenerationContextModel) HasTxPubKeyP() bool`
HasTxPubKeyP returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,316 @@
# TxPoolPerformanceModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TxProcessingTime** | Pointer to **int32** | | [optional]
**CheckInputsTypesSupportedTime** | Pointer to **int32** | | [optional]
**ExpirationValidateTime** | Pointer to **int32** | | [optional]
**ValidateAmountTime** | Pointer to **int32** | | [optional]
**ValidateAliasTime** | Pointer to **int32** | | [optional]
**CheckKeyimagesWsMsTime** | Pointer to **int32** | | [optional]
**CheckInputsTime** | Pointer to **int32** | | [optional]
**BeginTxTime** | Pointer to **int32** | | [optional]
**UpdateDbTime** | Pointer to **int32** | | [optional]
**DbCommitTime** | Pointer to **int32** | | [optional]
**CheckPostHf4Balance** | Pointer to **int32** | | [optional]
## Methods
### NewTxPoolPerformanceModel
`func NewTxPoolPerformanceModel() *TxPoolPerformanceModel`
NewTxPoolPerformanceModel instantiates a new TxPoolPerformanceModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTxPoolPerformanceModelWithDefaults
`func NewTxPoolPerformanceModelWithDefaults() *TxPoolPerformanceModel`
NewTxPoolPerformanceModelWithDefaults instantiates a new TxPoolPerformanceModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetTxProcessingTime
`func (o *TxPoolPerformanceModel) GetTxProcessingTime() int32`
GetTxProcessingTime returns the TxProcessingTime field if non-nil, zero value otherwise.
### GetTxProcessingTimeOk
`func (o *TxPoolPerformanceModel) GetTxProcessingTimeOk() (*int32, bool)`
GetTxProcessingTimeOk returns a tuple with the TxProcessingTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxProcessingTime
`func (o *TxPoolPerformanceModel) SetTxProcessingTime(v int32)`
SetTxProcessingTime sets TxProcessingTime field to given value.
### HasTxProcessingTime
`func (o *TxPoolPerformanceModel) HasTxProcessingTime() bool`
HasTxProcessingTime returns a boolean if a field has been set.
### GetCheckInputsTypesSupportedTime
`func (o *TxPoolPerformanceModel) GetCheckInputsTypesSupportedTime() int32`
GetCheckInputsTypesSupportedTime returns the CheckInputsTypesSupportedTime field if non-nil, zero value otherwise.
### GetCheckInputsTypesSupportedTimeOk
`func (o *TxPoolPerformanceModel) GetCheckInputsTypesSupportedTimeOk() (*int32, bool)`
GetCheckInputsTypesSupportedTimeOk returns a tuple with the CheckInputsTypesSupportedTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCheckInputsTypesSupportedTime
`func (o *TxPoolPerformanceModel) SetCheckInputsTypesSupportedTime(v int32)`
SetCheckInputsTypesSupportedTime sets CheckInputsTypesSupportedTime field to given value.
### HasCheckInputsTypesSupportedTime
`func (o *TxPoolPerformanceModel) HasCheckInputsTypesSupportedTime() bool`
HasCheckInputsTypesSupportedTime returns a boolean if a field has been set.
### GetExpirationValidateTime
`func (o *TxPoolPerformanceModel) GetExpirationValidateTime() int32`
GetExpirationValidateTime returns the ExpirationValidateTime field if non-nil, zero value otherwise.
### GetExpirationValidateTimeOk
`func (o *TxPoolPerformanceModel) GetExpirationValidateTimeOk() (*int32, bool)`
GetExpirationValidateTimeOk returns a tuple with the ExpirationValidateTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetExpirationValidateTime
`func (o *TxPoolPerformanceModel) SetExpirationValidateTime(v int32)`
SetExpirationValidateTime sets ExpirationValidateTime field to given value.
### HasExpirationValidateTime
`func (o *TxPoolPerformanceModel) HasExpirationValidateTime() bool`
HasExpirationValidateTime returns a boolean if a field has been set.
### GetValidateAmountTime
`func (o *TxPoolPerformanceModel) GetValidateAmountTime() int32`
GetValidateAmountTime returns the ValidateAmountTime field if non-nil, zero value otherwise.
### GetValidateAmountTimeOk
`func (o *TxPoolPerformanceModel) GetValidateAmountTimeOk() (*int32, bool)`
GetValidateAmountTimeOk returns a tuple with the ValidateAmountTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidateAmountTime
`func (o *TxPoolPerformanceModel) SetValidateAmountTime(v int32)`
SetValidateAmountTime sets ValidateAmountTime field to given value.
### HasValidateAmountTime
`func (o *TxPoolPerformanceModel) HasValidateAmountTime() bool`
HasValidateAmountTime returns a boolean if a field has been set.
### GetValidateAliasTime
`func (o *TxPoolPerformanceModel) GetValidateAliasTime() int32`
GetValidateAliasTime returns the ValidateAliasTime field if non-nil, zero value otherwise.
### GetValidateAliasTimeOk
`func (o *TxPoolPerformanceModel) GetValidateAliasTimeOk() (*int32, bool)`
GetValidateAliasTimeOk returns a tuple with the ValidateAliasTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetValidateAliasTime
`func (o *TxPoolPerformanceModel) SetValidateAliasTime(v int32)`
SetValidateAliasTime sets ValidateAliasTime field to given value.
### HasValidateAliasTime
`func (o *TxPoolPerformanceModel) HasValidateAliasTime() bool`
HasValidateAliasTime returns a boolean if a field has been set.
### GetCheckKeyimagesWsMsTime
`func (o *TxPoolPerformanceModel) GetCheckKeyimagesWsMsTime() int32`
GetCheckKeyimagesWsMsTime returns the CheckKeyimagesWsMsTime field if non-nil, zero value otherwise.
### GetCheckKeyimagesWsMsTimeOk
`func (o *TxPoolPerformanceModel) GetCheckKeyimagesWsMsTimeOk() (*int32, bool)`
GetCheckKeyimagesWsMsTimeOk returns a tuple with the CheckKeyimagesWsMsTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCheckKeyimagesWsMsTime
`func (o *TxPoolPerformanceModel) SetCheckKeyimagesWsMsTime(v int32)`
SetCheckKeyimagesWsMsTime sets CheckKeyimagesWsMsTime field to given value.
### HasCheckKeyimagesWsMsTime
`func (o *TxPoolPerformanceModel) HasCheckKeyimagesWsMsTime() bool`
HasCheckKeyimagesWsMsTime returns a boolean if a field has been set.
### GetCheckInputsTime
`func (o *TxPoolPerformanceModel) GetCheckInputsTime() int32`
GetCheckInputsTime returns the CheckInputsTime field if non-nil, zero value otherwise.
### GetCheckInputsTimeOk
`func (o *TxPoolPerformanceModel) GetCheckInputsTimeOk() (*int32, bool)`
GetCheckInputsTimeOk returns a tuple with the CheckInputsTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCheckInputsTime
`func (o *TxPoolPerformanceModel) SetCheckInputsTime(v int32)`
SetCheckInputsTime sets CheckInputsTime field to given value.
### HasCheckInputsTime
`func (o *TxPoolPerformanceModel) HasCheckInputsTime() bool`
HasCheckInputsTime returns a boolean if a field has been set.
### GetBeginTxTime
`func (o *TxPoolPerformanceModel) GetBeginTxTime() int32`
GetBeginTxTime returns the BeginTxTime field if non-nil, zero value otherwise.
### GetBeginTxTimeOk
`func (o *TxPoolPerformanceModel) GetBeginTxTimeOk() (*int32, bool)`
GetBeginTxTimeOk returns a tuple with the BeginTxTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetBeginTxTime
`func (o *TxPoolPerformanceModel) SetBeginTxTime(v int32)`
SetBeginTxTime sets BeginTxTime field to given value.
### HasBeginTxTime
`func (o *TxPoolPerformanceModel) HasBeginTxTime() bool`
HasBeginTxTime returns a boolean if a field has been set.
### GetUpdateDbTime
`func (o *TxPoolPerformanceModel) GetUpdateDbTime() int32`
GetUpdateDbTime returns the UpdateDbTime field if non-nil, zero value otherwise.
### GetUpdateDbTimeOk
`func (o *TxPoolPerformanceModel) GetUpdateDbTimeOk() (*int32, bool)`
GetUpdateDbTimeOk returns a tuple with the UpdateDbTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetUpdateDbTime
`func (o *TxPoolPerformanceModel) SetUpdateDbTime(v int32)`
SetUpdateDbTime sets UpdateDbTime field to given value.
### HasUpdateDbTime
`func (o *TxPoolPerformanceModel) HasUpdateDbTime() bool`
HasUpdateDbTime returns a boolean if a field has been set.
### GetDbCommitTime
`func (o *TxPoolPerformanceModel) GetDbCommitTime() int32`
GetDbCommitTime returns the DbCommitTime field if non-nil, zero value otherwise.
### GetDbCommitTimeOk
`func (o *TxPoolPerformanceModel) GetDbCommitTimeOk() (*int32, bool)`
GetDbCommitTimeOk returns a tuple with the DbCommitTime field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetDbCommitTime
`func (o *TxPoolPerformanceModel) SetDbCommitTime(v int32)`
SetDbCommitTime sets DbCommitTime field to given value.
### HasDbCommitTime
`func (o *TxPoolPerformanceModel) HasDbCommitTime() bool`
HasDbCommitTime returns a boolean if a field has been set.
### GetCheckPostHf4Balance
`func (o *TxPoolPerformanceModel) GetCheckPostHf4Balance() int32`
GetCheckPostHf4Balance returns the CheckPostHf4Balance field if non-nil, zero value otherwise.
### GetCheckPostHf4BalanceOk
`func (o *TxPoolPerformanceModel) GetCheckPostHf4BalanceOk() (*int32, bool)`
GetCheckPostHf4BalanceOk returns a tuple with the CheckPostHf4Balance field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetCheckPostHf4Balance
`func (o *TxPoolPerformanceModel) SetCheckPostHf4Balance(v int32)`
SetCheckPostHf4Balance sets CheckPostHf4Balance field to given value.
### HasCheckPostHf4Balance
`func (o *TxPoolPerformanceModel) HasCheckPostHf4Balance() bool`
HasCheckPostHf4Balance returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View file

@ -0,0 +1,680 @@
# TxProcessingPerformanceModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TxCheckInputs** | Pointer to **int32** | | [optional]
**TxAddOneTx** | Pointer to **int32** | | [optional]
**TxProcessExtra** | Pointer to **int32** | | [optional]
**TxProcessAttachment** | Pointer to **int32** | | [optional]
**TxProcessInputs** | Pointer to **int32** | | [optional]
**TxPushGlobalIndex** | Pointer to **int32** | | [optional]
**TxCheckExist** | Pointer to **int32** | | [optional]
**TxPrintLog** | Pointer to **int32** | | [optional]
**TxPrapareAppend** | Pointer to **int32** | | [optional]
**TxAppend** | Pointer to **int32** | | [optional]
**TxAppendRlWait** | Pointer to **int32** | | [optional]
**TxAppendIsExpired** | Pointer to **int32** | | [optional]
**TxStoreDb** | Pointer to **int32** | | [optional]
**TxCheckInputsPrefixHash** | Pointer to **int32** | | [optional]
**TxCheckInputsAttachmentCheck** | Pointer to **int32** | | [optional]
**TxCheckInputsLoop** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopKimageCheck** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopChInValSig** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopScanOutputkeysGetItemSize** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopScanOutputkeysRelativeToAbsolute** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopScanOutputkeysLoop** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopScanOutputkeysLoopGetSubitem** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopScanOutputkeysLoopFindTx** | Pointer to **int32** | | [optional]
**TxCheckInputsLoopScanOutputkeysLoopHandleOutput** | Pointer to **int32** | | [optional]
**TxMixinCount** | Pointer to **int32** | | [optional]
## Methods
### NewTxProcessingPerformanceModel
`func NewTxProcessingPerformanceModel() *TxProcessingPerformanceModel`
NewTxProcessingPerformanceModel instantiates a new TxProcessingPerformanceModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewTxProcessingPerformanceModelWithDefaults
`func NewTxProcessingPerformanceModelWithDefaults() *TxProcessingPerformanceModel`
NewTxProcessingPerformanceModelWithDefaults instantiates a new TxProcessingPerformanceModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetTxCheckInputs
`func (o *TxProcessingPerformanceModel) GetTxCheckInputs() int32`
GetTxCheckInputs returns the TxCheckInputs field if non-nil, zero value otherwise.
### GetTxCheckInputsOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsOk() (*int32, bool)`
GetTxCheckInputsOk returns a tuple with the TxCheckInputs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputs
`func (o *TxProcessingPerformanceModel) SetTxCheckInputs(v int32)`
SetTxCheckInputs sets TxCheckInputs field to given value.
### HasTxCheckInputs
`func (o *TxProcessingPerformanceModel) HasTxCheckInputs() bool`
HasTxCheckInputs returns a boolean if a field has been set.
### GetTxAddOneTx
`func (o *TxProcessingPerformanceModel) GetTxAddOneTx() int32`
GetTxAddOneTx returns the TxAddOneTx field if non-nil, zero value otherwise.
### GetTxAddOneTxOk
`func (o *TxProcessingPerformanceModel) GetTxAddOneTxOk() (*int32, bool)`
GetTxAddOneTxOk returns a tuple with the TxAddOneTx field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxAddOneTx
`func (o *TxProcessingPerformanceModel) SetTxAddOneTx(v int32)`
SetTxAddOneTx sets TxAddOneTx field to given value.
### HasTxAddOneTx
`func (o *TxProcessingPerformanceModel) HasTxAddOneTx() bool`
HasTxAddOneTx returns a boolean if a field has been set.
### GetTxProcessExtra
`func (o *TxProcessingPerformanceModel) GetTxProcessExtra() int32`
GetTxProcessExtra returns the TxProcessExtra field if non-nil, zero value otherwise.
### GetTxProcessExtraOk
`func (o *TxProcessingPerformanceModel) GetTxProcessExtraOk() (*int32, bool)`
GetTxProcessExtraOk returns a tuple with the TxProcessExtra field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxProcessExtra
`func (o *TxProcessingPerformanceModel) SetTxProcessExtra(v int32)`
SetTxProcessExtra sets TxProcessExtra field to given value.
### HasTxProcessExtra
`func (o *TxProcessingPerformanceModel) HasTxProcessExtra() bool`
HasTxProcessExtra returns a boolean if a field has been set.
### GetTxProcessAttachment
`func (o *TxProcessingPerformanceModel) GetTxProcessAttachment() int32`
GetTxProcessAttachment returns the TxProcessAttachment field if non-nil, zero value otherwise.
### GetTxProcessAttachmentOk
`func (o *TxProcessingPerformanceModel) GetTxProcessAttachmentOk() (*int32, bool)`
GetTxProcessAttachmentOk returns a tuple with the TxProcessAttachment field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxProcessAttachment
`func (o *TxProcessingPerformanceModel) SetTxProcessAttachment(v int32)`
SetTxProcessAttachment sets TxProcessAttachment field to given value.
### HasTxProcessAttachment
`func (o *TxProcessingPerformanceModel) HasTxProcessAttachment() bool`
HasTxProcessAttachment returns a boolean if a field has been set.
### GetTxProcessInputs
`func (o *TxProcessingPerformanceModel) GetTxProcessInputs() int32`
GetTxProcessInputs returns the TxProcessInputs field if non-nil, zero value otherwise.
### GetTxProcessInputsOk
`func (o *TxProcessingPerformanceModel) GetTxProcessInputsOk() (*int32, bool)`
GetTxProcessInputsOk returns a tuple with the TxProcessInputs field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxProcessInputs
`func (o *TxProcessingPerformanceModel) SetTxProcessInputs(v int32)`
SetTxProcessInputs sets TxProcessInputs field to given value.
### HasTxProcessInputs
`func (o *TxProcessingPerformanceModel) HasTxProcessInputs() bool`
HasTxProcessInputs returns a boolean if a field has been set.
### GetTxPushGlobalIndex
`func (o *TxProcessingPerformanceModel) GetTxPushGlobalIndex() int32`
GetTxPushGlobalIndex returns the TxPushGlobalIndex field if non-nil, zero value otherwise.
### GetTxPushGlobalIndexOk
`func (o *TxProcessingPerformanceModel) GetTxPushGlobalIndexOk() (*int32, bool)`
GetTxPushGlobalIndexOk returns a tuple with the TxPushGlobalIndex field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxPushGlobalIndex
`func (o *TxProcessingPerformanceModel) SetTxPushGlobalIndex(v int32)`
SetTxPushGlobalIndex sets TxPushGlobalIndex field to given value.
### HasTxPushGlobalIndex
`func (o *TxProcessingPerformanceModel) HasTxPushGlobalIndex() bool`
HasTxPushGlobalIndex returns a boolean if a field has been set.
### GetTxCheckExist
`func (o *TxProcessingPerformanceModel) GetTxCheckExist() int32`
GetTxCheckExist returns the TxCheckExist field if non-nil, zero value otherwise.
### GetTxCheckExistOk
`func (o *TxProcessingPerformanceModel) GetTxCheckExistOk() (*int32, bool)`
GetTxCheckExistOk returns a tuple with the TxCheckExist field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckExist
`func (o *TxProcessingPerformanceModel) SetTxCheckExist(v int32)`
SetTxCheckExist sets TxCheckExist field to given value.
### HasTxCheckExist
`func (o *TxProcessingPerformanceModel) HasTxCheckExist() bool`
HasTxCheckExist returns a boolean if a field has been set.
### GetTxPrintLog
`func (o *TxProcessingPerformanceModel) GetTxPrintLog() int32`
GetTxPrintLog returns the TxPrintLog field if non-nil, zero value otherwise.
### GetTxPrintLogOk
`func (o *TxProcessingPerformanceModel) GetTxPrintLogOk() (*int32, bool)`
GetTxPrintLogOk returns a tuple with the TxPrintLog field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxPrintLog
`func (o *TxProcessingPerformanceModel) SetTxPrintLog(v int32)`
SetTxPrintLog sets TxPrintLog field to given value.
### HasTxPrintLog
`func (o *TxProcessingPerformanceModel) HasTxPrintLog() bool`
HasTxPrintLog returns a boolean if a field has been set.
### GetTxPrapareAppend
`func (o *TxProcessingPerformanceModel) GetTxPrapareAppend() int32`
GetTxPrapareAppend returns the TxPrapareAppend field if non-nil, zero value otherwise.
### GetTxPrapareAppendOk
`func (o *TxProcessingPerformanceModel) GetTxPrapareAppendOk() (*int32, bool)`
GetTxPrapareAppendOk returns a tuple with the TxPrapareAppend field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxPrapareAppend
`func (o *TxProcessingPerformanceModel) SetTxPrapareAppend(v int32)`
SetTxPrapareAppend sets TxPrapareAppend field to given value.
### HasTxPrapareAppend
`func (o *TxProcessingPerformanceModel) HasTxPrapareAppend() bool`
HasTxPrapareAppend returns a boolean if a field has been set.
### GetTxAppend
`func (o *TxProcessingPerformanceModel) GetTxAppend() int32`
GetTxAppend returns the TxAppend field if non-nil, zero value otherwise.
### GetTxAppendOk
`func (o *TxProcessingPerformanceModel) GetTxAppendOk() (*int32, bool)`
GetTxAppendOk returns a tuple with the TxAppend field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxAppend
`func (o *TxProcessingPerformanceModel) SetTxAppend(v int32)`
SetTxAppend sets TxAppend field to given value.
### HasTxAppend
`func (o *TxProcessingPerformanceModel) HasTxAppend() bool`
HasTxAppend returns a boolean if a field has been set.
### GetTxAppendRlWait
`func (o *TxProcessingPerformanceModel) GetTxAppendRlWait() int32`
GetTxAppendRlWait returns the TxAppendRlWait field if non-nil, zero value otherwise.
### GetTxAppendRlWaitOk
`func (o *TxProcessingPerformanceModel) GetTxAppendRlWaitOk() (*int32, bool)`
GetTxAppendRlWaitOk returns a tuple with the TxAppendRlWait field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxAppendRlWait
`func (o *TxProcessingPerformanceModel) SetTxAppendRlWait(v int32)`
SetTxAppendRlWait sets TxAppendRlWait field to given value.
### HasTxAppendRlWait
`func (o *TxProcessingPerformanceModel) HasTxAppendRlWait() bool`
HasTxAppendRlWait returns a boolean if a field has been set.
### GetTxAppendIsExpired
`func (o *TxProcessingPerformanceModel) GetTxAppendIsExpired() int32`
GetTxAppendIsExpired returns the TxAppendIsExpired field if non-nil, zero value otherwise.
### GetTxAppendIsExpiredOk
`func (o *TxProcessingPerformanceModel) GetTxAppendIsExpiredOk() (*int32, bool)`
GetTxAppendIsExpiredOk returns a tuple with the TxAppendIsExpired field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxAppendIsExpired
`func (o *TxProcessingPerformanceModel) SetTxAppendIsExpired(v int32)`
SetTxAppendIsExpired sets TxAppendIsExpired field to given value.
### HasTxAppendIsExpired
`func (o *TxProcessingPerformanceModel) HasTxAppendIsExpired() bool`
HasTxAppendIsExpired returns a boolean if a field has been set.
### GetTxStoreDb
`func (o *TxProcessingPerformanceModel) GetTxStoreDb() int32`
GetTxStoreDb returns the TxStoreDb field if non-nil, zero value otherwise.
### GetTxStoreDbOk
`func (o *TxProcessingPerformanceModel) GetTxStoreDbOk() (*int32, bool)`
GetTxStoreDbOk returns a tuple with the TxStoreDb field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxStoreDb
`func (o *TxProcessingPerformanceModel) SetTxStoreDb(v int32)`
SetTxStoreDb sets TxStoreDb field to given value.
### HasTxStoreDb
`func (o *TxProcessingPerformanceModel) HasTxStoreDb() bool`
HasTxStoreDb returns a boolean if a field has been set.
### GetTxCheckInputsPrefixHash
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsPrefixHash() int32`
GetTxCheckInputsPrefixHash returns the TxCheckInputsPrefixHash field if non-nil, zero value otherwise.
### GetTxCheckInputsPrefixHashOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsPrefixHashOk() (*int32, bool)`
GetTxCheckInputsPrefixHashOk returns a tuple with the TxCheckInputsPrefixHash field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsPrefixHash
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsPrefixHash(v int32)`
SetTxCheckInputsPrefixHash sets TxCheckInputsPrefixHash field to given value.
### HasTxCheckInputsPrefixHash
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsPrefixHash() bool`
HasTxCheckInputsPrefixHash returns a boolean if a field has been set.
### GetTxCheckInputsAttachmentCheck
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsAttachmentCheck() int32`
GetTxCheckInputsAttachmentCheck returns the TxCheckInputsAttachmentCheck field if non-nil, zero value otherwise.
### GetTxCheckInputsAttachmentCheckOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsAttachmentCheckOk() (*int32, bool)`
GetTxCheckInputsAttachmentCheckOk returns a tuple with the TxCheckInputsAttachmentCheck field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsAttachmentCheck
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsAttachmentCheck(v int32)`
SetTxCheckInputsAttachmentCheck sets TxCheckInputsAttachmentCheck field to given value.
### HasTxCheckInputsAttachmentCheck
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsAttachmentCheck() bool`
HasTxCheckInputsAttachmentCheck returns a boolean if a field has been set.
### GetTxCheckInputsLoop
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoop() int32`
GetTxCheckInputsLoop returns the TxCheckInputsLoop field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopOk() (*int32, bool)`
GetTxCheckInputsLoopOk returns a tuple with the TxCheckInputsLoop field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoop
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoop(v int32)`
SetTxCheckInputsLoop sets TxCheckInputsLoop field to given value.
### HasTxCheckInputsLoop
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoop() bool`
HasTxCheckInputsLoop returns a boolean if a field has been set.
### GetTxCheckInputsLoopKimageCheck
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopKimageCheck() int32`
GetTxCheckInputsLoopKimageCheck returns the TxCheckInputsLoopKimageCheck field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopKimageCheckOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopKimageCheckOk() (*int32, bool)`
GetTxCheckInputsLoopKimageCheckOk returns a tuple with the TxCheckInputsLoopKimageCheck field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopKimageCheck
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopKimageCheck(v int32)`
SetTxCheckInputsLoopKimageCheck sets TxCheckInputsLoopKimageCheck field to given value.
### HasTxCheckInputsLoopKimageCheck
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopKimageCheck() bool`
HasTxCheckInputsLoopKimageCheck returns a boolean if a field has been set.
### GetTxCheckInputsLoopChInValSig
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopChInValSig() int32`
GetTxCheckInputsLoopChInValSig returns the TxCheckInputsLoopChInValSig field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopChInValSigOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopChInValSigOk() (*int32, bool)`
GetTxCheckInputsLoopChInValSigOk returns a tuple with the TxCheckInputsLoopChInValSig field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopChInValSig
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopChInValSig(v int32)`
SetTxCheckInputsLoopChInValSig sets TxCheckInputsLoopChInValSig field to given value.
### HasTxCheckInputsLoopChInValSig
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopChInValSig() bool`
HasTxCheckInputsLoopChInValSig returns a boolean if a field has been set.
### GetTxCheckInputsLoopScanOutputkeysGetItemSize
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysGetItemSize() int32`
GetTxCheckInputsLoopScanOutputkeysGetItemSize returns the TxCheckInputsLoopScanOutputkeysGetItemSize field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopScanOutputkeysGetItemSizeOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysGetItemSizeOk() (*int32, bool)`
GetTxCheckInputsLoopScanOutputkeysGetItemSizeOk returns a tuple with the TxCheckInputsLoopScanOutputkeysGetItemSize field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopScanOutputkeysGetItemSize
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysGetItemSize(v int32)`
SetTxCheckInputsLoopScanOutputkeysGetItemSize sets TxCheckInputsLoopScanOutputkeysGetItemSize field to given value.
### HasTxCheckInputsLoopScanOutputkeysGetItemSize
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysGetItemSize() bool`
HasTxCheckInputsLoopScanOutputkeysGetItemSize returns a boolean if a field has been set.
### GetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute() int32`
GetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute returns the TxCheckInputsLoopScanOutputkeysRelativeToAbsolute field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopScanOutputkeysRelativeToAbsoluteOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysRelativeToAbsoluteOk() (*int32, bool)`
GetTxCheckInputsLoopScanOutputkeysRelativeToAbsoluteOk returns a tuple with the TxCheckInputsLoopScanOutputkeysRelativeToAbsolute field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute(v int32)`
SetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute sets TxCheckInputsLoopScanOutputkeysRelativeToAbsolute field to given value.
### HasTxCheckInputsLoopScanOutputkeysRelativeToAbsolute
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysRelativeToAbsolute() bool`
HasTxCheckInputsLoopScanOutputkeysRelativeToAbsolute returns a boolean if a field has been set.
### GetTxCheckInputsLoopScanOutputkeysLoop
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoop() int32`
GetTxCheckInputsLoopScanOutputkeysLoop returns the TxCheckInputsLoopScanOutputkeysLoop field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopScanOutputkeysLoopOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopOk() (*int32, bool)`
GetTxCheckInputsLoopScanOutputkeysLoopOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoop field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopScanOutputkeysLoop
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoop(v int32)`
SetTxCheckInputsLoopScanOutputkeysLoop sets TxCheckInputsLoopScanOutputkeysLoop field to given value.
### HasTxCheckInputsLoopScanOutputkeysLoop
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoop() bool`
HasTxCheckInputsLoopScanOutputkeysLoop returns a boolean if a field has been set.
### GetTxCheckInputsLoopScanOutputkeysLoopGetSubitem
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopGetSubitem() int32`
GetTxCheckInputsLoopScanOutputkeysLoopGetSubitem returns the TxCheckInputsLoopScanOutputkeysLoopGetSubitem field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopScanOutputkeysLoopGetSubitemOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopGetSubitemOk() (*int32, bool)`
GetTxCheckInputsLoopScanOutputkeysLoopGetSubitemOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoopGetSubitem field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopScanOutputkeysLoopGetSubitem
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoopGetSubitem(v int32)`
SetTxCheckInputsLoopScanOutputkeysLoopGetSubitem sets TxCheckInputsLoopScanOutputkeysLoopGetSubitem field to given value.
### HasTxCheckInputsLoopScanOutputkeysLoopGetSubitem
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoopGetSubitem() bool`
HasTxCheckInputsLoopScanOutputkeysLoopGetSubitem returns a boolean if a field has been set.
### GetTxCheckInputsLoopScanOutputkeysLoopFindTx
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopFindTx() int32`
GetTxCheckInputsLoopScanOutputkeysLoopFindTx returns the TxCheckInputsLoopScanOutputkeysLoopFindTx field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopScanOutputkeysLoopFindTxOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopFindTxOk() (*int32, bool)`
GetTxCheckInputsLoopScanOutputkeysLoopFindTxOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoopFindTx field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopScanOutputkeysLoopFindTx
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoopFindTx(v int32)`
SetTxCheckInputsLoopScanOutputkeysLoopFindTx sets TxCheckInputsLoopScanOutputkeysLoopFindTx field to given value.
### HasTxCheckInputsLoopScanOutputkeysLoopFindTx
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoopFindTx() bool`
HasTxCheckInputsLoopScanOutputkeysLoopFindTx returns a boolean if a field has been set.
### GetTxCheckInputsLoopScanOutputkeysLoopHandleOutput
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopHandleOutput() int32`
GetTxCheckInputsLoopScanOutputkeysLoopHandleOutput returns the TxCheckInputsLoopScanOutputkeysLoopHandleOutput field if non-nil, zero value otherwise.
### GetTxCheckInputsLoopScanOutputkeysLoopHandleOutputOk
`func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopHandleOutputOk() (*int32, bool)`
GetTxCheckInputsLoopScanOutputkeysLoopHandleOutputOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoopHandleOutput field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxCheckInputsLoopScanOutputkeysLoopHandleOutput
`func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoopHandleOutput(v int32)`
SetTxCheckInputsLoopScanOutputkeysLoopHandleOutput sets TxCheckInputsLoopScanOutputkeysLoopHandleOutput field to given value.
### HasTxCheckInputsLoopScanOutputkeysLoopHandleOutput
`func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoopHandleOutput() bool`
HasTxCheckInputsLoopScanOutputkeysLoopHandleOutput returns a boolean if a field has been set.
### GetTxMixinCount
`func (o *TxProcessingPerformanceModel) GetTxMixinCount() int32`
GetTxMixinCount returns the TxMixinCount field if non-nil, zero value otherwise.
### GetTxMixinCountOk
`func (o *TxProcessingPerformanceModel) GetTxMixinCountOk() (*int32, bool)`
GetTxMixinCountOk returns a tuple with the TxMixinCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetTxMixinCount
`func (o *TxProcessingPerformanceModel) SetTxMixinCount(v int32)`
SetTxMixinCount sets TxMixinCount field to given value.
### HasTxMixinCount
`func (o *TxProcessingPerformanceModel) HasTxMixinCount() bool`
HasTxMixinCount returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

160
utils/sdk/client/go/docs/VersionModel.md generated Normal file
View file

@ -0,0 +1,160 @@
# VersionModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Version** | Pointer to **string** | | [optional]
**VersionLong** | Pointer to **string** | | [optional]
**Major** | Pointer to **string** | | [optional]
**Minor** | Pointer to **string** | | [optional]
**Revision** | Pointer to **string** | | [optional]
## Methods
### NewVersionModel
`func NewVersionModel() *VersionModel`
NewVersionModel instantiates a new VersionModel object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewVersionModelWithDefaults
`func NewVersionModelWithDefaults() *VersionModel`
NewVersionModelWithDefaults instantiates a new VersionModel object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetVersion
`func (o *VersionModel) GetVersion() string`
GetVersion returns the Version field if non-nil, zero value otherwise.
### GetVersionOk
`func (o *VersionModel) GetVersionOk() (*string, bool)`
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVersion
`func (o *VersionModel) SetVersion(v string)`
SetVersion sets Version field to given value.
### HasVersion
`func (o *VersionModel) HasVersion() bool`
HasVersion returns a boolean if a field has been set.
### GetVersionLong
`func (o *VersionModel) GetVersionLong() string`
GetVersionLong returns the VersionLong field if non-nil, zero value otherwise.
### GetVersionLongOk
`func (o *VersionModel) GetVersionLongOk() (*string, bool)`
GetVersionLongOk returns a tuple with the VersionLong field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVersionLong
`func (o *VersionModel) SetVersionLong(v string)`
SetVersionLong sets VersionLong field to given value.
### HasVersionLong
`func (o *VersionModel) HasVersionLong() bool`
HasVersionLong returns a boolean if a field has been set.
### GetMajor
`func (o *VersionModel) GetMajor() string`
GetMajor returns the Major field if non-nil, zero value otherwise.
### GetMajorOk
`func (o *VersionModel) GetMajorOk() (*string, bool)`
GetMajorOk returns a tuple with the Major field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMajor
`func (o *VersionModel) SetMajor(v string)`
SetMajor sets Major field to given value.
### HasMajor
`func (o *VersionModel) HasMajor() bool`
HasMajor returns a boolean if a field has been set.
### GetMinor
`func (o *VersionModel) GetMinor() string`
GetMinor returns the Minor field if non-nil, zero value otherwise.
### GetMinorOk
`func (o *VersionModel) GetMinorOk() (*string, bool)`
GetMinorOk returns a tuple with the Minor field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetMinor
`func (o *VersionModel) SetMinor(v string)`
SetMinor sets Minor field to given value.
### HasMinor
`func (o *VersionModel) HasMinor() bool`
HasMinor returns a boolean if a field has been set.
### GetRevision
`func (o *VersionModel) GetRevision() string`
GetRevision returns the Revision field if non-nil, zero value otherwise.
### GetRevisionOk
`func (o *VersionModel) GetRevisionOk() (*string, bool)`
GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRevision
`func (o *VersionModel) SetRevision(v string)`
SetRevision sets Revision field to given value.
### HasRevision
`func (o *VersionModel) HasRevision() bool`
HasRevision returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

3
utils/sdk/client/go/go.mod generated Normal file
View file

@ -0,0 +1,3 @@
module github.com/letheanVPN/blockchain/utils/sdk/client/go
go 1.23

View file

@ -0,0 +1,990 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the BlockDetailsModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BlockDetailsModel{}
// BlockDetailsModel struct for BlockDetailsModel
type BlockDetailsModel struct {
ActualTimestamp *int32 `json:"actual_timestamp,omitempty"`
AlreadyGeneratedCoins *string `json:"already_generated_coins,omitempty"`
BaseReward *int32 `json:"base_reward,omitempty"`
Blob *string `json:"blob,omitempty"`
BlockCumulativeSize *int32 `json:"block_cumulative_size,omitempty"`
BlockTselfSize *int32 `json:"block_tself_size,omitempty"`
CumulativeDiffAdjusted *string `json:"cumulative_diff_adjusted,omitempty"`
CumulativeDiffPrecise *string `json:"cumulative_diff_precise,omitempty"`
Difficulty *string `json:"difficulty,omitempty"`
EffectiveFeeMedian *int32 `json:"effective_fee_median,omitempty"`
Height *int32 `json:"height,omitempty"`
Id *string `json:"id,omitempty"`
IsOrphan *bool `json:"is_orphan,omitempty"`
MinerTextInfo *string `json:"miner_text_info,omitempty"`
ObjectInJson *string `json:"object_in_json,omitempty"`
Penalty *int32 `json:"penalty,omitempty"`
PowSeed *string `json:"pow_seed,omitempty"`
PrevId *string `json:"prev_id,omitempty"`
SummaryReward *int32 `json:"summary_reward,omitempty"`
ThisBlockFeeMedian *int32 `json:"this_block_fee_median,omitempty"`
Timestamp *int32 `json:"timestamp,omitempty"`
TotalFee *int32 `json:"total_fee,omitempty"`
TotalTxsSize *int32 `json:"total_txs_size,omitempty"`
TransactionsDetails []TransactionDetailsModel `json:"transactions_details,omitempty"`
Type *int32 `json:"type,omitempty"`
}
// NewBlockDetailsModel instantiates a new BlockDetailsModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewBlockDetailsModel() *BlockDetailsModel {
this := BlockDetailsModel{}
return &this
}
// NewBlockDetailsModelWithDefaults instantiates a new BlockDetailsModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBlockDetailsModelWithDefaults() *BlockDetailsModel {
this := BlockDetailsModel{}
return &this
}
// GetActualTimestamp returns the ActualTimestamp field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetActualTimestamp() int32 {
if o == nil || IsNil(o.ActualTimestamp) {
var ret int32
return ret
}
return *o.ActualTimestamp
}
// GetActualTimestampOk returns a tuple with the ActualTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetActualTimestampOk() (*int32, bool) {
if o == nil || IsNil(o.ActualTimestamp) {
return nil, false
}
return o.ActualTimestamp, true
}
// HasActualTimestamp returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasActualTimestamp() bool {
if o != nil && !IsNil(o.ActualTimestamp) {
return true
}
return false
}
// SetActualTimestamp gets a reference to the given int32 and assigns it to the ActualTimestamp field.
func (o *BlockDetailsModel) SetActualTimestamp(v int32) {
o.ActualTimestamp = &v
}
// GetAlreadyGeneratedCoins returns the AlreadyGeneratedCoins field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetAlreadyGeneratedCoins() string {
if o == nil || IsNil(o.AlreadyGeneratedCoins) {
var ret string
return ret
}
return *o.AlreadyGeneratedCoins
}
// GetAlreadyGeneratedCoinsOk returns a tuple with the AlreadyGeneratedCoins field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetAlreadyGeneratedCoinsOk() (*string, bool) {
if o == nil || IsNil(o.AlreadyGeneratedCoins) {
return nil, false
}
return o.AlreadyGeneratedCoins, true
}
// HasAlreadyGeneratedCoins returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasAlreadyGeneratedCoins() bool {
if o != nil && !IsNil(o.AlreadyGeneratedCoins) {
return true
}
return false
}
// SetAlreadyGeneratedCoins gets a reference to the given string and assigns it to the AlreadyGeneratedCoins field.
func (o *BlockDetailsModel) SetAlreadyGeneratedCoins(v string) {
o.AlreadyGeneratedCoins = &v
}
// GetBaseReward returns the BaseReward field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetBaseReward() int32 {
if o == nil || IsNil(o.BaseReward) {
var ret int32
return ret
}
return *o.BaseReward
}
// GetBaseRewardOk returns a tuple with the BaseReward field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetBaseRewardOk() (*int32, bool) {
if o == nil || IsNil(o.BaseReward) {
return nil, false
}
return o.BaseReward, true
}
// HasBaseReward returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasBaseReward() bool {
if o != nil && !IsNil(o.BaseReward) {
return true
}
return false
}
// SetBaseReward gets a reference to the given int32 and assigns it to the BaseReward field.
func (o *BlockDetailsModel) SetBaseReward(v int32) {
o.BaseReward = &v
}
// GetBlob returns the Blob field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetBlob() string {
if o == nil || IsNil(o.Blob) {
var ret string
return ret
}
return *o.Blob
}
// GetBlobOk returns a tuple with the Blob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetBlobOk() (*string, bool) {
if o == nil || IsNil(o.Blob) {
return nil, false
}
return o.Blob, true
}
// HasBlob returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasBlob() bool {
if o != nil && !IsNil(o.Blob) {
return true
}
return false
}
// SetBlob gets a reference to the given string and assigns it to the Blob field.
func (o *BlockDetailsModel) SetBlob(v string) {
o.Blob = &v
}
// GetBlockCumulativeSize returns the BlockCumulativeSize field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetBlockCumulativeSize() int32 {
if o == nil || IsNil(o.BlockCumulativeSize) {
var ret int32
return ret
}
return *o.BlockCumulativeSize
}
// GetBlockCumulativeSizeOk returns a tuple with the BlockCumulativeSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetBlockCumulativeSizeOk() (*int32, bool) {
if o == nil || IsNil(o.BlockCumulativeSize) {
return nil, false
}
return o.BlockCumulativeSize, true
}
// HasBlockCumulativeSize returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasBlockCumulativeSize() bool {
if o != nil && !IsNil(o.BlockCumulativeSize) {
return true
}
return false
}
// SetBlockCumulativeSize gets a reference to the given int32 and assigns it to the BlockCumulativeSize field.
func (o *BlockDetailsModel) SetBlockCumulativeSize(v int32) {
o.BlockCumulativeSize = &v
}
// GetBlockTselfSize returns the BlockTselfSize field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetBlockTselfSize() int32 {
if o == nil || IsNil(o.BlockTselfSize) {
var ret int32
return ret
}
return *o.BlockTselfSize
}
// GetBlockTselfSizeOk returns a tuple with the BlockTselfSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetBlockTselfSizeOk() (*int32, bool) {
if o == nil || IsNil(o.BlockTselfSize) {
return nil, false
}
return o.BlockTselfSize, true
}
// HasBlockTselfSize returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasBlockTselfSize() bool {
if o != nil && !IsNil(o.BlockTselfSize) {
return true
}
return false
}
// SetBlockTselfSize gets a reference to the given int32 and assigns it to the BlockTselfSize field.
func (o *BlockDetailsModel) SetBlockTselfSize(v int32) {
o.BlockTselfSize = &v
}
// GetCumulativeDiffAdjusted returns the CumulativeDiffAdjusted field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetCumulativeDiffAdjusted() string {
if o == nil || IsNil(o.CumulativeDiffAdjusted) {
var ret string
return ret
}
return *o.CumulativeDiffAdjusted
}
// GetCumulativeDiffAdjustedOk returns a tuple with the CumulativeDiffAdjusted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetCumulativeDiffAdjustedOk() (*string, bool) {
if o == nil || IsNil(o.CumulativeDiffAdjusted) {
return nil, false
}
return o.CumulativeDiffAdjusted, true
}
// HasCumulativeDiffAdjusted returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasCumulativeDiffAdjusted() bool {
if o != nil && !IsNil(o.CumulativeDiffAdjusted) {
return true
}
return false
}
// SetCumulativeDiffAdjusted gets a reference to the given string and assigns it to the CumulativeDiffAdjusted field.
func (o *BlockDetailsModel) SetCumulativeDiffAdjusted(v string) {
o.CumulativeDiffAdjusted = &v
}
// GetCumulativeDiffPrecise returns the CumulativeDiffPrecise field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetCumulativeDiffPrecise() string {
if o == nil || IsNil(o.CumulativeDiffPrecise) {
var ret string
return ret
}
return *o.CumulativeDiffPrecise
}
// GetCumulativeDiffPreciseOk returns a tuple with the CumulativeDiffPrecise field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetCumulativeDiffPreciseOk() (*string, bool) {
if o == nil || IsNil(o.CumulativeDiffPrecise) {
return nil, false
}
return o.CumulativeDiffPrecise, true
}
// HasCumulativeDiffPrecise returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasCumulativeDiffPrecise() bool {
if o != nil && !IsNil(o.CumulativeDiffPrecise) {
return true
}
return false
}
// SetCumulativeDiffPrecise gets a reference to the given string and assigns it to the CumulativeDiffPrecise field.
func (o *BlockDetailsModel) SetCumulativeDiffPrecise(v string) {
o.CumulativeDiffPrecise = &v
}
// GetDifficulty returns the Difficulty field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetDifficulty() string {
if o == nil || IsNil(o.Difficulty) {
var ret string
return ret
}
return *o.Difficulty
}
// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetDifficultyOk() (*string, bool) {
if o == nil || IsNil(o.Difficulty) {
return nil, false
}
return o.Difficulty, true
}
// HasDifficulty returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasDifficulty() bool {
if o != nil && !IsNil(o.Difficulty) {
return true
}
return false
}
// SetDifficulty gets a reference to the given string and assigns it to the Difficulty field.
func (o *BlockDetailsModel) SetDifficulty(v string) {
o.Difficulty = &v
}
// GetEffectiveFeeMedian returns the EffectiveFeeMedian field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetEffectiveFeeMedian() int32 {
if o == nil || IsNil(o.EffectiveFeeMedian) {
var ret int32
return ret
}
return *o.EffectiveFeeMedian
}
// GetEffectiveFeeMedianOk returns a tuple with the EffectiveFeeMedian field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetEffectiveFeeMedianOk() (*int32, bool) {
if o == nil || IsNil(o.EffectiveFeeMedian) {
return nil, false
}
return o.EffectiveFeeMedian, true
}
// HasEffectiveFeeMedian returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasEffectiveFeeMedian() bool {
if o != nil && !IsNil(o.EffectiveFeeMedian) {
return true
}
return false
}
// SetEffectiveFeeMedian gets a reference to the given int32 and assigns it to the EffectiveFeeMedian field.
func (o *BlockDetailsModel) SetEffectiveFeeMedian(v int32) {
o.EffectiveFeeMedian = &v
}
// GetHeight returns the Height field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetHeight() int32 {
if o == nil || IsNil(o.Height) {
var ret int32
return ret
}
return *o.Height
}
// GetHeightOk returns a tuple with the Height field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetHeightOk() (*int32, bool) {
if o == nil || IsNil(o.Height) {
return nil, false
}
return o.Height, true
}
// HasHeight returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasHeight() bool {
if o != nil && !IsNil(o.Height) {
return true
}
return false
}
// SetHeight gets a reference to the given int32 and assigns it to the Height field.
func (o *BlockDetailsModel) SetHeight(v int32) {
o.Height = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *BlockDetailsModel) SetId(v string) {
o.Id = &v
}
// GetIsOrphan returns the IsOrphan field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetIsOrphan() bool {
if o == nil || IsNil(o.IsOrphan) {
var ret bool
return ret
}
return *o.IsOrphan
}
// GetIsOrphanOk returns a tuple with the IsOrphan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetIsOrphanOk() (*bool, bool) {
if o == nil || IsNil(o.IsOrphan) {
return nil, false
}
return o.IsOrphan, true
}
// HasIsOrphan returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasIsOrphan() bool {
if o != nil && !IsNil(o.IsOrphan) {
return true
}
return false
}
// SetIsOrphan gets a reference to the given bool and assigns it to the IsOrphan field.
func (o *BlockDetailsModel) SetIsOrphan(v bool) {
o.IsOrphan = &v
}
// GetMinerTextInfo returns the MinerTextInfo field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetMinerTextInfo() string {
if o == nil || IsNil(o.MinerTextInfo) {
var ret string
return ret
}
return *o.MinerTextInfo
}
// GetMinerTextInfoOk returns a tuple with the MinerTextInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetMinerTextInfoOk() (*string, bool) {
if o == nil || IsNil(o.MinerTextInfo) {
return nil, false
}
return o.MinerTextInfo, true
}
// HasMinerTextInfo returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasMinerTextInfo() bool {
if o != nil && !IsNil(o.MinerTextInfo) {
return true
}
return false
}
// SetMinerTextInfo gets a reference to the given string and assigns it to the MinerTextInfo field.
func (o *BlockDetailsModel) SetMinerTextInfo(v string) {
o.MinerTextInfo = &v
}
// GetObjectInJson returns the ObjectInJson field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetObjectInJson() string {
if o == nil || IsNil(o.ObjectInJson) {
var ret string
return ret
}
return *o.ObjectInJson
}
// GetObjectInJsonOk returns a tuple with the ObjectInJson field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetObjectInJsonOk() (*string, bool) {
if o == nil || IsNil(o.ObjectInJson) {
return nil, false
}
return o.ObjectInJson, true
}
// HasObjectInJson returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasObjectInJson() bool {
if o != nil && !IsNil(o.ObjectInJson) {
return true
}
return false
}
// SetObjectInJson gets a reference to the given string and assigns it to the ObjectInJson field.
func (o *BlockDetailsModel) SetObjectInJson(v string) {
o.ObjectInJson = &v
}
// GetPenalty returns the Penalty field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetPenalty() int32 {
if o == nil || IsNil(o.Penalty) {
var ret int32
return ret
}
return *o.Penalty
}
// GetPenaltyOk returns a tuple with the Penalty field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetPenaltyOk() (*int32, bool) {
if o == nil || IsNil(o.Penalty) {
return nil, false
}
return o.Penalty, true
}
// HasPenalty returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasPenalty() bool {
if o != nil && !IsNil(o.Penalty) {
return true
}
return false
}
// SetPenalty gets a reference to the given int32 and assigns it to the Penalty field.
func (o *BlockDetailsModel) SetPenalty(v int32) {
o.Penalty = &v
}
// GetPowSeed returns the PowSeed field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetPowSeed() string {
if o == nil || IsNil(o.PowSeed) {
var ret string
return ret
}
return *o.PowSeed
}
// GetPowSeedOk returns a tuple with the PowSeed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetPowSeedOk() (*string, bool) {
if o == nil || IsNil(o.PowSeed) {
return nil, false
}
return o.PowSeed, true
}
// HasPowSeed returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasPowSeed() bool {
if o != nil && !IsNil(o.PowSeed) {
return true
}
return false
}
// SetPowSeed gets a reference to the given string and assigns it to the PowSeed field.
func (o *BlockDetailsModel) SetPowSeed(v string) {
o.PowSeed = &v
}
// GetPrevId returns the PrevId field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetPrevId() string {
if o == nil || IsNil(o.PrevId) {
var ret string
return ret
}
return *o.PrevId
}
// GetPrevIdOk returns a tuple with the PrevId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetPrevIdOk() (*string, bool) {
if o == nil || IsNil(o.PrevId) {
return nil, false
}
return o.PrevId, true
}
// HasPrevId returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasPrevId() bool {
if o != nil && !IsNil(o.PrevId) {
return true
}
return false
}
// SetPrevId gets a reference to the given string and assigns it to the PrevId field.
func (o *BlockDetailsModel) SetPrevId(v string) {
o.PrevId = &v
}
// GetSummaryReward returns the SummaryReward field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetSummaryReward() int32 {
if o == nil || IsNil(o.SummaryReward) {
var ret int32
return ret
}
return *o.SummaryReward
}
// GetSummaryRewardOk returns a tuple with the SummaryReward field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetSummaryRewardOk() (*int32, bool) {
if o == nil || IsNil(o.SummaryReward) {
return nil, false
}
return o.SummaryReward, true
}
// HasSummaryReward returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasSummaryReward() bool {
if o != nil && !IsNil(o.SummaryReward) {
return true
}
return false
}
// SetSummaryReward gets a reference to the given int32 and assigns it to the SummaryReward field.
func (o *BlockDetailsModel) SetSummaryReward(v int32) {
o.SummaryReward = &v
}
// GetThisBlockFeeMedian returns the ThisBlockFeeMedian field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetThisBlockFeeMedian() int32 {
if o == nil || IsNil(o.ThisBlockFeeMedian) {
var ret int32
return ret
}
return *o.ThisBlockFeeMedian
}
// GetThisBlockFeeMedianOk returns a tuple with the ThisBlockFeeMedian field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetThisBlockFeeMedianOk() (*int32, bool) {
if o == nil || IsNil(o.ThisBlockFeeMedian) {
return nil, false
}
return o.ThisBlockFeeMedian, true
}
// HasThisBlockFeeMedian returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasThisBlockFeeMedian() bool {
if o != nil && !IsNil(o.ThisBlockFeeMedian) {
return true
}
return false
}
// SetThisBlockFeeMedian gets a reference to the given int32 and assigns it to the ThisBlockFeeMedian field.
func (o *BlockDetailsModel) SetThisBlockFeeMedian(v int32) {
o.ThisBlockFeeMedian = &v
}
// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetTimestamp() int32 {
if o == nil || IsNil(o.Timestamp) {
var ret int32
return ret
}
return *o.Timestamp
}
// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetTimestampOk() (*int32, bool) {
if o == nil || IsNil(o.Timestamp) {
return nil, false
}
return o.Timestamp, true
}
// HasTimestamp returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasTimestamp() bool {
if o != nil && !IsNil(o.Timestamp) {
return true
}
return false
}
// SetTimestamp gets a reference to the given int32 and assigns it to the Timestamp field.
func (o *BlockDetailsModel) SetTimestamp(v int32) {
o.Timestamp = &v
}
// GetTotalFee returns the TotalFee field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetTotalFee() int32 {
if o == nil || IsNil(o.TotalFee) {
var ret int32
return ret
}
return *o.TotalFee
}
// GetTotalFeeOk returns a tuple with the TotalFee field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetTotalFeeOk() (*int32, bool) {
if o == nil || IsNil(o.TotalFee) {
return nil, false
}
return o.TotalFee, true
}
// HasTotalFee returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasTotalFee() bool {
if o != nil && !IsNil(o.TotalFee) {
return true
}
return false
}
// SetTotalFee gets a reference to the given int32 and assigns it to the TotalFee field.
func (o *BlockDetailsModel) SetTotalFee(v int32) {
o.TotalFee = &v
}
// GetTotalTxsSize returns the TotalTxsSize field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetTotalTxsSize() int32 {
if o == nil || IsNil(o.TotalTxsSize) {
var ret int32
return ret
}
return *o.TotalTxsSize
}
// GetTotalTxsSizeOk returns a tuple with the TotalTxsSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetTotalTxsSizeOk() (*int32, bool) {
if o == nil || IsNil(o.TotalTxsSize) {
return nil, false
}
return o.TotalTxsSize, true
}
// HasTotalTxsSize returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasTotalTxsSize() bool {
if o != nil && !IsNil(o.TotalTxsSize) {
return true
}
return false
}
// SetTotalTxsSize gets a reference to the given int32 and assigns it to the TotalTxsSize field.
func (o *BlockDetailsModel) SetTotalTxsSize(v int32) {
o.TotalTxsSize = &v
}
// GetTransactionsDetails returns the TransactionsDetails field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetTransactionsDetails() []TransactionDetailsModel {
if o == nil || IsNil(o.TransactionsDetails) {
var ret []TransactionDetailsModel
return ret
}
return o.TransactionsDetails
}
// GetTransactionsDetailsOk returns a tuple with the TransactionsDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetTransactionsDetailsOk() ([]TransactionDetailsModel, bool) {
if o == nil || IsNil(o.TransactionsDetails) {
return nil, false
}
return o.TransactionsDetails, true
}
// HasTransactionsDetails returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasTransactionsDetails() bool {
if o != nil && !IsNil(o.TransactionsDetails) {
return true
}
return false
}
// SetTransactionsDetails gets a reference to the given []TransactionDetailsModel and assigns it to the TransactionsDetails field.
func (o *BlockDetailsModel) SetTransactionsDetails(v []TransactionDetailsModel) {
o.TransactionsDetails = v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *BlockDetailsModel) GetType() int32 {
if o == nil || IsNil(o.Type) {
var ret int32
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockDetailsModel) GetTypeOk() (*int32, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *BlockDetailsModel) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given int32 and assigns it to the Type field.
func (o *BlockDetailsModel) SetType(v int32) {
o.Type = &v
}
func (o BlockDetailsModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BlockDetailsModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ActualTimestamp) {
toSerialize["actual_timestamp"] = o.ActualTimestamp
}
if !IsNil(o.AlreadyGeneratedCoins) {
toSerialize["already_generated_coins"] = o.AlreadyGeneratedCoins
}
if !IsNil(o.BaseReward) {
toSerialize["base_reward"] = o.BaseReward
}
if !IsNil(o.Blob) {
toSerialize["blob"] = o.Blob
}
if !IsNil(o.BlockCumulativeSize) {
toSerialize["block_cumulative_size"] = o.BlockCumulativeSize
}
if !IsNil(o.BlockTselfSize) {
toSerialize["block_tself_size"] = o.BlockTselfSize
}
if !IsNil(o.CumulativeDiffAdjusted) {
toSerialize["cumulative_diff_adjusted"] = o.CumulativeDiffAdjusted
}
if !IsNil(o.CumulativeDiffPrecise) {
toSerialize["cumulative_diff_precise"] = o.CumulativeDiffPrecise
}
if !IsNil(o.Difficulty) {
toSerialize["difficulty"] = o.Difficulty
}
if !IsNil(o.EffectiveFeeMedian) {
toSerialize["effective_fee_median"] = o.EffectiveFeeMedian
}
if !IsNil(o.Height) {
toSerialize["height"] = o.Height
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.IsOrphan) {
toSerialize["is_orphan"] = o.IsOrphan
}
if !IsNil(o.MinerTextInfo) {
toSerialize["miner_text_info"] = o.MinerTextInfo
}
if !IsNil(o.ObjectInJson) {
toSerialize["object_in_json"] = o.ObjectInJson
}
if !IsNil(o.Penalty) {
toSerialize["penalty"] = o.Penalty
}
if !IsNil(o.PowSeed) {
toSerialize["pow_seed"] = o.PowSeed
}
if !IsNil(o.PrevId) {
toSerialize["prev_id"] = o.PrevId
}
if !IsNil(o.SummaryReward) {
toSerialize["summary_reward"] = o.SummaryReward
}
if !IsNil(o.ThisBlockFeeMedian) {
toSerialize["this_block_fee_median"] = o.ThisBlockFeeMedian
}
if !IsNil(o.Timestamp) {
toSerialize["timestamp"] = o.Timestamp
}
if !IsNil(o.TotalFee) {
toSerialize["total_fee"] = o.TotalFee
}
if !IsNil(o.TotalTxsSize) {
toSerialize["total_txs_size"] = o.TotalTxsSize
}
if !IsNil(o.TransactionsDetails) {
toSerialize["transactions_details"] = o.TransactionsDetails
}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
return toSerialize, nil
}
type NullableBlockDetailsModel struct {
value *BlockDetailsModel
isSet bool
}
func (v NullableBlockDetailsModel) Get() *BlockDetailsModel {
return v.value
}
func (v *NullableBlockDetailsModel) Set(val *BlockDetailsModel) {
v.value = val
v.isSet = true
}
func (v NullableBlockDetailsModel) IsSet() bool {
return v.isSet
}
func (v *NullableBlockDetailsModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBlockDetailsModel(val *BlockDetailsModel) *NullableBlockDetailsModel {
return &NullableBlockDetailsModel{value: val, isSet: true}
}
func (v NullableBlockDetailsModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBlockDetailsModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,666 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the BlockProcessingPerformanceModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BlockProcessingPerformanceModel{}
// BlockProcessingPerformanceModel struct for BlockProcessingPerformanceModel
type BlockProcessingPerformanceModel struct {
BlockProcessingTime0 *int32 `json:"block_processing_time_0,omitempty"`
BlockProcessingTime1 *int32 `json:"block_processing_time_1,omitempty"`
TargetCalculatingTime2 *int32 `json:"target_calculating_time_2,omitempty"`
LonghashCalculatingTime3 *int32 `json:"longhash_calculating_time_3,omitempty"`
AllTxsInsertTime5 *int32 `json:"all_txs_insert_time_5,omitempty"`
EtcStuff6 *int32 `json:"etc_stuff_6,omitempty"`
InsertTime4 *int32 `json:"insert_time_4,omitempty"`
RaiseBlockCoreEvent *int32 `json:"raise_block_core_event,omitempty"`
ValidateMinerTransactionTime *int32 `json:"validate_miner_transaction_time,omitempty"`
CollectRangeproofsDataFromTxTime *int32 `json:"collect_rangeproofs_data_from_tx_time,omitempty"`
VerifyMultipleZcOutsRangeProofsTime *int32 `json:"verify_multiple_zc_outs_range_proofs_time,omitempty"`
TargetCalculatingEnumBlocks *int32 `json:"target_calculating_enum_blocks,omitempty"`
TargetCalculatingCalc *int32 `json:"target_calculating_calc,omitempty"`
PosValidateKiSearch *int32 `json:"pos_validate_ki_search,omitempty"`
PosValidateGetOutKeysForInputs *int32 `json:"pos_validate_get_out_keys_for_inputs,omitempty"`
PosValidateZvp *int32 `json:"pos_validate_zvp,omitempty"`
}
// NewBlockProcessingPerformanceModel instantiates a new BlockProcessingPerformanceModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewBlockProcessingPerformanceModel() *BlockProcessingPerformanceModel {
this := BlockProcessingPerformanceModel{}
return &this
}
// NewBlockProcessingPerformanceModelWithDefaults instantiates a new BlockProcessingPerformanceModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBlockProcessingPerformanceModelWithDefaults() *BlockProcessingPerformanceModel {
this := BlockProcessingPerformanceModel{}
return &this
}
// GetBlockProcessingTime0 returns the BlockProcessingTime0 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime0() int32 {
if o == nil || IsNil(o.BlockProcessingTime0) {
var ret int32
return ret
}
return *o.BlockProcessingTime0
}
// GetBlockProcessingTime0Ok returns a tuple with the BlockProcessingTime0 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime0Ok() (*int32, bool) {
if o == nil || IsNil(o.BlockProcessingTime0) {
return nil, false
}
return o.BlockProcessingTime0, true
}
// HasBlockProcessingTime0 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasBlockProcessingTime0() bool {
if o != nil && !IsNil(o.BlockProcessingTime0) {
return true
}
return false
}
// SetBlockProcessingTime0 gets a reference to the given int32 and assigns it to the BlockProcessingTime0 field.
func (o *BlockProcessingPerformanceModel) SetBlockProcessingTime0(v int32) {
o.BlockProcessingTime0 = &v
}
// GetBlockProcessingTime1 returns the BlockProcessingTime1 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime1() int32 {
if o == nil || IsNil(o.BlockProcessingTime1) {
var ret int32
return ret
}
return *o.BlockProcessingTime1
}
// GetBlockProcessingTime1Ok returns a tuple with the BlockProcessingTime1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime1Ok() (*int32, bool) {
if o == nil || IsNil(o.BlockProcessingTime1) {
return nil, false
}
return o.BlockProcessingTime1, true
}
// HasBlockProcessingTime1 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasBlockProcessingTime1() bool {
if o != nil && !IsNil(o.BlockProcessingTime1) {
return true
}
return false
}
// SetBlockProcessingTime1 gets a reference to the given int32 and assigns it to the BlockProcessingTime1 field.
func (o *BlockProcessingPerformanceModel) SetBlockProcessingTime1(v int32) {
o.BlockProcessingTime1 = &v
}
// GetTargetCalculatingTime2 returns the TargetCalculatingTime2 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingTime2() int32 {
if o == nil || IsNil(o.TargetCalculatingTime2) {
var ret int32
return ret
}
return *o.TargetCalculatingTime2
}
// GetTargetCalculatingTime2Ok returns a tuple with the TargetCalculatingTime2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingTime2Ok() (*int32, bool) {
if o == nil || IsNil(o.TargetCalculatingTime2) {
return nil, false
}
return o.TargetCalculatingTime2, true
}
// HasTargetCalculatingTime2 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasTargetCalculatingTime2() bool {
if o != nil && !IsNil(o.TargetCalculatingTime2) {
return true
}
return false
}
// SetTargetCalculatingTime2 gets a reference to the given int32 and assigns it to the TargetCalculatingTime2 field.
func (o *BlockProcessingPerformanceModel) SetTargetCalculatingTime2(v int32) {
o.TargetCalculatingTime2 = &v
}
// GetLonghashCalculatingTime3 returns the LonghashCalculatingTime3 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetLonghashCalculatingTime3() int32 {
if o == nil || IsNil(o.LonghashCalculatingTime3) {
var ret int32
return ret
}
return *o.LonghashCalculatingTime3
}
// GetLonghashCalculatingTime3Ok returns a tuple with the LonghashCalculatingTime3 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetLonghashCalculatingTime3Ok() (*int32, bool) {
if o == nil || IsNil(o.LonghashCalculatingTime3) {
return nil, false
}
return o.LonghashCalculatingTime3, true
}
// HasLonghashCalculatingTime3 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasLonghashCalculatingTime3() bool {
if o != nil && !IsNil(o.LonghashCalculatingTime3) {
return true
}
return false
}
// SetLonghashCalculatingTime3 gets a reference to the given int32 and assigns it to the LonghashCalculatingTime3 field.
func (o *BlockProcessingPerformanceModel) SetLonghashCalculatingTime3(v int32) {
o.LonghashCalculatingTime3 = &v
}
// GetAllTxsInsertTime5 returns the AllTxsInsertTime5 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetAllTxsInsertTime5() int32 {
if o == nil || IsNil(o.AllTxsInsertTime5) {
var ret int32
return ret
}
return *o.AllTxsInsertTime5
}
// GetAllTxsInsertTime5Ok returns a tuple with the AllTxsInsertTime5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetAllTxsInsertTime5Ok() (*int32, bool) {
if o == nil || IsNil(o.AllTxsInsertTime5) {
return nil, false
}
return o.AllTxsInsertTime5, true
}
// HasAllTxsInsertTime5 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasAllTxsInsertTime5() bool {
if o != nil && !IsNil(o.AllTxsInsertTime5) {
return true
}
return false
}
// SetAllTxsInsertTime5 gets a reference to the given int32 and assigns it to the AllTxsInsertTime5 field.
func (o *BlockProcessingPerformanceModel) SetAllTxsInsertTime5(v int32) {
o.AllTxsInsertTime5 = &v
}
// GetEtcStuff6 returns the EtcStuff6 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetEtcStuff6() int32 {
if o == nil || IsNil(o.EtcStuff6) {
var ret int32
return ret
}
return *o.EtcStuff6
}
// GetEtcStuff6Ok returns a tuple with the EtcStuff6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetEtcStuff6Ok() (*int32, bool) {
if o == nil || IsNil(o.EtcStuff6) {
return nil, false
}
return o.EtcStuff6, true
}
// HasEtcStuff6 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasEtcStuff6() bool {
if o != nil && !IsNil(o.EtcStuff6) {
return true
}
return false
}
// SetEtcStuff6 gets a reference to the given int32 and assigns it to the EtcStuff6 field.
func (o *BlockProcessingPerformanceModel) SetEtcStuff6(v int32) {
o.EtcStuff6 = &v
}
// GetInsertTime4 returns the InsertTime4 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetInsertTime4() int32 {
if o == nil || IsNil(o.InsertTime4) {
var ret int32
return ret
}
return *o.InsertTime4
}
// GetInsertTime4Ok returns a tuple with the InsertTime4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetInsertTime4Ok() (*int32, bool) {
if o == nil || IsNil(o.InsertTime4) {
return nil, false
}
return o.InsertTime4, true
}
// HasInsertTime4 returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasInsertTime4() bool {
if o != nil && !IsNil(o.InsertTime4) {
return true
}
return false
}
// SetInsertTime4 gets a reference to the given int32 and assigns it to the InsertTime4 field.
func (o *BlockProcessingPerformanceModel) SetInsertTime4(v int32) {
o.InsertTime4 = &v
}
// GetRaiseBlockCoreEvent returns the RaiseBlockCoreEvent field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetRaiseBlockCoreEvent() int32 {
if o == nil || IsNil(o.RaiseBlockCoreEvent) {
var ret int32
return ret
}
return *o.RaiseBlockCoreEvent
}
// GetRaiseBlockCoreEventOk returns a tuple with the RaiseBlockCoreEvent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetRaiseBlockCoreEventOk() (*int32, bool) {
if o == nil || IsNil(o.RaiseBlockCoreEvent) {
return nil, false
}
return o.RaiseBlockCoreEvent, true
}
// HasRaiseBlockCoreEvent returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasRaiseBlockCoreEvent() bool {
if o != nil && !IsNil(o.RaiseBlockCoreEvent) {
return true
}
return false
}
// SetRaiseBlockCoreEvent gets a reference to the given int32 and assigns it to the RaiseBlockCoreEvent field.
func (o *BlockProcessingPerformanceModel) SetRaiseBlockCoreEvent(v int32) {
o.RaiseBlockCoreEvent = &v
}
// GetValidateMinerTransactionTime returns the ValidateMinerTransactionTime field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetValidateMinerTransactionTime() int32 {
if o == nil || IsNil(o.ValidateMinerTransactionTime) {
var ret int32
return ret
}
return *o.ValidateMinerTransactionTime
}
// GetValidateMinerTransactionTimeOk returns a tuple with the ValidateMinerTransactionTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetValidateMinerTransactionTimeOk() (*int32, bool) {
if o == nil || IsNil(o.ValidateMinerTransactionTime) {
return nil, false
}
return o.ValidateMinerTransactionTime, true
}
// HasValidateMinerTransactionTime returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasValidateMinerTransactionTime() bool {
if o != nil && !IsNil(o.ValidateMinerTransactionTime) {
return true
}
return false
}
// SetValidateMinerTransactionTime gets a reference to the given int32 and assigns it to the ValidateMinerTransactionTime field.
func (o *BlockProcessingPerformanceModel) SetValidateMinerTransactionTime(v int32) {
o.ValidateMinerTransactionTime = &v
}
// GetCollectRangeproofsDataFromTxTime returns the CollectRangeproofsDataFromTxTime field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetCollectRangeproofsDataFromTxTime() int32 {
if o == nil || IsNil(o.CollectRangeproofsDataFromTxTime) {
var ret int32
return ret
}
return *o.CollectRangeproofsDataFromTxTime
}
// GetCollectRangeproofsDataFromTxTimeOk returns a tuple with the CollectRangeproofsDataFromTxTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetCollectRangeproofsDataFromTxTimeOk() (*int32, bool) {
if o == nil || IsNil(o.CollectRangeproofsDataFromTxTime) {
return nil, false
}
return o.CollectRangeproofsDataFromTxTime, true
}
// HasCollectRangeproofsDataFromTxTime returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasCollectRangeproofsDataFromTxTime() bool {
if o != nil && !IsNil(o.CollectRangeproofsDataFromTxTime) {
return true
}
return false
}
// SetCollectRangeproofsDataFromTxTime gets a reference to the given int32 and assigns it to the CollectRangeproofsDataFromTxTime field.
func (o *BlockProcessingPerformanceModel) SetCollectRangeproofsDataFromTxTime(v int32) {
o.CollectRangeproofsDataFromTxTime = &v
}
// GetVerifyMultipleZcOutsRangeProofsTime returns the VerifyMultipleZcOutsRangeProofsTime field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetVerifyMultipleZcOutsRangeProofsTime() int32 {
if o == nil || IsNil(o.VerifyMultipleZcOutsRangeProofsTime) {
var ret int32
return ret
}
return *o.VerifyMultipleZcOutsRangeProofsTime
}
// GetVerifyMultipleZcOutsRangeProofsTimeOk returns a tuple with the VerifyMultipleZcOutsRangeProofsTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetVerifyMultipleZcOutsRangeProofsTimeOk() (*int32, bool) {
if o == nil || IsNil(o.VerifyMultipleZcOutsRangeProofsTime) {
return nil, false
}
return o.VerifyMultipleZcOutsRangeProofsTime, true
}
// HasVerifyMultipleZcOutsRangeProofsTime returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasVerifyMultipleZcOutsRangeProofsTime() bool {
if o != nil && !IsNil(o.VerifyMultipleZcOutsRangeProofsTime) {
return true
}
return false
}
// SetVerifyMultipleZcOutsRangeProofsTime gets a reference to the given int32 and assigns it to the VerifyMultipleZcOutsRangeProofsTime field.
func (o *BlockProcessingPerformanceModel) SetVerifyMultipleZcOutsRangeProofsTime(v int32) {
o.VerifyMultipleZcOutsRangeProofsTime = &v
}
// GetTargetCalculatingEnumBlocks returns the TargetCalculatingEnumBlocks field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingEnumBlocks() int32 {
if o == nil || IsNil(o.TargetCalculatingEnumBlocks) {
var ret int32
return ret
}
return *o.TargetCalculatingEnumBlocks
}
// GetTargetCalculatingEnumBlocksOk returns a tuple with the TargetCalculatingEnumBlocks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingEnumBlocksOk() (*int32, bool) {
if o == nil || IsNil(o.TargetCalculatingEnumBlocks) {
return nil, false
}
return o.TargetCalculatingEnumBlocks, true
}
// HasTargetCalculatingEnumBlocks returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasTargetCalculatingEnumBlocks() bool {
if o != nil && !IsNil(o.TargetCalculatingEnumBlocks) {
return true
}
return false
}
// SetTargetCalculatingEnumBlocks gets a reference to the given int32 and assigns it to the TargetCalculatingEnumBlocks field.
func (o *BlockProcessingPerformanceModel) SetTargetCalculatingEnumBlocks(v int32) {
o.TargetCalculatingEnumBlocks = &v
}
// GetTargetCalculatingCalc returns the TargetCalculatingCalc field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingCalc() int32 {
if o == nil || IsNil(o.TargetCalculatingCalc) {
var ret int32
return ret
}
return *o.TargetCalculatingCalc
}
// GetTargetCalculatingCalcOk returns a tuple with the TargetCalculatingCalc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingCalcOk() (*int32, bool) {
if o == nil || IsNil(o.TargetCalculatingCalc) {
return nil, false
}
return o.TargetCalculatingCalc, true
}
// HasTargetCalculatingCalc returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasTargetCalculatingCalc() bool {
if o != nil && !IsNil(o.TargetCalculatingCalc) {
return true
}
return false
}
// SetTargetCalculatingCalc gets a reference to the given int32 and assigns it to the TargetCalculatingCalc field.
func (o *BlockProcessingPerformanceModel) SetTargetCalculatingCalc(v int32) {
o.TargetCalculatingCalc = &v
}
// GetPosValidateKiSearch returns the PosValidateKiSearch field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetPosValidateKiSearch() int32 {
if o == nil || IsNil(o.PosValidateKiSearch) {
var ret int32
return ret
}
return *o.PosValidateKiSearch
}
// GetPosValidateKiSearchOk returns a tuple with the PosValidateKiSearch field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetPosValidateKiSearchOk() (*int32, bool) {
if o == nil || IsNil(o.PosValidateKiSearch) {
return nil, false
}
return o.PosValidateKiSearch, true
}
// HasPosValidateKiSearch returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasPosValidateKiSearch() bool {
if o != nil && !IsNil(o.PosValidateKiSearch) {
return true
}
return false
}
// SetPosValidateKiSearch gets a reference to the given int32 and assigns it to the PosValidateKiSearch field.
func (o *BlockProcessingPerformanceModel) SetPosValidateKiSearch(v int32) {
o.PosValidateKiSearch = &v
}
// GetPosValidateGetOutKeysForInputs returns the PosValidateGetOutKeysForInputs field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetPosValidateGetOutKeysForInputs() int32 {
if o == nil || IsNil(o.PosValidateGetOutKeysForInputs) {
var ret int32
return ret
}
return *o.PosValidateGetOutKeysForInputs
}
// GetPosValidateGetOutKeysForInputsOk returns a tuple with the PosValidateGetOutKeysForInputs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetPosValidateGetOutKeysForInputsOk() (*int32, bool) {
if o == nil || IsNil(o.PosValidateGetOutKeysForInputs) {
return nil, false
}
return o.PosValidateGetOutKeysForInputs, true
}
// HasPosValidateGetOutKeysForInputs returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasPosValidateGetOutKeysForInputs() bool {
if o != nil && !IsNil(o.PosValidateGetOutKeysForInputs) {
return true
}
return false
}
// SetPosValidateGetOutKeysForInputs gets a reference to the given int32 and assigns it to the PosValidateGetOutKeysForInputs field.
func (o *BlockProcessingPerformanceModel) SetPosValidateGetOutKeysForInputs(v int32) {
o.PosValidateGetOutKeysForInputs = &v
}
// GetPosValidateZvp returns the PosValidateZvp field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetPosValidateZvp() int32 {
if o == nil || IsNil(o.PosValidateZvp) {
var ret int32
return ret
}
return *o.PosValidateZvp
}
// GetPosValidateZvpOk returns a tuple with the PosValidateZvp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockProcessingPerformanceModel) GetPosValidateZvpOk() (*int32, bool) {
if o == nil || IsNil(o.PosValidateZvp) {
return nil, false
}
return o.PosValidateZvp, true
}
// HasPosValidateZvp returns a boolean if a field has been set.
func (o *BlockProcessingPerformanceModel) HasPosValidateZvp() bool {
if o != nil && !IsNil(o.PosValidateZvp) {
return true
}
return false
}
// SetPosValidateZvp gets a reference to the given int32 and assigns it to the PosValidateZvp field.
func (o *BlockProcessingPerformanceModel) SetPosValidateZvp(v int32) {
o.PosValidateZvp = &v
}
func (o BlockProcessingPerformanceModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BlockProcessingPerformanceModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.BlockProcessingTime0) {
toSerialize["block_processing_time_0"] = o.BlockProcessingTime0
}
if !IsNil(o.BlockProcessingTime1) {
toSerialize["block_processing_time_1"] = o.BlockProcessingTime1
}
if !IsNil(o.TargetCalculatingTime2) {
toSerialize["target_calculating_time_2"] = o.TargetCalculatingTime2
}
if !IsNil(o.LonghashCalculatingTime3) {
toSerialize["longhash_calculating_time_3"] = o.LonghashCalculatingTime3
}
if !IsNil(o.AllTxsInsertTime5) {
toSerialize["all_txs_insert_time_5"] = o.AllTxsInsertTime5
}
if !IsNil(o.EtcStuff6) {
toSerialize["etc_stuff_6"] = o.EtcStuff6
}
if !IsNil(o.InsertTime4) {
toSerialize["insert_time_4"] = o.InsertTime4
}
if !IsNil(o.RaiseBlockCoreEvent) {
toSerialize["raise_block_core_event"] = o.RaiseBlockCoreEvent
}
if !IsNil(o.ValidateMinerTransactionTime) {
toSerialize["validate_miner_transaction_time"] = o.ValidateMinerTransactionTime
}
if !IsNil(o.CollectRangeproofsDataFromTxTime) {
toSerialize["collect_rangeproofs_data_from_tx_time"] = o.CollectRangeproofsDataFromTxTime
}
if !IsNil(o.VerifyMultipleZcOutsRangeProofsTime) {
toSerialize["verify_multiple_zc_outs_range_proofs_time"] = o.VerifyMultipleZcOutsRangeProofsTime
}
if !IsNil(o.TargetCalculatingEnumBlocks) {
toSerialize["target_calculating_enum_blocks"] = o.TargetCalculatingEnumBlocks
}
if !IsNil(o.TargetCalculatingCalc) {
toSerialize["target_calculating_calc"] = o.TargetCalculatingCalc
}
if !IsNil(o.PosValidateKiSearch) {
toSerialize["pos_validate_ki_search"] = o.PosValidateKiSearch
}
if !IsNil(o.PosValidateGetOutKeysForInputs) {
toSerialize["pos_validate_get_out_keys_for_inputs"] = o.PosValidateGetOutKeysForInputs
}
if !IsNil(o.PosValidateZvp) {
toSerialize["pos_validate_zvp"] = o.PosValidateZvp
}
return toSerialize, nil
}
type NullableBlockProcessingPerformanceModel struct {
value *BlockProcessingPerformanceModel
isSet bool
}
func (v NullableBlockProcessingPerformanceModel) Get() *BlockProcessingPerformanceModel {
return v.value
}
func (v *NullableBlockProcessingPerformanceModel) Set(val *BlockProcessingPerformanceModel) {
v.value = val
v.isSet = true
}
func (v NullableBlockProcessingPerformanceModel) IsSet() bool {
return v.isSet
}
func (v *NullableBlockProcessingPerformanceModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBlockProcessingPerformanceModel(val *BlockProcessingPerformanceModel) *NullableBlockProcessingPerformanceModel {
return &NullableBlockProcessingPerformanceModel{value: val, isSet: true}
}
func (v NullableBlockProcessingPerformanceModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBlockProcessingPerformanceModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,414 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the BlockTemplateModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BlockTemplateModel{}
// BlockTemplateModel struct for BlockTemplateModel
type BlockTemplateModel struct {
BlocktemplateBlob *string `json:"blocktemplate_blob,omitempty"`
Difficulty *string `json:"difficulty,omitempty"`
Height *int32 `json:"height,omitempty"`
MinerTxTgc *TxGenerationContextModel `json:"miner_tx_tgc,omitempty"`
BlockRewardWithoutFee *int32 `json:"block_reward_without_fee,omitempty"`
BlockReward *int32 `json:"block_reward,omitempty"`
TxsFee *int32 `json:"txs_fee,omitempty"`
PrevHash *string `json:"prev_hash,omitempty"`
Seed *string `json:"seed,omitempty"`
}
// NewBlockTemplateModel instantiates a new BlockTemplateModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewBlockTemplateModel() *BlockTemplateModel {
this := BlockTemplateModel{}
return &this
}
// NewBlockTemplateModelWithDefaults instantiates a new BlockTemplateModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBlockTemplateModelWithDefaults() *BlockTemplateModel {
this := BlockTemplateModel{}
return &this
}
// GetBlocktemplateBlob returns the BlocktemplateBlob field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetBlocktemplateBlob() string {
if o == nil || IsNil(o.BlocktemplateBlob) {
var ret string
return ret
}
return *o.BlocktemplateBlob
}
// GetBlocktemplateBlobOk returns a tuple with the BlocktemplateBlob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetBlocktemplateBlobOk() (*string, bool) {
if o == nil || IsNil(o.BlocktemplateBlob) {
return nil, false
}
return o.BlocktemplateBlob, true
}
// HasBlocktemplateBlob returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasBlocktemplateBlob() bool {
if o != nil && !IsNil(o.BlocktemplateBlob) {
return true
}
return false
}
// SetBlocktemplateBlob gets a reference to the given string and assigns it to the BlocktemplateBlob field.
func (o *BlockTemplateModel) SetBlocktemplateBlob(v string) {
o.BlocktemplateBlob = &v
}
// GetDifficulty returns the Difficulty field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetDifficulty() string {
if o == nil || IsNil(o.Difficulty) {
var ret string
return ret
}
return *o.Difficulty
}
// GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetDifficultyOk() (*string, bool) {
if o == nil || IsNil(o.Difficulty) {
return nil, false
}
return o.Difficulty, true
}
// HasDifficulty returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasDifficulty() bool {
if o != nil && !IsNil(o.Difficulty) {
return true
}
return false
}
// SetDifficulty gets a reference to the given string and assigns it to the Difficulty field.
func (o *BlockTemplateModel) SetDifficulty(v string) {
o.Difficulty = &v
}
// GetHeight returns the Height field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetHeight() int32 {
if o == nil || IsNil(o.Height) {
var ret int32
return ret
}
return *o.Height
}
// GetHeightOk returns a tuple with the Height field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetHeightOk() (*int32, bool) {
if o == nil || IsNil(o.Height) {
return nil, false
}
return o.Height, true
}
// HasHeight returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasHeight() bool {
if o != nil && !IsNil(o.Height) {
return true
}
return false
}
// SetHeight gets a reference to the given int32 and assigns it to the Height field.
func (o *BlockTemplateModel) SetHeight(v int32) {
o.Height = &v
}
// GetMinerTxTgc returns the MinerTxTgc field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetMinerTxTgc() TxGenerationContextModel {
if o == nil || IsNil(o.MinerTxTgc) {
var ret TxGenerationContextModel
return ret
}
return *o.MinerTxTgc
}
// GetMinerTxTgcOk returns a tuple with the MinerTxTgc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetMinerTxTgcOk() (*TxGenerationContextModel, bool) {
if o == nil || IsNil(o.MinerTxTgc) {
return nil, false
}
return o.MinerTxTgc, true
}
// HasMinerTxTgc returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasMinerTxTgc() bool {
if o != nil && !IsNil(o.MinerTxTgc) {
return true
}
return false
}
// SetMinerTxTgc gets a reference to the given TxGenerationContextModel and assigns it to the MinerTxTgc field.
func (o *BlockTemplateModel) SetMinerTxTgc(v TxGenerationContextModel) {
o.MinerTxTgc = &v
}
// GetBlockRewardWithoutFee returns the BlockRewardWithoutFee field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetBlockRewardWithoutFee() int32 {
if o == nil || IsNil(o.BlockRewardWithoutFee) {
var ret int32
return ret
}
return *o.BlockRewardWithoutFee
}
// GetBlockRewardWithoutFeeOk returns a tuple with the BlockRewardWithoutFee field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetBlockRewardWithoutFeeOk() (*int32, bool) {
if o == nil || IsNil(o.BlockRewardWithoutFee) {
return nil, false
}
return o.BlockRewardWithoutFee, true
}
// HasBlockRewardWithoutFee returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasBlockRewardWithoutFee() bool {
if o != nil && !IsNil(o.BlockRewardWithoutFee) {
return true
}
return false
}
// SetBlockRewardWithoutFee gets a reference to the given int32 and assigns it to the BlockRewardWithoutFee field.
func (o *BlockTemplateModel) SetBlockRewardWithoutFee(v int32) {
o.BlockRewardWithoutFee = &v
}
// GetBlockReward returns the BlockReward field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetBlockReward() int32 {
if o == nil || IsNil(o.BlockReward) {
var ret int32
return ret
}
return *o.BlockReward
}
// GetBlockRewardOk returns a tuple with the BlockReward field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetBlockRewardOk() (*int32, bool) {
if o == nil || IsNil(o.BlockReward) {
return nil, false
}
return o.BlockReward, true
}
// HasBlockReward returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasBlockReward() bool {
if o != nil && !IsNil(o.BlockReward) {
return true
}
return false
}
// SetBlockReward gets a reference to the given int32 and assigns it to the BlockReward field.
func (o *BlockTemplateModel) SetBlockReward(v int32) {
o.BlockReward = &v
}
// GetTxsFee returns the TxsFee field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetTxsFee() int32 {
if o == nil || IsNil(o.TxsFee) {
var ret int32
return ret
}
return *o.TxsFee
}
// GetTxsFeeOk returns a tuple with the TxsFee field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetTxsFeeOk() (*int32, bool) {
if o == nil || IsNil(o.TxsFee) {
return nil, false
}
return o.TxsFee, true
}
// HasTxsFee returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasTxsFee() bool {
if o != nil && !IsNil(o.TxsFee) {
return true
}
return false
}
// SetTxsFee gets a reference to the given int32 and assigns it to the TxsFee field.
func (o *BlockTemplateModel) SetTxsFee(v int32) {
o.TxsFee = &v
}
// GetPrevHash returns the PrevHash field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetPrevHash() string {
if o == nil || IsNil(o.PrevHash) {
var ret string
return ret
}
return *o.PrevHash
}
// GetPrevHashOk returns a tuple with the PrevHash field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetPrevHashOk() (*string, bool) {
if o == nil || IsNil(o.PrevHash) {
return nil, false
}
return o.PrevHash, true
}
// HasPrevHash returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasPrevHash() bool {
if o != nil && !IsNil(o.PrevHash) {
return true
}
return false
}
// SetPrevHash gets a reference to the given string and assigns it to the PrevHash field.
func (o *BlockTemplateModel) SetPrevHash(v string) {
o.PrevHash = &v
}
// GetSeed returns the Seed field value if set, zero value otherwise.
func (o *BlockTemplateModel) GetSeed() string {
if o == nil || IsNil(o.Seed) {
var ret string
return ret
}
return *o.Seed
}
// GetSeedOk returns a tuple with the Seed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateModel) GetSeedOk() (*string, bool) {
if o == nil || IsNil(o.Seed) {
return nil, false
}
return o.Seed, true
}
// HasSeed returns a boolean if a field has been set.
func (o *BlockTemplateModel) HasSeed() bool {
if o != nil && !IsNil(o.Seed) {
return true
}
return false
}
// SetSeed gets a reference to the given string and assigns it to the Seed field.
func (o *BlockTemplateModel) SetSeed(v string) {
o.Seed = &v
}
func (o BlockTemplateModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BlockTemplateModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.BlocktemplateBlob) {
toSerialize["blocktemplate_blob"] = o.BlocktemplateBlob
}
if !IsNil(o.Difficulty) {
toSerialize["difficulty"] = o.Difficulty
}
if !IsNil(o.Height) {
toSerialize["height"] = o.Height
}
if !IsNil(o.MinerTxTgc) {
toSerialize["miner_tx_tgc"] = o.MinerTxTgc
}
if !IsNil(o.BlockRewardWithoutFee) {
toSerialize["block_reward_without_fee"] = o.BlockRewardWithoutFee
}
if !IsNil(o.BlockReward) {
toSerialize["block_reward"] = o.BlockReward
}
if !IsNil(o.TxsFee) {
toSerialize["txs_fee"] = o.TxsFee
}
if !IsNil(o.PrevHash) {
toSerialize["prev_hash"] = o.PrevHash
}
if !IsNil(o.Seed) {
toSerialize["seed"] = o.Seed
}
return toSerialize, nil
}
type NullableBlockTemplateModel struct {
value *BlockTemplateModel
isSet bool
}
func (v NullableBlockTemplateModel) Get() *BlockTemplateModel {
return v.value
}
func (v *NullableBlockTemplateModel) Set(val *BlockTemplateModel) {
v.value = val
v.isSet = true
}
func (v NullableBlockTemplateModel) IsSet() bool {
return v.isSet
}
func (v *NullableBlockTemplateModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBlockTemplateModel(val *BlockTemplateModel) *NullableBlockTemplateModel {
return &NullableBlockTemplateModel{value: val, isSet: true}
}
func (v NullableBlockTemplateModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBlockTemplateModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,342 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the BlockTemplateRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BlockTemplateRequestModel{}
// BlockTemplateRequestModel struct for BlockTemplateRequestModel
type BlockTemplateRequestModel struct {
MinerAddress *string `json:"miner_address,omitempty"`
StakeholderAddress *string `json:"stakeholder_address,omitempty"`
ExNonce *string `json:"ex_nonce,omitempty"`
PosBlock *bool `json:"pos_block,omitempty"`
IgnorePowTsCheck *bool `json:"ignore_pow_ts_check,omitempty"`
Pe *PosEntryModel `json:"pe,omitempty"`
ExplicitTxs []string `json:"explicit_txs,omitempty"`
}
// NewBlockTemplateRequestModel instantiates a new BlockTemplateRequestModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewBlockTemplateRequestModel() *BlockTemplateRequestModel {
this := BlockTemplateRequestModel{}
return &this
}
// NewBlockTemplateRequestModelWithDefaults instantiates a new BlockTemplateRequestModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewBlockTemplateRequestModelWithDefaults() *BlockTemplateRequestModel {
this := BlockTemplateRequestModel{}
return &this
}
// GetMinerAddress returns the MinerAddress field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetMinerAddress() string {
if o == nil || IsNil(o.MinerAddress) {
var ret string
return ret
}
return *o.MinerAddress
}
// GetMinerAddressOk returns a tuple with the MinerAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetMinerAddressOk() (*string, bool) {
if o == nil || IsNil(o.MinerAddress) {
return nil, false
}
return o.MinerAddress, true
}
// HasMinerAddress returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasMinerAddress() bool {
if o != nil && !IsNil(o.MinerAddress) {
return true
}
return false
}
// SetMinerAddress gets a reference to the given string and assigns it to the MinerAddress field.
func (o *BlockTemplateRequestModel) SetMinerAddress(v string) {
o.MinerAddress = &v
}
// GetStakeholderAddress returns the StakeholderAddress field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetStakeholderAddress() string {
if o == nil || IsNil(o.StakeholderAddress) {
var ret string
return ret
}
return *o.StakeholderAddress
}
// GetStakeholderAddressOk returns a tuple with the StakeholderAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetStakeholderAddressOk() (*string, bool) {
if o == nil || IsNil(o.StakeholderAddress) {
return nil, false
}
return o.StakeholderAddress, true
}
// HasStakeholderAddress returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasStakeholderAddress() bool {
if o != nil && !IsNil(o.StakeholderAddress) {
return true
}
return false
}
// SetStakeholderAddress gets a reference to the given string and assigns it to the StakeholderAddress field.
func (o *BlockTemplateRequestModel) SetStakeholderAddress(v string) {
o.StakeholderAddress = &v
}
// GetExNonce returns the ExNonce field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetExNonce() string {
if o == nil || IsNil(o.ExNonce) {
var ret string
return ret
}
return *o.ExNonce
}
// GetExNonceOk returns a tuple with the ExNonce field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetExNonceOk() (*string, bool) {
if o == nil || IsNil(o.ExNonce) {
return nil, false
}
return o.ExNonce, true
}
// HasExNonce returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasExNonce() bool {
if o != nil && !IsNil(o.ExNonce) {
return true
}
return false
}
// SetExNonce gets a reference to the given string and assigns it to the ExNonce field.
func (o *BlockTemplateRequestModel) SetExNonce(v string) {
o.ExNonce = &v
}
// GetPosBlock returns the PosBlock field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetPosBlock() bool {
if o == nil || IsNil(o.PosBlock) {
var ret bool
return ret
}
return *o.PosBlock
}
// GetPosBlockOk returns a tuple with the PosBlock field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetPosBlockOk() (*bool, bool) {
if o == nil || IsNil(o.PosBlock) {
return nil, false
}
return o.PosBlock, true
}
// HasPosBlock returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasPosBlock() bool {
if o != nil && !IsNil(o.PosBlock) {
return true
}
return false
}
// SetPosBlock gets a reference to the given bool and assigns it to the PosBlock field.
func (o *BlockTemplateRequestModel) SetPosBlock(v bool) {
o.PosBlock = &v
}
// GetIgnorePowTsCheck returns the IgnorePowTsCheck field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetIgnorePowTsCheck() bool {
if o == nil || IsNil(o.IgnorePowTsCheck) {
var ret bool
return ret
}
return *o.IgnorePowTsCheck
}
// GetIgnorePowTsCheckOk returns a tuple with the IgnorePowTsCheck field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetIgnorePowTsCheckOk() (*bool, bool) {
if o == nil || IsNil(o.IgnorePowTsCheck) {
return nil, false
}
return o.IgnorePowTsCheck, true
}
// HasIgnorePowTsCheck returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasIgnorePowTsCheck() bool {
if o != nil && !IsNil(o.IgnorePowTsCheck) {
return true
}
return false
}
// SetIgnorePowTsCheck gets a reference to the given bool and assigns it to the IgnorePowTsCheck field.
func (o *BlockTemplateRequestModel) SetIgnorePowTsCheck(v bool) {
o.IgnorePowTsCheck = &v
}
// GetPe returns the Pe field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetPe() PosEntryModel {
if o == nil || IsNil(o.Pe) {
var ret PosEntryModel
return ret
}
return *o.Pe
}
// GetPeOk returns a tuple with the Pe field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetPeOk() (*PosEntryModel, bool) {
if o == nil || IsNil(o.Pe) {
return nil, false
}
return o.Pe, true
}
// HasPe returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasPe() bool {
if o != nil && !IsNil(o.Pe) {
return true
}
return false
}
// SetPe gets a reference to the given PosEntryModel and assigns it to the Pe field.
func (o *BlockTemplateRequestModel) SetPe(v PosEntryModel) {
o.Pe = &v
}
// GetExplicitTxs returns the ExplicitTxs field value if set, zero value otherwise.
func (o *BlockTemplateRequestModel) GetExplicitTxs() []string {
if o == nil || IsNil(o.ExplicitTxs) {
var ret []string
return ret
}
return o.ExplicitTxs
}
// GetExplicitTxsOk returns a tuple with the ExplicitTxs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BlockTemplateRequestModel) GetExplicitTxsOk() ([]string, bool) {
if o == nil || IsNil(o.ExplicitTxs) {
return nil, false
}
return o.ExplicitTxs, true
}
// HasExplicitTxs returns a boolean if a field has been set.
func (o *BlockTemplateRequestModel) HasExplicitTxs() bool {
if o != nil && !IsNil(o.ExplicitTxs) {
return true
}
return false
}
// SetExplicitTxs gets a reference to the given []string and assigns it to the ExplicitTxs field.
func (o *BlockTemplateRequestModel) SetExplicitTxs(v []string) {
o.ExplicitTxs = v
}
func (o BlockTemplateRequestModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BlockTemplateRequestModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.MinerAddress) {
toSerialize["miner_address"] = o.MinerAddress
}
if !IsNil(o.StakeholderAddress) {
toSerialize["stakeholder_address"] = o.StakeholderAddress
}
if !IsNil(o.ExNonce) {
toSerialize["ex_nonce"] = o.ExNonce
}
if !IsNil(o.PosBlock) {
toSerialize["pos_block"] = o.PosBlock
}
if !IsNil(o.IgnorePowTsCheck) {
toSerialize["ignore_pow_ts_check"] = o.IgnorePowTsCheck
}
if !IsNil(o.Pe) {
toSerialize["pe"] = o.Pe
}
if !IsNil(o.ExplicitTxs) {
toSerialize["explicit_txs"] = o.ExplicitTxs
}
return toSerialize, nil
}
type NullableBlockTemplateRequestModel struct {
value *BlockTemplateRequestModel
isSet bool
}
func (v NullableBlockTemplateRequestModel) Get() *BlockTemplateRequestModel {
return v.value
}
func (v *NullableBlockTemplateRequestModel) Set(val *BlockTemplateRequestModel) {
v.value = val
v.isSet = true
}
func (v NullableBlockTemplateRequestModel) IsSet() bool {
return v.isSet
}
func (v *NullableBlockTemplateRequestModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBlockTemplateRequestModel(val *BlockTemplateRequestModel) *NullableBlockTemplateRequestModel {
return &NullableBlockTemplateRequestModel{value: val, isSet: true}
}
func (v NullableBlockTemplateRequestModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBlockTemplateRequestModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,198 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the DbStatInfoModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DbStatInfoModel{}
// DbStatInfoModel struct for DbStatInfoModel
type DbStatInfoModel struct {
TxCount *int32 `json:"tx_count,omitempty"`
WriteTxCount *int32 `json:"write_tx_count,omitempty"`
MapSize *int32 `json:"map_size,omitempty"`
}
// NewDbStatInfoModel instantiates a new DbStatInfoModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewDbStatInfoModel() *DbStatInfoModel {
this := DbStatInfoModel{}
return &this
}
// NewDbStatInfoModelWithDefaults instantiates a new DbStatInfoModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewDbStatInfoModelWithDefaults() *DbStatInfoModel {
this := DbStatInfoModel{}
return &this
}
// GetTxCount returns the TxCount field value if set, zero value otherwise.
func (o *DbStatInfoModel) GetTxCount() int32 {
if o == nil || IsNil(o.TxCount) {
var ret int32
return ret
}
return *o.TxCount
}
// GetTxCountOk returns a tuple with the TxCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbStatInfoModel) GetTxCountOk() (*int32, bool) {
if o == nil || IsNil(o.TxCount) {
return nil, false
}
return o.TxCount, true
}
// HasTxCount returns a boolean if a field has been set.
func (o *DbStatInfoModel) HasTxCount() bool {
if o != nil && !IsNil(o.TxCount) {
return true
}
return false
}
// SetTxCount gets a reference to the given int32 and assigns it to the TxCount field.
func (o *DbStatInfoModel) SetTxCount(v int32) {
o.TxCount = &v
}
// GetWriteTxCount returns the WriteTxCount field value if set, zero value otherwise.
func (o *DbStatInfoModel) GetWriteTxCount() int32 {
if o == nil || IsNil(o.WriteTxCount) {
var ret int32
return ret
}
return *o.WriteTxCount
}
// GetWriteTxCountOk returns a tuple with the WriteTxCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbStatInfoModel) GetWriteTxCountOk() (*int32, bool) {
if o == nil || IsNil(o.WriteTxCount) {
return nil, false
}
return o.WriteTxCount, true
}
// HasWriteTxCount returns a boolean if a field has been set.
func (o *DbStatInfoModel) HasWriteTxCount() bool {
if o != nil && !IsNil(o.WriteTxCount) {
return true
}
return false
}
// SetWriteTxCount gets a reference to the given int32 and assigns it to the WriteTxCount field.
func (o *DbStatInfoModel) SetWriteTxCount(v int32) {
o.WriteTxCount = &v
}
// GetMapSize returns the MapSize field value if set, zero value otherwise.
func (o *DbStatInfoModel) GetMapSize() int32 {
if o == nil || IsNil(o.MapSize) {
var ret int32
return ret
}
return *o.MapSize
}
// GetMapSizeOk returns a tuple with the MapSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbStatInfoModel) GetMapSizeOk() (*int32, bool) {
if o == nil || IsNil(o.MapSize) {
return nil, false
}
return o.MapSize, true
}
// HasMapSize returns a boolean if a field has been set.
func (o *DbStatInfoModel) HasMapSize() bool {
if o != nil && !IsNil(o.MapSize) {
return true
}
return false
}
// SetMapSize gets a reference to the given int32 and assigns it to the MapSize field.
func (o *DbStatInfoModel) SetMapSize(v int32) {
o.MapSize = &v
}
func (o DbStatInfoModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DbStatInfoModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.TxCount) {
toSerialize["tx_count"] = o.TxCount
}
if !IsNil(o.WriteTxCount) {
toSerialize["write_tx_count"] = o.WriteTxCount
}
if !IsNil(o.MapSize) {
toSerialize["map_size"] = o.MapSize
}
return toSerialize, nil
}
type NullableDbStatInfoModel struct {
value *DbStatInfoModel
isSet bool
}
func (v NullableDbStatInfoModel) Get() *DbStatInfoModel {
return v.value
}
func (v *NullableDbStatInfoModel) Set(val *DbStatInfoModel) {
v.value = val
v.isSet = true
}
func (v NullableDbStatInfoModel) IsSet() bool {
return v.isSet
}
func (v *NullableDbStatInfoModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDbStatInfoModel(val *DbStatInfoModel) *NullableDbStatInfoModel {
return &NullableDbStatInfoModel{value: val, isSet: true}
}
func (v NullableDbStatInfoModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDbStatInfoModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

126
utils/sdk/client/go/model_height_model.go generated Normal file
View file

@ -0,0 +1,126 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the HeightModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HeightModel{}
// HeightModel struct for HeightModel
type HeightModel struct {
Height *int32 `json:"height,omitempty"`
}
// NewHeightModel instantiates a new HeightModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewHeightModel() *HeightModel {
this := HeightModel{}
return &this
}
// NewHeightModelWithDefaults instantiates a new HeightModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewHeightModelWithDefaults() *HeightModel {
this := HeightModel{}
return &this
}
// GetHeight returns the Height field value if set, zero value otherwise.
func (o *HeightModel) GetHeight() int32 {
if o == nil || IsNil(o.Height) {
var ret int32
return ret
}
return *o.Height
}
// GetHeightOk returns a tuple with the Height field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HeightModel) GetHeightOk() (*int32, bool) {
if o == nil || IsNil(o.Height) {
return nil, false
}
return o.Height, true
}
// HasHeight returns a boolean if a field has been set.
func (o *HeightModel) HasHeight() bool {
if o != nil && !IsNil(o.Height) {
return true
}
return false
}
// SetHeight gets a reference to the given int32 and assigns it to the Height field.
func (o *HeightModel) SetHeight(v int32) {
o.Height = &v
}
func (o HeightModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o HeightModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Height) {
toSerialize["height"] = o.Height
}
return toSerialize, nil
}
type NullableHeightModel struct {
value *HeightModel
isSet bool
}
func (v NullableHeightModel) Get() *HeightModel {
return v.value
}
func (v *NullableHeightModel) Set(val *HeightModel) {
v.value = val
v.isSet = true
}
func (v NullableHeightModel) IsSet() bool {
return v.isSet
}
func (v *NullableHeightModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHeightModel(val *HeightModel) *NullableHeightModel {
return &NullableHeightModel{value: val, isSet: true}
}
func (v NullableHeightModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableHeightModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

1746
utils/sdk/client/go/model_info_model.go generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,270 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the MaintainersInfoModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MaintainersInfoModel{}
// MaintainersInfoModel struct for MaintainersInfoModel
type MaintainersInfoModel struct {
VerMajor *int32 `json:"ver_major,omitempty"`
VerMinor *int32 `json:"ver_minor,omitempty"`
VerRevision *int32 `json:"ver_revision,omitempty"`
BuildNo *int32 `json:"build_no,omitempty"`
Mode *int32 `json:"mode,omitempty"`
}
// NewMaintainersInfoModel instantiates a new MaintainersInfoModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewMaintainersInfoModel() *MaintainersInfoModel {
this := MaintainersInfoModel{}
return &this
}
// NewMaintainersInfoModelWithDefaults instantiates a new MaintainersInfoModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewMaintainersInfoModelWithDefaults() *MaintainersInfoModel {
this := MaintainersInfoModel{}
return &this
}
// GetVerMajor returns the VerMajor field value if set, zero value otherwise.
func (o *MaintainersInfoModel) GetVerMajor() int32 {
if o == nil || IsNil(o.VerMajor) {
var ret int32
return ret
}
return *o.VerMajor
}
// GetVerMajorOk returns a tuple with the VerMajor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MaintainersInfoModel) GetVerMajorOk() (*int32, bool) {
if o == nil || IsNil(o.VerMajor) {
return nil, false
}
return o.VerMajor, true
}
// HasVerMajor returns a boolean if a field has been set.
func (o *MaintainersInfoModel) HasVerMajor() bool {
if o != nil && !IsNil(o.VerMajor) {
return true
}
return false
}
// SetVerMajor gets a reference to the given int32 and assigns it to the VerMajor field.
func (o *MaintainersInfoModel) SetVerMajor(v int32) {
o.VerMajor = &v
}
// GetVerMinor returns the VerMinor field value if set, zero value otherwise.
func (o *MaintainersInfoModel) GetVerMinor() int32 {
if o == nil || IsNil(o.VerMinor) {
var ret int32
return ret
}
return *o.VerMinor
}
// GetVerMinorOk returns a tuple with the VerMinor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MaintainersInfoModel) GetVerMinorOk() (*int32, bool) {
if o == nil || IsNil(o.VerMinor) {
return nil, false
}
return o.VerMinor, true
}
// HasVerMinor returns a boolean if a field has been set.
func (o *MaintainersInfoModel) HasVerMinor() bool {
if o != nil && !IsNil(o.VerMinor) {
return true
}
return false
}
// SetVerMinor gets a reference to the given int32 and assigns it to the VerMinor field.
func (o *MaintainersInfoModel) SetVerMinor(v int32) {
o.VerMinor = &v
}
// GetVerRevision returns the VerRevision field value if set, zero value otherwise.
func (o *MaintainersInfoModel) GetVerRevision() int32 {
if o == nil || IsNil(o.VerRevision) {
var ret int32
return ret
}
return *o.VerRevision
}
// GetVerRevisionOk returns a tuple with the VerRevision field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MaintainersInfoModel) GetVerRevisionOk() (*int32, bool) {
if o == nil || IsNil(o.VerRevision) {
return nil, false
}
return o.VerRevision, true
}
// HasVerRevision returns a boolean if a field has been set.
func (o *MaintainersInfoModel) HasVerRevision() bool {
if o != nil && !IsNil(o.VerRevision) {
return true
}
return false
}
// SetVerRevision gets a reference to the given int32 and assigns it to the VerRevision field.
func (o *MaintainersInfoModel) SetVerRevision(v int32) {
o.VerRevision = &v
}
// GetBuildNo returns the BuildNo field value if set, zero value otherwise.
func (o *MaintainersInfoModel) GetBuildNo() int32 {
if o == nil || IsNil(o.BuildNo) {
var ret int32
return ret
}
return *o.BuildNo
}
// GetBuildNoOk returns a tuple with the BuildNo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MaintainersInfoModel) GetBuildNoOk() (*int32, bool) {
if o == nil || IsNil(o.BuildNo) {
return nil, false
}
return o.BuildNo, true
}
// HasBuildNo returns a boolean if a field has been set.
func (o *MaintainersInfoModel) HasBuildNo() bool {
if o != nil && !IsNil(o.BuildNo) {
return true
}
return false
}
// SetBuildNo gets a reference to the given int32 and assigns it to the BuildNo field.
func (o *MaintainersInfoModel) SetBuildNo(v int32) {
o.BuildNo = &v
}
// GetMode returns the Mode field value if set, zero value otherwise.
func (o *MaintainersInfoModel) GetMode() int32 {
if o == nil || IsNil(o.Mode) {
var ret int32
return ret
}
return *o.Mode
}
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MaintainersInfoModel) GetModeOk() (*int32, bool) {
if o == nil || IsNil(o.Mode) {
return nil, false
}
return o.Mode, true
}
// HasMode returns a boolean if a field has been set.
func (o *MaintainersInfoModel) HasMode() bool {
if o != nil && !IsNil(o.Mode) {
return true
}
return false
}
// SetMode gets a reference to the given int32 and assigns it to the Mode field.
func (o *MaintainersInfoModel) SetMode(v int32) {
o.Mode = &v
}
func (o MaintainersInfoModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MaintainersInfoModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.VerMajor) {
toSerialize["ver_major"] = o.VerMajor
}
if !IsNil(o.VerMinor) {
toSerialize["ver_minor"] = o.VerMinor
}
if !IsNil(o.VerRevision) {
toSerialize["ver_revision"] = o.VerRevision
}
if !IsNil(o.BuildNo) {
toSerialize["build_no"] = o.BuildNo
}
if !IsNil(o.Mode) {
toSerialize["mode"] = o.Mode
}
return toSerialize, nil
}
type NullableMaintainersInfoModel struct {
value *MaintainersInfoModel
isSet bool
}
func (v NullableMaintainersInfoModel) Get() *MaintainersInfoModel {
return v.value
}
func (v *NullableMaintainersInfoModel) Set(val *MaintainersInfoModel) {
v.value = val
v.isSet = true
}
func (v NullableMaintainersInfoModel) IsSet() bool {
return v.isSet
}
func (v *NullableMaintainersInfoModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMaintainersInfoModel(val *MaintainersInfoModel) *NullableMaintainersInfoModel {
return &NullableMaintainersInfoModel{value: val, isSet: true}
}
func (v NullableMaintainersInfoModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMaintainersInfoModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,234 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the PerformanceModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PerformanceModel{}
// PerformanceModel struct for PerformanceModel
type PerformanceModel struct {
BlockProcessing *BlockProcessingPerformanceModel `json:"block_processing,omitempty"`
TxProcessing *TxProcessingPerformanceModel `json:"tx_processing,omitempty"`
TxPool *TxPoolPerformanceModel `json:"tx_pool,omitempty"`
DbStatInfo *DbStatInfoModel `json:"db_stat_info,omitempty"`
}
// NewPerformanceModel instantiates a new PerformanceModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewPerformanceModel() *PerformanceModel {
this := PerformanceModel{}
return &this
}
// NewPerformanceModelWithDefaults instantiates a new PerformanceModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewPerformanceModelWithDefaults() *PerformanceModel {
this := PerformanceModel{}
return &this
}
// GetBlockProcessing returns the BlockProcessing field value if set, zero value otherwise.
func (o *PerformanceModel) GetBlockProcessing() BlockProcessingPerformanceModel {
if o == nil || IsNil(o.BlockProcessing) {
var ret BlockProcessingPerformanceModel
return ret
}
return *o.BlockProcessing
}
// GetBlockProcessingOk returns a tuple with the BlockProcessing field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceModel) GetBlockProcessingOk() (*BlockProcessingPerformanceModel, bool) {
if o == nil || IsNil(o.BlockProcessing) {
return nil, false
}
return o.BlockProcessing, true
}
// HasBlockProcessing returns a boolean if a field has been set.
func (o *PerformanceModel) HasBlockProcessing() bool {
if o != nil && !IsNil(o.BlockProcessing) {
return true
}
return false
}
// SetBlockProcessing gets a reference to the given BlockProcessingPerformanceModel and assigns it to the BlockProcessing field.
func (o *PerformanceModel) SetBlockProcessing(v BlockProcessingPerformanceModel) {
o.BlockProcessing = &v
}
// GetTxProcessing returns the TxProcessing field value if set, zero value otherwise.
func (o *PerformanceModel) GetTxProcessing() TxProcessingPerformanceModel {
if o == nil || IsNil(o.TxProcessing) {
var ret TxProcessingPerformanceModel
return ret
}
return *o.TxProcessing
}
// GetTxProcessingOk returns a tuple with the TxProcessing field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceModel) GetTxProcessingOk() (*TxProcessingPerformanceModel, bool) {
if o == nil || IsNil(o.TxProcessing) {
return nil, false
}
return o.TxProcessing, true
}
// HasTxProcessing returns a boolean if a field has been set.
func (o *PerformanceModel) HasTxProcessing() bool {
if o != nil && !IsNil(o.TxProcessing) {
return true
}
return false
}
// SetTxProcessing gets a reference to the given TxProcessingPerformanceModel and assigns it to the TxProcessing field.
func (o *PerformanceModel) SetTxProcessing(v TxProcessingPerformanceModel) {
o.TxProcessing = &v
}
// GetTxPool returns the TxPool field value if set, zero value otherwise.
func (o *PerformanceModel) GetTxPool() TxPoolPerformanceModel {
if o == nil || IsNil(o.TxPool) {
var ret TxPoolPerformanceModel
return ret
}
return *o.TxPool
}
// GetTxPoolOk returns a tuple with the TxPool field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceModel) GetTxPoolOk() (*TxPoolPerformanceModel, bool) {
if o == nil || IsNil(o.TxPool) {
return nil, false
}
return o.TxPool, true
}
// HasTxPool returns a boolean if a field has been set.
func (o *PerformanceModel) HasTxPool() bool {
if o != nil && !IsNil(o.TxPool) {
return true
}
return false
}
// SetTxPool gets a reference to the given TxPoolPerformanceModel and assigns it to the TxPool field.
func (o *PerformanceModel) SetTxPool(v TxPoolPerformanceModel) {
o.TxPool = &v
}
// GetDbStatInfo returns the DbStatInfo field value if set, zero value otherwise.
func (o *PerformanceModel) GetDbStatInfo() DbStatInfoModel {
if o == nil || IsNil(o.DbStatInfo) {
var ret DbStatInfoModel
return ret
}
return *o.DbStatInfo
}
// GetDbStatInfoOk returns a tuple with the DbStatInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PerformanceModel) GetDbStatInfoOk() (*DbStatInfoModel, bool) {
if o == nil || IsNil(o.DbStatInfo) {
return nil, false
}
return o.DbStatInfo, true
}
// HasDbStatInfo returns a boolean if a field has been set.
func (o *PerformanceModel) HasDbStatInfo() bool {
if o != nil && !IsNil(o.DbStatInfo) {
return true
}
return false
}
// SetDbStatInfo gets a reference to the given DbStatInfoModel and assigns it to the DbStatInfo field.
func (o *PerformanceModel) SetDbStatInfo(v DbStatInfoModel) {
o.DbStatInfo = &v
}
func (o PerformanceModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PerformanceModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.BlockProcessing) {
toSerialize["block_processing"] = o.BlockProcessing
}
if !IsNil(o.TxProcessing) {
toSerialize["tx_processing"] = o.TxProcessing
}
if !IsNil(o.TxPool) {
toSerialize["tx_pool"] = o.TxPool
}
if !IsNil(o.DbStatInfo) {
toSerialize["db_stat_info"] = o.DbStatInfo
}
return toSerialize, nil
}
type NullablePerformanceModel struct {
value *PerformanceModel
isSet bool
}
func (v NullablePerformanceModel) Get() *PerformanceModel {
return v.value
}
func (v *NullablePerformanceModel) Set(val *PerformanceModel) {
v.value = val
v.isSet = true
}
func (v NullablePerformanceModel) IsSet() bool {
return v.isSet
}
func (v *NullablePerformanceModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePerformanceModel(val *PerformanceModel) *NullablePerformanceModel {
return &NullablePerformanceModel{value: val, isSet: true}
}
func (v NullablePerformanceModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePerformanceModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,378 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the PosEntryModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PosEntryModel{}
// PosEntryModel struct for PosEntryModel
type PosEntryModel struct {
Amount *int32 `json:"amount,omitempty"`
GIndex *int32 `json:"g_index,omitempty"`
Keyimage *string `json:"keyimage,omitempty"`
BlockTimestamp *int32 `json:"block_timestamp,omitempty"`
StakeUnlockTime *int32 `json:"stake_unlock_time,omitempty"`
TxId *string `json:"tx_id,omitempty"`
TxOutIndex *int32 `json:"tx_out_index,omitempty"`
WalletIndex *int32 `json:"wallet_index,omitempty"`
}
// NewPosEntryModel instantiates a new PosEntryModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewPosEntryModel() *PosEntryModel {
this := PosEntryModel{}
return &this
}
// NewPosEntryModelWithDefaults instantiates a new PosEntryModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewPosEntryModelWithDefaults() *PosEntryModel {
this := PosEntryModel{}
return &this
}
// GetAmount returns the Amount field value if set, zero value otherwise.
func (o *PosEntryModel) GetAmount() int32 {
if o == nil || IsNil(o.Amount) {
var ret int32
return ret
}
return *o.Amount
}
// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetAmountOk() (*int32, bool) {
if o == nil || IsNil(o.Amount) {
return nil, false
}
return o.Amount, true
}
// HasAmount returns a boolean if a field has been set.
func (o *PosEntryModel) HasAmount() bool {
if o != nil && !IsNil(o.Amount) {
return true
}
return false
}
// SetAmount gets a reference to the given int32 and assigns it to the Amount field.
func (o *PosEntryModel) SetAmount(v int32) {
o.Amount = &v
}
// GetGIndex returns the GIndex field value if set, zero value otherwise.
func (o *PosEntryModel) GetGIndex() int32 {
if o == nil || IsNil(o.GIndex) {
var ret int32
return ret
}
return *o.GIndex
}
// GetGIndexOk returns a tuple with the GIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetGIndexOk() (*int32, bool) {
if o == nil || IsNil(o.GIndex) {
return nil, false
}
return o.GIndex, true
}
// HasGIndex returns a boolean if a field has been set.
func (o *PosEntryModel) HasGIndex() bool {
if o != nil && !IsNil(o.GIndex) {
return true
}
return false
}
// SetGIndex gets a reference to the given int32 and assigns it to the GIndex field.
func (o *PosEntryModel) SetGIndex(v int32) {
o.GIndex = &v
}
// GetKeyimage returns the Keyimage field value if set, zero value otherwise.
func (o *PosEntryModel) GetKeyimage() string {
if o == nil || IsNil(o.Keyimage) {
var ret string
return ret
}
return *o.Keyimage
}
// GetKeyimageOk returns a tuple with the Keyimage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetKeyimageOk() (*string, bool) {
if o == nil || IsNil(o.Keyimage) {
return nil, false
}
return o.Keyimage, true
}
// HasKeyimage returns a boolean if a field has been set.
func (o *PosEntryModel) HasKeyimage() bool {
if o != nil && !IsNil(o.Keyimage) {
return true
}
return false
}
// SetKeyimage gets a reference to the given string and assigns it to the Keyimage field.
func (o *PosEntryModel) SetKeyimage(v string) {
o.Keyimage = &v
}
// GetBlockTimestamp returns the BlockTimestamp field value if set, zero value otherwise.
func (o *PosEntryModel) GetBlockTimestamp() int32 {
if o == nil || IsNil(o.BlockTimestamp) {
var ret int32
return ret
}
return *o.BlockTimestamp
}
// GetBlockTimestampOk returns a tuple with the BlockTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetBlockTimestampOk() (*int32, bool) {
if o == nil || IsNil(o.BlockTimestamp) {
return nil, false
}
return o.BlockTimestamp, true
}
// HasBlockTimestamp returns a boolean if a field has been set.
func (o *PosEntryModel) HasBlockTimestamp() bool {
if o != nil && !IsNil(o.BlockTimestamp) {
return true
}
return false
}
// SetBlockTimestamp gets a reference to the given int32 and assigns it to the BlockTimestamp field.
func (o *PosEntryModel) SetBlockTimestamp(v int32) {
o.BlockTimestamp = &v
}
// GetStakeUnlockTime returns the StakeUnlockTime field value if set, zero value otherwise.
func (o *PosEntryModel) GetStakeUnlockTime() int32 {
if o == nil || IsNil(o.StakeUnlockTime) {
var ret int32
return ret
}
return *o.StakeUnlockTime
}
// GetStakeUnlockTimeOk returns a tuple with the StakeUnlockTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetStakeUnlockTimeOk() (*int32, bool) {
if o == nil || IsNil(o.StakeUnlockTime) {
return nil, false
}
return o.StakeUnlockTime, true
}
// HasStakeUnlockTime returns a boolean if a field has been set.
func (o *PosEntryModel) HasStakeUnlockTime() bool {
if o != nil && !IsNil(o.StakeUnlockTime) {
return true
}
return false
}
// SetStakeUnlockTime gets a reference to the given int32 and assigns it to the StakeUnlockTime field.
func (o *PosEntryModel) SetStakeUnlockTime(v int32) {
o.StakeUnlockTime = &v
}
// GetTxId returns the TxId field value if set, zero value otherwise.
func (o *PosEntryModel) GetTxId() string {
if o == nil || IsNil(o.TxId) {
var ret string
return ret
}
return *o.TxId
}
// GetTxIdOk returns a tuple with the TxId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetTxIdOk() (*string, bool) {
if o == nil || IsNil(o.TxId) {
return nil, false
}
return o.TxId, true
}
// HasTxId returns a boolean if a field has been set.
func (o *PosEntryModel) HasTxId() bool {
if o != nil && !IsNil(o.TxId) {
return true
}
return false
}
// SetTxId gets a reference to the given string and assigns it to the TxId field.
func (o *PosEntryModel) SetTxId(v string) {
o.TxId = &v
}
// GetTxOutIndex returns the TxOutIndex field value if set, zero value otherwise.
func (o *PosEntryModel) GetTxOutIndex() int32 {
if o == nil || IsNil(o.TxOutIndex) {
var ret int32
return ret
}
return *o.TxOutIndex
}
// GetTxOutIndexOk returns a tuple with the TxOutIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetTxOutIndexOk() (*int32, bool) {
if o == nil || IsNil(o.TxOutIndex) {
return nil, false
}
return o.TxOutIndex, true
}
// HasTxOutIndex returns a boolean if a field has been set.
func (o *PosEntryModel) HasTxOutIndex() bool {
if o != nil && !IsNil(o.TxOutIndex) {
return true
}
return false
}
// SetTxOutIndex gets a reference to the given int32 and assigns it to the TxOutIndex field.
func (o *PosEntryModel) SetTxOutIndex(v int32) {
o.TxOutIndex = &v
}
// GetWalletIndex returns the WalletIndex field value if set, zero value otherwise.
func (o *PosEntryModel) GetWalletIndex() int32 {
if o == nil || IsNil(o.WalletIndex) {
var ret int32
return ret
}
return *o.WalletIndex
}
// GetWalletIndexOk returns a tuple with the WalletIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PosEntryModel) GetWalletIndexOk() (*int32, bool) {
if o == nil || IsNil(o.WalletIndex) {
return nil, false
}
return o.WalletIndex, true
}
// HasWalletIndex returns a boolean if a field has been set.
func (o *PosEntryModel) HasWalletIndex() bool {
if o != nil && !IsNil(o.WalletIndex) {
return true
}
return false
}
// SetWalletIndex gets a reference to the given int32 and assigns it to the WalletIndex field.
func (o *PosEntryModel) SetWalletIndex(v int32) {
o.WalletIndex = &v
}
func (o PosEntryModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PosEntryModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Amount) {
toSerialize["amount"] = o.Amount
}
if !IsNil(o.GIndex) {
toSerialize["g_index"] = o.GIndex
}
if !IsNil(o.Keyimage) {
toSerialize["keyimage"] = o.Keyimage
}
if !IsNil(o.BlockTimestamp) {
toSerialize["block_timestamp"] = o.BlockTimestamp
}
if !IsNil(o.StakeUnlockTime) {
toSerialize["stake_unlock_time"] = o.StakeUnlockTime
}
if !IsNil(o.TxId) {
toSerialize["tx_id"] = o.TxId
}
if !IsNil(o.TxOutIndex) {
toSerialize["tx_out_index"] = o.TxOutIndex
}
if !IsNil(o.WalletIndex) {
toSerialize["wallet_index"] = o.WalletIndex
}
return toSerialize, nil
}
type NullablePosEntryModel struct {
value *PosEntryModel
isSet bool
}
func (v NullablePosEntryModel) Get() *PosEntryModel {
return v.value
}
func (v *NullablePosEntryModel) Set(val *PosEntryModel) {
v.value = val
v.isSet = true
}
func (v NullablePosEntryModel) IsSet() bool {
return v.isSet
}
func (v *NullablePosEntryModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePosEntryModel(val *PosEntryModel) *NullablePosEntryModel {
return &NullablePosEntryModel{value: val, isSet: true}
}
func (v NullablePosEntryModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePosEntryModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,126 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the SubmitBlockRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SubmitBlockRequestModel{}
// SubmitBlockRequestModel struct for SubmitBlockRequestModel
type SubmitBlockRequestModel struct {
BlockBlob *string `json:"block_blob,omitempty"`
}
// NewSubmitBlockRequestModel instantiates a new SubmitBlockRequestModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewSubmitBlockRequestModel() *SubmitBlockRequestModel {
this := SubmitBlockRequestModel{}
return &this
}
// NewSubmitBlockRequestModelWithDefaults instantiates a new SubmitBlockRequestModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewSubmitBlockRequestModelWithDefaults() *SubmitBlockRequestModel {
this := SubmitBlockRequestModel{}
return &this
}
// GetBlockBlob returns the BlockBlob field value if set, zero value otherwise.
func (o *SubmitBlockRequestModel) GetBlockBlob() string {
if o == nil || IsNil(o.BlockBlob) {
var ret string
return ret
}
return *o.BlockBlob
}
// GetBlockBlobOk returns a tuple with the BlockBlob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubmitBlockRequestModel) GetBlockBlobOk() (*string, bool) {
if o == nil || IsNil(o.BlockBlob) {
return nil, false
}
return o.BlockBlob, true
}
// HasBlockBlob returns a boolean if a field has been set.
func (o *SubmitBlockRequestModel) HasBlockBlob() bool {
if o != nil && !IsNil(o.BlockBlob) {
return true
}
return false
}
// SetBlockBlob gets a reference to the given string and assigns it to the BlockBlob field.
func (o *SubmitBlockRequestModel) SetBlockBlob(v string) {
o.BlockBlob = &v
}
func (o SubmitBlockRequestModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SubmitBlockRequestModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.BlockBlob) {
toSerialize["block_blob"] = o.BlockBlob
}
return toSerialize, nil
}
type NullableSubmitBlockRequestModel struct {
value *SubmitBlockRequestModel
isSet bool
}
func (v NullableSubmitBlockRequestModel) Get() *SubmitBlockRequestModel {
return v.value
}
func (v *NullableSubmitBlockRequestModel) Set(val *SubmitBlockRequestModel) {
v.value = val
v.isSet = true
}
func (v NullableSubmitBlockRequestModel) IsSet() bool {
return v.isSet
}
func (v *NullableSubmitBlockRequestModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSubmitBlockRequestModel(val *SubmitBlockRequestModel) *NullableSubmitBlockRequestModel {
return &NullableSubmitBlockRequestModel{value: val, isSet: true}
}
func (v NullableSubmitBlockRequestModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSubmitBlockRequestModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,126 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the SubmitBlockResponseModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SubmitBlockResponseModel{}
// SubmitBlockResponseModel struct for SubmitBlockResponseModel
type SubmitBlockResponseModel struct {
Status *string `json:"status,omitempty"`
}
// NewSubmitBlockResponseModel instantiates a new SubmitBlockResponseModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewSubmitBlockResponseModel() *SubmitBlockResponseModel {
this := SubmitBlockResponseModel{}
return &this
}
// NewSubmitBlockResponseModelWithDefaults instantiates a new SubmitBlockResponseModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewSubmitBlockResponseModelWithDefaults() *SubmitBlockResponseModel {
this := SubmitBlockResponseModel{}
return &this
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *SubmitBlockResponseModel) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubmitBlockResponseModel) GetStatusOk() (*string, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *SubmitBlockResponseModel) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *SubmitBlockResponseModel) SetStatus(v string) {
o.Status = &v
}
func (o SubmitBlockResponseModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SubmitBlockResponseModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
return toSerialize, nil
}
type NullableSubmitBlockResponseModel struct {
value *SubmitBlockResponseModel
isSet bool
}
func (v NullableSubmitBlockResponseModel) Get() *SubmitBlockResponseModel {
return v.value
}
func (v *NullableSubmitBlockResponseModel) Set(val *SubmitBlockResponseModel) {
v.value = val
v.isSet = true
}
func (v NullableSubmitBlockResponseModel) IsSet() bool {
return v.isSet
}
func (v *NullableSubmitBlockResponseModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSubmitBlockResponseModel(val *SubmitBlockResponseModel) *NullableSubmitBlockResponseModel {
return &NullableSubmitBlockResponseModel{value: val, isSet: true}
}
func (v NullableSubmitBlockResponseModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSubmitBlockResponseModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,198 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TransactionAttachmentModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionAttachmentModel{}
// TransactionAttachmentModel struct for TransactionAttachmentModel
type TransactionAttachmentModel struct {
Type *string `json:"type,omitempty"`
ShortView *string `json:"short_view,omitempty"`
DetailsView *string `json:"details_view,omitempty"`
}
// NewTransactionAttachmentModel instantiates a new TransactionAttachmentModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTransactionAttachmentModel() *TransactionAttachmentModel {
this := TransactionAttachmentModel{}
return &this
}
// NewTransactionAttachmentModelWithDefaults instantiates a new TransactionAttachmentModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTransactionAttachmentModelWithDefaults() *TransactionAttachmentModel {
this := TransactionAttachmentModel{}
return &this
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *TransactionAttachmentModel) GetType() string {
if o == nil || IsNil(o.Type) {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionAttachmentModel) GetTypeOk() (*string, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *TransactionAttachmentModel) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *TransactionAttachmentModel) SetType(v string) {
o.Type = &v
}
// GetShortView returns the ShortView field value if set, zero value otherwise.
func (o *TransactionAttachmentModel) GetShortView() string {
if o == nil || IsNil(o.ShortView) {
var ret string
return ret
}
return *o.ShortView
}
// GetShortViewOk returns a tuple with the ShortView field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionAttachmentModel) GetShortViewOk() (*string, bool) {
if o == nil || IsNil(o.ShortView) {
return nil, false
}
return o.ShortView, true
}
// HasShortView returns a boolean if a field has been set.
func (o *TransactionAttachmentModel) HasShortView() bool {
if o != nil && !IsNil(o.ShortView) {
return true
}
return false
}
// SetShortView gets a reference to the given string and assigns it to the ShortView field.
func (o *TransactionAttachmentModel) SetShortView(v string) {
o.ShortView = &v
}
// GetDetailsView returns the DetailsView field value if set, zero value otherwise.
func (o *TransactionAttachmentModel) GetDetailsView() string {
if o == nil || IsNil(o.DetailsView) {
var ret string
return ret
}
return *o.DetailsView
}
// GetDetailsViewOk returns a tuple with the DetailsView field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionAttachmentModel) GetDetailsViewOk() (*string, bool) {
if o == nil || IsNil(o.DetailsView) {
return nil, false
}
return o.DetailsView, true
}
// HasDetailsView returns a boolean if a field has been set.
func (o *TransactionAttachmentModel) HasDetailsView() bool {
if o != nil && !IsNil(o.DetailsView) {
return true
}
return false
}
// SetDetailsView gets a reference to the given string and assigns it to the DetailsView field.
func (o *TransactionAttachmentModel) SetDetailsView(v string) {
o.DetailsView = &v
}
func (o TransactionAttachmentModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TransactionAttachmentModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
if !IsNil(o.ShortView) {
toSerialize["short_view"] = o.ShortView
}
if !IsNil(o.DetailsView) {
toSerialize["details_view"] = o.DetailsView
}
return toSerialize, nil
}
type NullableTransactionAttachmentModel struct {
value *TransactionAttachmentModel
isSet bool
}
func (v NullableTransactionAttachmentModel) Get() *TransactionAttachmentModel {
return v.value
}
func (v *NullableTransactionAttachmentModel) Set(val *TransactionAttachmentModel) {
v.value = val
v.isSet = true
}
func (v NullableTransactionAttachmentModel) IsSet() bool {
return v.isSet
}
func (v *NullableTransactionAttachmentModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTransactionAttachmentModel(val *TransactionAttachmentModel) *NullableTransactionAttachmentModel {
return &NullableTransactionAttachmentModel{value: val, isSet: true}
}
func (v NullableTransactionAttachmentModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTransactionAttachmentModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,558 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TransactionDetailsModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionDetailsModel{}
// TransactionDetailsModel struct for TransactionDetailsModel
type TransactionDetailsModel struct {
Amount *int32 `json:"amount,omitempty"`
Attachments []TransactionAttachmentModel `json:"attachments,omitempty"`
Blob *string `json:"blob,omitempty"`
BlobSize *int32 `json:"blob_size,omitempty"`
Extra []TransactionExtraModel `json:"extra,omitempty"`
Fee *int32 `json:"fee,omitempty"`
Id *string `json:"id,omitempty"`
Ins []TransactionInputModel `json:"ins,omitempty"`
KeeperBlock *int64 `json:"keeper_block,omitempty"`
ObjectInJson *string `json:"object_in_json,omitempty"`
Outs []TransactionOutputModel `json:"outs,omitempty"`
PubKey *string `json:"pub_key,omitempty"`
Timestamp *int32 `json:"timestamp,omitempty"`
}
// NewTransactionDetailsModel instantiates a new TransactionDetailsModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTransactionDetailsModel() *TransactionDetailsModel {
this := TransactionDetailsModel{}
return &this
}
// NewTransactionDetailsModelWithDefaults instantiates a new TransactionDetailsModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTransactionDetailsModelWithDefaults() *TransactionDetailsModel {
this := TransactionDetailsModel{}
return &this
}
// GetAmount returns the Amount field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetAmount() int32 {
if o == nil || IsNil(o.Amount) {
var ret int32
return ret
}
return *o.Amount
}
// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetAmountOk() (*int32, bool) {
if o == nil || IsNil(o.Amount) {
return nil, false
}
return o.Amount, true
}
// HasAmount returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasAmount() bool {
if o != nil && !IsNil(o.Amount) {
return true
}
return false
}
// SetAmount gets a reference to the given int32 and assigns it to the Amount field.
func (o *TransactionDetailsModel) SetAmount(v int32) {
o.Amount = &v
}
// GetAttachments returns the Attachments field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetAttachments() []TransactionAttachmentModel {
if o == nil || IsNil(o.Attachments) {
var ret []TransactionAttachmentModel
return ret
}
return o.Attachments
}
// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetAttachmentsOk() ([]TransactionAttachmentModel, bool) {
if o == nil || IsNil(o.Attachments) {
return nil, false
}
return o.Attachments, true
}
// HasAttachments returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasAttachments() bool {
if o != nil && !IsNil(o.Attachments) {
return true
}
return false
}
// SetAttachments gets a reference to the given []TransactionAttachmentModel and assigns it to the Attachments field.
func (o *TransactionDetailsModel) SetAttachments(v []TransactionAttachmentModel) {
o.Attachments = v
}
// GetBlob returns the Blob field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetBlob() string {
if o == nil || IsNil(o.Blob) {
var ret string
return ret
}
return *o.Blob
}
// GetBlobOk returns a tuple with the Blob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetBlobOk() (*string, bool) {
if o == nil || IsNil(o.Blob) {
return nil, false
}
return o.Blob, true
}
// HasBlob returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasBlob() bool {
if o != nil && !IsNil(o.Blob) {
return true
}
return false
}
// SetBlob gets a reference to the given string and assigns it to the Blob field.
func (o *TransactionDetailsModel) SetBlob(v string) {
o.Blob = &v
}
// GetBlobSize returns the BlobSize field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetBlobSize() int32 {
if o == nil || IsNil(o.BlobSize) {
var ret int32
return ret
}
return *o.BlobSize
}
// GetBlobSizeOk returns a tuple with the BlobSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetBlobSizeOk() (*int32, bool) {
if o == nil || IsNil(o.BlobSize) {
return nil, false
}
return o.BlobSize, true
}
// HasBlobSize returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasBlobSize() bool {
if o != nil && !IsNil(o.BlobSize) {
return true
}
return false
}
// SetBlobSize gets a reference to the given int32 and assigns it to the BlobSize field.
func (o *TransactionDetailsModel) SetBlobSize(v int32) {
o.BlobSize = &v
}
// GetExtra returns the Extra field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetExtra() []TransactionExtraModel {
if o == nil || IsNil(o.Extra) {
var ret []TransactionExtraModel
return ret
}
return o.Extra
}
// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetExtraOk() ([]TransactionExtraModel, bool) {
if o == nil || IsNil(o.Extra) {
return nil, false
}
return o.Extra, true
}
// HasExtra returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasExtra() bool {
if o != nil && !IsNil(o.Extra) {
return true
}
return false
}
// SetExtra gets a reference to the given []TransactionExtraModel and assigns it to the Extra field.
func (o *TransactionDetailsModel) SetExtra(v []TransactionExtraModel) {
o.Extra = v
}
// GetFee returns the Fee field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetFee() int32 {
if o == nil || IsNil(o.Fee) {
var ret int32
return ret
}
return *o.Fee
}
// GetFeeOk returns a tuple with the Fee field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetFeeOk() (*int32, bool) {
if o == nil || IsNil(o.Fee) {
return nil, false
}
return o.Fee, true
}
// HasFee returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasFee() bool {
if o != nil && !IsNil(o.Fee) {
return true
}
return false
}
// SetFee gets a reference to the given int32 and assigns it to the Fee field.
func (o *TransactionDetailsModel) SetFee(v int32) {
o.Fee = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *TransactionDetailsModel) SetId(v string) {
o.Id = &v
}
// GetIns returns the Ins field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetIns() []TransactionInputModel {
if o == nil || IsNil(o.Ins) {
var ret []TransactionInputModel
return ret
}
return o.Ins
}
// GetInsOk returns a tuple with the Ins field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetInsOk() ([]TransactionInputModel, bool) {
if o == nil || IsNil(o.Ins) {
return nil, false
}
return o.Ins, true
}
// HasIns returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasIns() bool {
if o != nil && !IsNil(o.Ins) {
return true
}
return false
}
// SetIns gets a reference to the given []TransactionInputModel and assigns it to the Ins field.
func (o *TransactionDetailsModel) SetIns(v []TransactionInputModel) {
o.Ins = v
}
// GetKeeperBlock returns the KeeperBlock field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetKeeperBlock() int64 {
if o == nil || IsNil(o.KeeperBlock) {
var ret int64
return ret
}
return *o.KeeperBlock
}
// GetKeeperBlockOk returns a tuple with the KeeperBlock field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetKeeperBlockOk() (*int64, bool) {
if o == nil || IsNil(o.KeeperBlock) {
return nil, false
}
return o.KeeperBlock, true
}
// HasKeeperBlock returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasKeeperBlock() bool {
if o != nil && !IsNil(o.KeeperBlock) {
return true
}
return false
}
// SetKeeperBlock gets a reference to the given int64 and assigns it to the KeeperBlock field.
func (o *TransactionDetailsModel) SetKeeperBlock(v int64) {
o.KeeperBlock = &v
}
// GetObjectInJson returns the ObjectInJson field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetObjectInJson() string {
if o == nil || IsNil(o.ObjectInJson) {
var ret string
return ret
}
return *o.ObjectInJson
}
// GetObjectInJsonOk returns a tuple with the ObjectInJson field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetObjectInJsonOk() (*string, bool) {
if o == nil || IsNil(o.ObjectInJson) {
return nil, false
}
return o.ObjectInJson, true
}
// HasObjectInJson returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasObjectInJson() bool {
if o != nil && !IsNil(o.ObjectInJson) {
return true
}
return false
}
// SetObjectInJson gets a reference to the given string and assigns it to the ObjectInJson field.
func (o *TransactionDetailsModel) SetObjectInJson(v string) {
o.ObjectInJson = &v
}
// GetOuts returns the Outs field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetOuts() []TransactionOutputModel {
if o == nil || IsNil(o.Outs) {
var ret []TransactionOutputModel
return ret
}
return o.Outs
}
// GetOutsOk returns a tuple with the Outs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetOutsOk() ([]TransactionOutputModel, bool) {
if o == nil || IsNil(o.Outs) {
return nil, false
}
return o.Outs, true
}
// HasOuts returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasOuts() bool {
if o != nil && !IsNil(o.Outs) {
return true
}
return false
}
// SetOuts gets a reference to the given []TransactionOutputModel and assigns it to the Outs field.
func (o *TransactionDetailsModel) SetOuts(v []TransactionOutputModel) {
o.Outs = v
}
// GetPubKey returns the PubKey field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetPubKey() string {
if o == nil || IsNil(o.PubKey) {
var ret string
return ret
}
return *o.PubKey
}
// GetPubKeyOk returns a tuple with the PubKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetPubKeyOk() (*string, bool) {
if o == nil || IsNil(o.PubKey) {
return nil, false
}
return o.PubKey, true
}
// HasPubKey returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasPubKey() bool {
if o != nil && !IsNil(o.PubKey) {
return true
}
return false
}
// SetPubKey gets a reference to the given string and assigns it to the PubKey field.
func (o *TransactionDetailsModel) SetPubKey(v string) {
o.PubKey = &v
}
// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *TransactionDetailsModel) GetTimestamp() int32 {
if o == nil || IsNil(o.Timestamp) {
var ret int32
return ret
}
return *o.Timestamp
}
// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionDetailsModel) GetTimestampOk() (*int32, bool) {
if o == nil || IsNil(o.Timestamp) {
return nil, false
}
return o.Timestamp, true
}
// HasTimestamp returns a boolean if a field has been set.
func (o *TransactionDetailsModel) HasTimestamp() bool {
if o != nil && !IsNil(o.Timestamp) {
return true
}
return false
}
// SetTimestamp gets a reference to the given int32 and assigns it to the Timestamp field.
func (o *TransactionDetailsModel) SetTimestamp(v int32) {
o.Timestamp = &v
}
func (o TransactionDetailsModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TransactionDetailsModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Amount) {
toSerialize["amount"] = o.Amount
}
if !IsNil(o.Attachments) {
toSerialize["attachments"] = o.Attachments
}
if !IsNil(o.Blob) {
toSerialize["blob"] = o.Blob
}
if !IsNil(o.BlobSize) {
toSerialize["blob_size"] = o.BlobSize
}
if !IsNil(o.Extra) {
toSerialize["extra"] = o.Extra
}
if !IsNil(o.Fee) {
toSerialize["fee"] = o.Fee
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Ins) {
toSerialize["ins"] = o.Ins
}
if !IsNil(o.KeeperBlock) {
toSerialize["keeper_block"] = o.KeeperBlock
}
if !IsNil(o.ObjectInJson) {
toSerialize["object_in_json"] = o.ObjectInJson
}
if !IsNil(o.Outs) {
toSerialize["outs"] = o.Outs
}
if !IsNil(o.PubKey) {
toSerialize["pub_key"] = o.PubKey
}
if !IsNil(o.Timestamp) {
toSerialize["timestamp"] = o.Timestamp
}
return toSerialize, nil
}
type NullableTransactionDetailsModel struct {
value *TransactionDetailsModel
isSet bool
}
func (v NullableTransactionDetailsModel) Get() *TransactionDetailsModel {
return v.value
}
func (v *NullableTransactionDetailsModel) Set(val *TransactionDetailsModel) {
v.value = val
v.isSet = true
}
func (v NullableTransactionDetailsModel) IsSet() bool {
return v.isSet
}
func (v *NullableTransactionDetailsModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTransactionDetailsModel(val *TransactionDetailsModel) *NullableTransactionDetailsModel {
return &NullableTransactionDetailsModel{value: val, isSet: true}
}
func (v NullableTransactionDetailsModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTransactionDetailsModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,198 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TransactionExtraModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionExtraModel{}
// TransactionExtraModel struct for TransactionExtraModel
type TransactionExtraModel struct {
Type *string `json:"type,omitempty"`
ShortView *string `json:"short_view,omitempty"`
DetailsView *string `json:"details_view,omitempty"`
}
// NewTransactionExtraModel instantiates a new TransactionExtraModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTransactionExtraModel() *TransactionExtraModel {
this := TransactionExtraModel{}
return &this
}
// NewTransactionExtraModelWithDefaults instantiates a new TransactionExtraModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTransactionExtraModelWithDefaults() *TransactionExtraModel {
this := TransactionExtraModel{}
return &this
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *TransactionExtraModel) GetType() string {
if o == nil || IsNil(o.Type) {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionExtraModel) GetTypeOk() (*string, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *TransactionExtraModel) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *TransactionExtraModel) SetType(v string) {
o.Type = &v
}
// GetShortView returns the ShortView field value if set, zero value otherwise.
func (o *TransactionExtraModel) GetShortView() string {
if o == nil || IsNil(o.ShortView) {
var ret string
return ret
}
return *o.ShortView
}
// GetShortViewOk returns a tuple with the ShortView field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionExtraModel) GetShortViewOk() (*string, bool) {
if o == nil || IsNil(o.ShortView) {
return nil, false
}
return o.ShortView, true
}
// HasShortView returns a boolean if a field has been set.
func (o *TransactionExtraModel) HasShortView() bool {
if o != nil && !IsNil(o.ShortView) {
return true
}
return false
}
// SetShortView gets a reference to the given string and assigns it to the ShortView field.
func (o *TransactionExtraModel) SetShortView(v string) {
o.ShortView = &v
}
// GetDetailsView returns the DetailsView field value if set, zero value otherwise.
func (o *TransactionExtraModel) GetDetailsView() string {
if o == nil || IsNil(o.DetailsView) {
var ret string
return ret
}
return *o.DetailsView
}
// GetDetailsViewOk returns a tuple with the DetailsView field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionExtraModel) GetDetailsViewOk() (*string, bool) {
if o == nil || IsNil(o.DetailsView) {
return nil, false
}
return o.DetailsView, true
}
// HasDetailsView returns a boolean if a field has been set.
func (o *TransactionExtraModel) HasDetailsView() bool {
if o != nil && !IsNil(o.DetailsView) {
return true
}
return false
}
// SetDetailsView gets a reference to the given string and assigns it to the DetailsView field.
func (o *TransactionExtraModel) SetDetailsView(v string) {
o.DetailsView = &v
}
func (o TransactionExtraModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TransactionExtraModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
if !IsNil(o.ShortView) {
toSerialize["short_view"] = o.ShortView
}
if !IsNil(o.DetailsView) {
toSerialize["details_view"] = o.DetailsView
}
return toSerialize, nil
}
type NullableTransactionExtraModel struct {
value *TransactionExtraModel
isSet bool
}
func (v NullableTransactionExtraModel) Get() *TransactionExtraModel {
return v.value
}
func (v *NullableTransactionExtraModel) Set(val *TransactionExtraModel) {
v.value = val
v.isSet = true
}
func (v NullableTransactionExtraModel) IsSet() bool {
return v.isSet
}
func (v *NullableTransactionExtraModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTransactionExtraModel(val *TransactionExtraModel) *NullableTransactionExtraModel {
return &NullableTransactionExtraModel{value: val, isSet: true}
}
func (v NullableTransactionExtraModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTransactionExtraModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,270 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TransactionInputModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionInputModel{}
// TransactionInputModel struct for TransactionInputModel
type TransactionInputModel struct {
Amount *int32 `json:"amount,omitempty"`
GlobalIndexes []int32 `json:"global_indexes,omitempty"`
HtlcOrigin *string `json:"htlc_origin,omitempty"`
KimageOrMsId *string `json:"kimage_or_ms_id,omitempty"`
MultisigCount *int32 `json:"multisig_count,omitempty"`
}
// NewTransactionInputModel instantiates a new TransactionInputModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTransactionInputModel() *TransactionInputModel {
this := TransactionInputModel{}
return &this
}
// NewTransactionInputModelWithDefaults instantiates a new TransactionInputModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTransactionInputModelWithDefaults() *TransactionInputModel {
this := TransactionInputModel{}
return &this
}
// GetAmount returns the Amount field value if set, zero value otherwise.
func (o *TransactionInputModel) GetAmount() int32 {
if o == nil || IsNil(o.Amount) {
var ret int32
return ret
}
return *o.Amount
}
// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionInputModel) GetAmountOk() (*int32, bool) {
if o == nil || IsNil(o.Amount) {
return nil, false
}
return o.Amount, true
}
// HasAmount returns a boolean if a field has been set.
func (o *TransactionInputModel) HasAmount() bool {
if o != nil && !IsNil(o.Amount) {
return true
}
return false
}
// SetAmount gets a reference to the given int32 and assigns it to the Amount field.
func (o *TransactionInputModel) SetAmount(v int32) {
o.Amount = &v
}
// GetGlobalIndexes returns the GlobalIndexes field value if set, zero value otherwise.
func (o *TransactionInputModel) GetGlobalIndexes() []int32 {
if o == nil || IsNil(o.GlobalIndexes) {
var ret []int32
return ret
}
return o.GlobalIndexes
}
// GetGlobalIndexesOk returns a tuple with the GlobalIndexes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionInputModel) GetGlobalIndexesOk() ([]int32, bool) {
if o == nil || IsNil(o.GlobalIndexes) {
return nil, false
}
return o.GlobalIndexes, true
}
// HasGlobalIndexes returns a boolean if a field has been set.
func (o *TransactionInputModel) HasGlobalIndexes() bool {
if o != nil && !IsNil(o.GlobalIndexes) {
return true
}
return false
}
// SetGlobalIndexes gets a reference to the given []int32 and assigns it to the GlobalIndexes field.
func (o *TransactionInputModel) SetGlobalIndexes(v []int32) {
o.GlobalIndexes = v
}
// GetHtlcOrigin returns the HtlcOrigin field value if set, zero value otherwise.
func (o *TransactionInputModel) GetHtlcOrigin() string {
if o == nil || IsNil(o.HtlcOrigin) {
var ret string
return ret
}
return *o.HtlcOrigin
}
// GetHtlcOriginOk returns a tuple with the HtlcOrigin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionInputModel) GetHtlcOriginOk() (*string, bool) {
if o == nil || IsNil(o.HtlcOrigin) {
return nil, false
}
return o.HtlcOrigin, true
}
// HasHtlcOrigin returns a boolean if a field has been set.
func (o *TransactionInputModel) HasHtlcOrigin() bool {
if o != nil && !IsNil(o.HtlcOrigin) {
return true
}
return false
}
// SetHtlcOrigin gets a reference to the given string and assigns it to the HtlcOrigin field.
func (o *TransactionInputModel) SetHtlcOrigin(v string) {
o.HtlcOrigin = &v
}
// GetKimageOrMsId returns the KimageOrMsId field value if set, zero value otherwise.
func (o *TransactionInputModel) GetKimageOrMsId() string {
if o == nil || IsNil(o.KimageOrMsId) {
var ret string
return ret
}
return *o.KimageOrMsId
}
// GetKimageOrMsIdOk returns a tuple with the KimageOrMsId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionInputModel) GetKimageOrMsIdOk() (*string, bool) {
if o == nil || IsNil(o.KimageOrMsId) {
return nil, false
}
return o.KimageOrMsId, true
}
// HasKimageOrMsId returns a boolean if a field has been set.
func (o *TransactionInputModel) HasKimageOrMsId() bool {
if o != nil && !IsNil(o.KimageOrMsId) {
return true
}
return false
}
// SetKimageOrMsId gets a reference to the given string and assigns it to the KimageOrMsId field.
func (o *TransactionInputModel) SetKimageOrMsId(v string) {
o.KimageOrMsId = &v
}
// GetMultisigCount returns the MultisigCount field value if set, zero value otherwise.
func (o *TransactionInputModel) GetMultisigCount() int32 {
if o == nil || IsNil(o.MultisigCount) {
var ret int32
return ret
}
return *o.MultisigCount
}
// GetMultisigCountOk returns a tuple with the MultisigCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionInputModel) GetMultisigCountOk() (*int32, bool) {
if o == nil || IsNil(o.MultisigCount) {
return nil, false
}
return o.MultisigCount, true
}
// HasMultisigCount returns a boolean if a field has been set.
func (o *TransactionInputModel) HasMultisigCount() bool {
if o != nil && !IsNil(o.MultisigCount) {
return true
}
return false
}
// SetMultisigCount gets a reference to the given int32 and assigns it to the MultisigCount field.
func (o *TransactionInputModel) SetMultisigCount(v int32) {
o.MultisigCount = &v
}
func (o TransactionInputModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TransactionInputModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Amount) {
toSerialize["amount"] = o.Amount
}
if !IsNil(o.GlobalIndexes) {
toSerialize["global_indexes"] = o.GlobalIndexes
}
if !IsNil(o.HtlcOrigin) {
toSerialize["htlc_origin"] = o.HtlcOrigin
}
if !IsNil(o.KimageOrMsId) {
toSerialize["kimage_or_ms_id"] = o.KimageOrMsId
}
if !IsNil(o.MultisigCount) {
toSerialize["multisig_count"] = o.MultisigCount
}
return toSerialize, nil
}
type NullableTransactionInputModel struct {
value *TransactionInputModel
isSet bool
}
func (v NullableTransactionInputModel) Get() *TransactionInputModel {
return v.value
}
func (v *NullableTransactionInputModel) Set(val *TransactionInputModel) {
v.value = val
v.isSet = true
}
func (v NullableTransactionInputModel) IsSet() bool {
return v.isSet
}
func (v *NullableTransactionInputModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTransactionInputModel(val *TransactionInputModel) *NullableTransactionInputModel {
return &NullableTransactionInputModel{value: val, isSet: true}
}
func (v NullableTransactionInputModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTransactionInputModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,270 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TransactionOutputModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionOutputModel{}
// TransactionOutputModel struct for TransactionOutputModel
type TransactionOutputModel struct {
Amount *int32 `json:"amount,omitempty"`
GlobalIndex *int32 `json:"global_index,omitempty"`
IsSpent *bool `json:"is_spent,omitempty"`
MinimumSigs *int32 `json:"minimum_sigs,omitempty"`
PubKeys []string `json:"pub_keys,omitempty"`
}
// NewTransactionOutputModel instantiates a new TransactionOutputModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTransactionOutputModel() *TransactionOutputModel {
this := TransactionOutputModel{}
return &this
}
// NewTransactionOutputModelWithDefaults instantiates a new TransactionOutputModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTransactionOutputModelWithDefaults() *TransactionOutputModel {
this := TransactionOutputModel{}
return &this
}
// GetAmount returns the Amount field value if set, zero value otherwise.
func (o *TransactionOutputModel) GetAmount() int32 {
if o == nil || IsNil(o.Amount) {
var ret int32
return ret
}
return *o.Amount
}
// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionOutputModel) GetAmountOk() (*int32, bool) {
if o == nil || IsNil(o.Amount) {
return nil, false
}
return o.Amount, true
}
// HasAmount returns a boolean if a field has been set.
func (o *TransactionOutputModel) HasAmount() bool {
if o != nil && !IsNil(o.Amount) {
return true
}
return false
}
// SetAmount gets a reference to the given int32 and assigns it to the Amount field.
func (o *TransactionOutputModel) SetAmount(v int32) {
o.Amount = &v
}
// GetGlobalIndex returns the GlobalIndex field value if set, zero value otherwise.
func (o *TransactionOutputModel) GetGlobalIndex() int32 {
if o == nil || IsNil(o.GlobalIndex) {
var ret int32
return ret
}
return *o.GlobalIndex
}
// GetGlobalIndexOk returns a tuple with the GlobalIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionOutputModel) GetGlobalIndexOk() (*int32, bool) {
if o == nil || IsNil(o.GlobalIndex) {
return nil, false
}
return o.GlobalIndex, true
}
// HasGlobalIndex returns a boolean if a field has been set.
func (o *TransactionOutputModel) HasGlobalIndex() bool {
if o != nil && !IsNil(o.GlobalIndex) {
return true
}
return false
}
// SetGlobalIndex gets a reference to the given int32 and assigns it to the GlobalIndex field.
func (o *TransactionOutputModel) SetGlobalIndex(v int32) {
o.GlobalIndex = &v
}
// GetIsSpent returns the IsSpent field value if set, zero value otherwise.
func (o *TransactionOutputModel) GetIsSpent() bool {
if o == nil || IsNil(o.IsSpent) {
var ret bool
return ret
}
return *o.IsSpent
}
// GetIsSpentOk returns a tuple with the IsSpent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionOutputModel) GetIsSpentOk() (*bool, bool) {
if o == nil || IsNil(o.IsSpent) {
return nil, false
}
return o.IsSpent, true
}
// HasIsSpent returns a boolean if a field has been set.
func (o *TransactionOutputModel) HasIsSpent() bool {
if o != nil && !IsNil(o.IsSpent) {
return true
}
return false
}
// SetIsSpent gets a reference to the given bool and assigns it to the IsSpent field.
func (o *TransactionOutputModel) SetIsSpent(v bool) {
o.IsSpent = &v
}
// GetMinimumSigs returns the MinimumSigs field value if set, zero value otherwise.
func (o *TransactionOutputModel) GetMinimumSigs() int32 {
if o == nil || IsNil(o.MinimumSigs) {
var ret int32
return ret
}
return *o.MinimumSigs
}
// GetMinimumSigsOk returns a tuple with the MinimumSigs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionOutputModel) GetMinimumSigsOk() (*int32, bool) {
if o == nil || IsNil(o.MinimumSigs) {
return nil, false
}
return o.MinimumSigs, true
}
// HasMinimumSigs returns a boolean if a field has been set.
func (o *TransactionOutputModel) HasMinimumSigs() bool {
if o != nil && !IsNil(o.MinimumSigs) {
return true
}
return false
}
// SetMinimumSigs gets a reference to the given int32 and assigns it to the MinimumSigs field.
func (o *TransactionOutputModel) SetMinimumSigs(v int32) {
o.MinimumSigs = &v
}
// GetPubKeys returns the PubKeys field value if set, zero value otherwise.
func (o *TransactionOutputModel) GetPubKeys() []string {
if o == nil || IsNil(o.PubKeys) {
var ret []string
return ret
}
return o.PubKeys
}
// GetPubKeysOk returns a tuple with the PubKeys field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransactionOutputModel) GetPubKeysOk() ([]string, bool) {
if o == nil || IsNil(o.PubKeys) {
return nil, false
}
return o.PubKeys, true
}
// HasPubKeys returns a boolean if a field has been set.
func (o *TransactionOutputModel) HasPubKeys() bool {
if o != nil && !IsNil(o.PubKeys) {
return true
}
return false
}
// SetPubKeys gets a reference to the given []string and assigns it to the PubKeys field.
func (o *TransactionOutputModel) SetPubKeys(v []string) {
o.PubKeys = v
}
func (o TransactionOutputModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TransactionOutputModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Amount) {
toSerialize["amount"] = o.Amount
}
if !IsNil(o.GlobalIndex) {
toSerialize["global_index"] = o.GlobalIndex
}
if !IsNil(o.IsSpent) {
toSerialize["is_spent"] = o.IsSpent
}
if !IsNil(o.MinimumSigs) {
toSerialize["minimum_sigs"] = o.MinimumSigs
}
if !IsNil(o.PubKeys) {
toSerialize["pub_keys"] = o.PubKeys
}
return toSerialize, nil
}
type NullableTransactionOutputModel struct {
value *TransactionOutputModel
isSet bool
}
func (v NullableTransactionOutputModel) Get() *TransactionOutputModel {
return v.value
}
func (v *NullableTransactionOutputModel) Set(val *TransactionOutputModel) {
v.value = val
v.isSet = true
}
func (v NullableTransactionOutputModel) IsSet() bool {
return v.isSet
}
func (v *NullableTransactionOutputModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTransactionOutputModel(val *TransactionOutputModel) *NullableTransactionOutputModel {
return &NullableTransactionOutputModel{value: val, isSet: true}
}
func (v NullableTransactionOutputModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTransactionOutputModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,954 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TxGenerationContextModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TxGenerationContextModel{}
// TxGenerationContextModel struct for TxGenerationContextModel
type TxGenerationContextModel struct {
AssetIds []string `json:"asset_ids,omitempty"`
BlindedAssetIds []string `json:"blinded_asset_ids,omitempty"`
AmountCommitments []string `json:"amount_commitments,omitempty"`
AssetIdBlindingMasks []string `json:"asset_id_blinding_masks,omitempty"`
Amounts []string `json:"amounts,omitempty"`
AmountBlindingMasks []string `json:"amount_blinding_masks,omitempty"`
PseudoOutsBlindedAssetIds []string `json:"pseudo_outs_blinded_asset_ids,omitempty"`
PseudoOutsPlusRealOutBlindingMasks []string `json:"pseudo_outs_plus_real_out_blinding_masks,omitempty"`
RealZcInsAssetIds []string `json:"real_zc_ins_asset_ids,omitempty"`
ZcInputAmounts []int32 `json:"zc_input_amounts,omitempty"`
PseudoOutAmountCommitmentsSum *string `json:"pseudo_out_amount_commitments_sum,omitempty"`
PseudoOutAmountBlindingMasksSum *string `json:"pseudo_out_amount_blinding_masks_sum,omitempty"`
RealInAssetIdBlindingMaskXAmountSum *string `json:"real_in_asset_id_blinding_mask_x_amount_sum,omitempty"`
AmountCommitmentsSum *string `json:"amount_commitments_sum,omitempty"`
AmountBlindingMasksSum *string `json:"amount_blinding_masks_sum,omitempty"`
AssetIdBlindingMaskXAmountSum *string `json:"asset_id_blinding_mask_x_amount_sum,omitempty"`
AoAssetId *string `json:"ao_asset_id,omitempty"`
AoAssetIdPt *string `json:"ao_asset_id_pt,omitempty"`
AoAmountCommitment *string `json:"ao_amount_commitment,omitempty"`
AoAmountBlindingMask *string `json:"ao_amount_blinding_mask,omitempty"`
AoCommitmentInOutputs *bool `json:"ao_commitment_in_outputs,omitempty"`
TxKeyPub *string `json:"tx_key_pub,omitempty"`
TxKeySec *string `json:"tx_key_sec,omitempty"`
TxPubKeyP *string `json:"tx_pub_key_p,omitempty"`
}
// NewTxGenerationContextModel instantiates a new TxGenerationContextModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTxGenerationContextModel() *TxGenerationContextModel {
this := TxGenerationContextModel{}
return &this
}
// NewTxGenerationContextModelWithDefaults instantiates a new TxGenerationContextModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTxGenerationContextModelWithDefaults() *TxGenerationContextModel {
this := TxGenerationContextModel{}
return &this
}
// GetAssetIds returns the AssetIds field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAssetIds() []string {
if o == nil || IsNil(o.AssetIds) {
var ret []string
return ret
}
return o.AssetIds
}
// GetAssetIdsOk returns a tuple with the AssetIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAssetIdsOk() ([]string, bool) {
if o == nil || IsNil(o.AssetIds) {
return nil, false
}
return o.AssetIds, true
}
// HasAssetIds returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAssetIds() bool {
if o != nil && !IsNil(o.AssetIds) {
return true
}
return false
}
// SetAssetIds gets a reference to the given []string and assigns it to the AssetIds field.
func (o *TxGenerationContextModel) SetAssetIds(v []string) {
o.AssetIds = v
}
// GetBlindedAssetIds returns the BlindedAssetIds field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetBlindedAssetIds() []string {
if o == nil || IsNil(o.BlindedAssetIds) {
var ret []string
return ret
}
return o.BlindedAssetIds
}
// GetBlindedAssetIdsOk returns a tuple with the BlindedAssetIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetBlindedAssetIdsOk() ([]string, bool) {
if o == nil || IsNil(o.BlindedAssetIds) {
return nil, false
}
return o.BlindedAssetIds, true
}
// HasBlindedAssetIds returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasBlindedAssetIds() bool {
if o != nil && !IsNil(o.BlindedAssetIds) {
return true
}
return false
}
// SetBlindedAssetIds gets a reference to the given []string and assigns it to the BlindedAssetIds field.
func (o *TxGenerationContextModel) SetBlindedAssetIds(v []string) {
o.BlindedAssetIds = v
}
// GetAmountCommitments returns the AmountCommitments field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAmountCommitments() []string {
if o == nil || IsNil(o.AmountCommitments) {
var ret []string
return ret
}
return o.AmountCommitments
}
// GetAmountCommitmentsOk returns a tuple with the AmountCommitments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAmountCommitmentsOk() ([]string, bool) {
if o == nil || IsNil(o.AmountCommitments) {
return nil, false
}
return o.AmountCommitments, true
}
// HasAmountCommitments returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAmountCommitments() bool {
if o != nil && !IsNil(o.AmountCommitments) {
return true
}
return false
}
// SetAmountCommitments gets a reference to the given []string and assigns it to the AmountCommitments field.
func (o *TxGenerationContextModel) SetAmountCommitments(v []string) {
o.AmountCommitments = v
}
// GetAssetIdBlindingMasks returns the AssetIdBlindingMasks field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAssetIdBlindingMasks() []string {
if o == nil || IsNil(o.AssetIdBlindingMasks) {
var ret []string
return ret
}
return o.AssetIdBlindingMasks
}
// GetAssetIdBlindingMasksOk returns a tuple with the AssetIdBlindingMasks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAssetIdBlindingMasksOk() ([]string, bool) {
if o == nil || IsNil(o.AssetIdBlindingMasks) {
return nil, false
}
return o.AssetIdBlindingMasks, true
}
// HasAssetIdBlindingMasks returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAssetIdBlindingMasks() bool {
if o != nil && !IsNil(o.AssetIdBlindingMasks) {
return true
}
return false
}
// SetAssetIdBlindingMasks gets a reference to the given []string and assigns it to the AssetIdBlindingMasks field.
func (o *TxGenerationContextModel) SetAssetIdBlindingMasks(v []string) {
o.AssetIdBlindingMasks = v
}
// GetAmounts returns the Amounts field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAmounts() []string {
if o == nil || IsNil(o.Amounts) {
var ret []string
return ret
}
return o.Amounts
}
// GetAmountsOk returns a tuple with the Amounts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAmountsOk() ([]string, bool) {
if o == nil || IsNil(o.Amounts) {
return nil, false
}
return o.Amounts, true
}
// HasAmounts returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAmounts() bool {
if o != nil && !IsNil(o.Amounts) {
return true
}
return false
}
// SetAmounts gets a reference to the given []string and assigns it to the Amounts field.
func (o *TxGenerationContextModel) SetAmounts(v []string) {
o.Amounts = v
}
// GetAmountBlindingMasks returns the AmountBlindingMasks field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAmountBlindingMasks() []string {
if o == nil || IsNil(o.AmountBlindingMasks) {
var ret []string
return ret
}
return o.AmountBlindingMasks
}
// GetAmountBlindingMasksOk returns a tuple with the AmountBlindingMasks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAmountBlindingMasksOk() ([]string, bool) {
if o == nil || IsNil(o.AmountBlindingMasks) {
return nil, false
}
return o.AmountBlindingMasks, true
}
// HasAmountBlindingMasks returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAmountBlindingMasks() bool {
if o != nil && !IsNil(o.AmountBlindingMasks) {
return true
}
return false
}
// SetAmountBlindingMasks gets a reference to the given []string and assigns it to the AmountBlindingMasks field.
func (o *TxGenerationContextModel) SetAmountBlindingMasks(v []string) {
o.AmountBlindingMasks = v
}
// GetPseudoOutsBlindedAssetIds returns the PseudoOutsBlindedAssetIds field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetPseudoOutsBlindedAssetIds() []string {
if o == nil || IsNil(o.PseudoOutsBlindedAssetIds) {
var ret []string
return ret
}
return o.PseudoOutsBlindedAssetIds
}
// GetPseudoOutsBlindedAssetIdsOk returns a tuple with the PseudoOutsBlindedAssetIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetPseudoOutsBlindedAssetIdsOk() ([]string, bool) {
if o == nil || IsNil(o.PseudoOutsBlindedAssetIds) {
return nil, false
}
return o.PseudoOutsBlindedAssetIds, true
}
// HasPseudoOutsBlindedAssetIds returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasPseudoOutsBlindedAssetIds() bool {
if o != nil && !IsNil(o.PseudoOutsBlindedAssetIds) {
return true
}
return false
}
// SetPseudoOutsBlindedAssetIds gets a reference to the given []string and assigns it to the PseudoOutsBlindedAssetIds field.
func (o *TxGenerationContextModel) SetPseudoOutsBlindedAssetIds(v []string) {
o.PseudoOutsBlindedAssetIds = v
}
// GetPseudoOutsPlusRealOutBlindingMasks returns the PseudoOutsPlusRealOutBlindingMasks field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetPseudoOutsPlusRealOutBlindingMasks() []string {
if o == nil || IsNil(o.PseudoOutsPlusRealOutBlindingMasks) {
var ret []string
return ret
}
return o.PseudoOutsPlusRealOutBlindingMasks
}
// GetPseudoOutsPlusRealOutBlindingMasksOk returns a tuple with the PseudoOutsPlusRealOutBlindingMasks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetPseudoOutsPlusRealOutBlindingMasksOk() ([]string, bool) {
if o == nil || IsNil(o.PseudoOutsPlusRealOutBlindingMasks) {
return nil, false
}
return o.PseudoOutsPlusRealOutBlindingMasks, true
}
// HasPseudoOutsPlusRealOutBlindingMasks returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasPseudoOutsPlusRealOutBlindingMasks() bool {
if o != nil && !IsNil(o.PseudoOutsPlusRealOutBlindingMasks) {
return true
}
return false
}
// SetPseudoOutsPlusRealOutBlindingMasks gets a reference to the given []string and assigns it to the PseudoOutsPlusRealOutBlindingMasks field.
func (o *TxGenerationContextModel) SetPseudoOutsPlusRealOutBlindingMasks(v []string) {
o.PseudoOutsPlusRealOutBlindingMasks = v
}
// GetRealZcInsAssetIds returns the RealZcInsAssetIds field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetRealZcInsAssetIds() []string {
if o == nil || IsNil(o.RealZcInsAssetIds) {
var ret []string
return ret
}
return o.RealZcInsAssetIds
}
// GetRealZcInsAssetIdsOk returns a tuple with the RealZcInsAssetIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetRealZcInsAssetIdsOk() ([]string, bool) {
if o == nil || IsNil(o.RealZcInsAssetIds) {
return nil, false
}
return o.RealZcInsAssetIds, true
}
// HasRealZcInsAssetIds returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasRealZcInsAssetIds() bool {
if o != nil && !IsNil(o.RealZcInsAssetIds) {
return true
}
return false
}
// SetRealZcInsAssetIds gets a reference to the given []string and assigns it to the RealZcInsAssetIds field.
func (o *TxGenerationContextModel) SetRealZcInsAssetIds(v []string) {
o.RealZcInsAssetIds = v
}
// GetZcInputAmounts returns the ZcInputAmounts field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetZcInputAmounts() []int32 {
if o == nil || IsNil(o.ZcInputAmounts) {
var ret []int32
return ret
}
return o.ZcInputAmounts
}
// GetZcInputAmountsOk returns a tuple with the ZcInputAmounts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetZcInputAmountsOk() ([]int32, bool) {
if o == nil || IsNil(o.ZcInputAmounts) {
return nil, false
}
return o.ZcInputAmounts, true
}
// HasZcInputAmounts returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasZcInputAmounts() bool {
if o != nil && !IsNil(o.ZcInputAmounts) {
return true
}
return false
}
// SetZcInputAmounts gets a reference to the given []int32 and assigns it to the ZcInputAmounts field.
func (o *TxGenerationContextModel) SetZcInputAmounts(v []int32) {
o.ZcInputAmounts = v
}
// GetPseudoOutAmountCommitmentsSum returns the PseudoOutAmountCommitmentsSum field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetPseudoOutAmountCommitmentsSum() string {
if o == nil || IsNil(o.PseudoOutAmountCommitmentsSum) {
var ret string
return ret
}
return *o.PseudoOutAmountCommitmentsSum
}
// GetPseudoOutAmountCommitmentsSumOk returns a tuple with the PseudoOutAmountCommitmentsSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetPseudoOutAmountCommitmentsSumOk() (*string, bool) {
if o == nil || IsNil(o.PseudoOutAmountCommitmentsSum) {
return nil, false
}
return o.PseudoOutAmountCommitmentsSum, true
}
// HasPseudoOutAmountCommitmentsSum returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasPseudoOutAmountCommitmentsSum() bool {
if o != nil && !IsNil(o.PseudoOutAmountCommitmentsSum) {
return true
}
return false
}
// SetPseudoOutAmountCommitmentsSum gets a reference to the given string and assigns it to the PseudoOutAmountCommitmentsSum field.
func (o *TxGenerationContextModel) SetPseudoOutAmountCommitmentsSum(v string) {
o.PseudoOutAmountCommitmentsSum = &v
}
// GetPseudoOutAmountBlindingMasksSum returns the PseudoOutAmountBlindingMasksSum field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetPseudoOutAmountBlindingMasksSum() string {
if o == nil || IsNil(o.PseudoOutAmountBlindingMasksSum) {
var ret string
return ret
}
return *o.PseudoOutAmountBlindingMasksSum
}
// GetPseudoOutAmountBlindingMasksSumOk returns a tuple with the PseudoOutAmountBlindingMasksSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetPseudoOutAmountBlindingMasksSumOk() (*string, bool) {
if o == nil || IsNil(o.PseudoOutAmountBlindingMasksSum) {
return nil, false
}
return o.PseudoOutAmountBlindingMasksSum, true
}
// HasPseudoOutAmountBlindingMasksSum returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasPseudoOutAmountBlindingMasksSum() bool {
if o != nil && !IsNil(o.PseudoOutAmountBlindingMasksSum) {
return true
}
return false
}
// SetPseudoOutAmountBlindingMasksSum gets a reference to the given string and assigns it to the PseudoOutAmountBlindingMasksSum field.
func (o *TxGenerationContextModel) SetPseudoOutAmountBlindingMasksSum(v string) {
o.PseudoOutAmountBlindingMasksSum = &v
}
// GetRealInAssetIdBlindingMaskXAmountSum returns the RealInAssetIdBlindingMaskXAmountSum field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetRealInAssetIdBlindingMaskXAmountSum() string {
if o == nil || IsNil(o.RealInAssetIdBlindingMaskXAmountSum) {
var ret string
return ret
}
return *o.RealInAssetIdBlindingMaskXAmountSum
}
// GetRealInAssetIdBlindingMaskXAmountSumOk returns a tuple with the RealInAssetIdBlindingMaskXAmountSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetRealInAssetIdBlindingMaskXAmountSumOk() (*string, bool) {
if o == nil || IsNil(o.RealInAssetIdBlindingMaskXAmountSum) {
return nil, false
}
return o.RealInAssetIdBlindingMaskXAmountSum, true
}
// HasRealInAssetIdBlindingMaskXAmountSum returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasRealInAssetIdBlindingMaskXAmountSum() bool {
if o != nil && !IsNil(o.RealInAssetIdBlindingMaskXAmountSum) {
return true
}
return false
}
// SetRealInAssetIdBlindingMaskXAmountSum gets a reference to the given string and assigns it to the RealInAssetIdBlindingMaskXAmountSum field.
func (o *TxGenerationContextModel) SetRealInAssetIdBlindingMaskXAmountSum(v string) {
o.RealInAssetIdBlindingMaskXAmountSum = &v
}
// GetAmountCommitmentsSum returns the AmountCommitmentsSum field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAmountCommitmentsSum() string {
if o == nil || IsNil(o.AmountCommitmentsSum) {
var ret string
return ret
}
return *o.AmountCommitmentsSum
}
// GetAmountCommitmentsSumOk returns a tuple with the AmountCommitmentsSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAmountCommitmentsSumOk() (*string, bool) {
if o == nil || IsNil(o.AmountCommitmentsSum) {
return nil, false
}
return o.AmountCommitmentsSum, true
}
// HasAmountCommitmentsSum returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAmountCommitmentsSum() bool {
if o != nil && !IsNil(o.AmountCommitmentsSum) {
return true
}
return false
}
// SetAmountCommitmentsSum gets a reference to the given string and assigns it to the AmountCommitmentsSum field.
func (o *TxGenerationContextModel) SetAmountCommitmentsSum(v string) {
o.AmountCommitmentsSum = &v
}
// GetAmountBlindingMasksSum returns the AmountBlindingMasksSum field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAmountBlindingMasksSum() string {
if o == nil || IsNil(o.AmountBlindingMasksSum) {
var ret string
return ret
}
return *o.AmountBlindingMasksSum
}
// GetAmountBlindingMasksSumOk returns a tuple with the AmountBlindingMasksSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAmountBlindingMasksSumOk() (*string, bool) {
if o == nil || IsNil(o.AmountBlindingMasksSum) {
return nil, false
}
return o.AmountBlindingMasksSum, true
}
// HasAmountBlindingMasksSum returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAmountBlindingMasksSum() bool {
if o != nil && !IsNil(o.AmountBlindingMasksSum) {
return true
}
return false
}
// SetAmountBlindingMasksSum gets a reference to the given string and assigns it to the AmountBlindingMasksSum field.
func (o *TxGenerationContextModel) SetAmountBlindingMasksSum(v string) {
o.AmountBlindingMasksSum = &v
}
// GetAssetIdBlindingMaskXAmountSum returns the AssetIdBlindingMaskXAmountSum field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAssetIdBlindingMaskXAmountSum() string {
if o == nil || IsNil(o.AssetIdBlindingMaskXAmountSum) {
var ret string
return ret
}
return *o.AssetIdBlindingMaskXAmountSum
}
// GetAssetIdBlindingMaskXAmountSumOk returns a tuple with the AssetIdBlindingMaskXAmountSum field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAssetIdBlindingMaskXAmountSumOk() (*string, bool) {
if o == nil || IsNil(o.AssetIdBlindingMaskXAmountSum) {
return nil, false
}
return o.AssetIdBlindingMaskXAmountSum, true
}
// HasAssetIdBlindingMaskXAmountSum returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAssetIdBlindingMaskXAmountSum() bool {
if o != nil && !IsNil(o.AssetIdBlindingMaskXAmountSum) {
return true
}
return false
}
// SetAssetIdBlindingMaskXAmountSum gets a reference to the given string and assigns it to the AssetIdBlindingMaskXAmountSum field.
func (o *TxGenerationContextModel) SetAssetIdBlindingMaskXAmountSum(v string) {
o.AssetIdBlindingMaskXAmountSum = &v
}
// GetAoAssetId returns the AoAssetId field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAoAssetId() string {
if o == nil || IsNil(o.AoAssetId) {
var ret string
return ret
}
return *o.AoAssetId
}
// GetAoAssetIdOk returns a tuple with the AoAssetId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAoAssetIdOk() (*string, bool) {
if o == nil || IsNil(o.AoAssetId) {
return nil, false
}
return o.AoAssetId, true
}
// HasAoAssetId returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAoAssetId() bool {
if o != nil && !IsNil(o.AoAssetId) {
return true
}
return false
}
// SetAoAssetId gets a reference to the given string and assigns it to the AoAssetId field.
func (o *TxGenerationContextModel) SetAoAssetId(v string) {
o.AoAssetId = &v
}
// GetAoAssetIdPt returns the AoAssetIdPt field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAoAssetIdPt() string {
if o == nil || IsNil(o.AoAssetIdPt) {
var ret string
return ret
}
return *o.AoAssetIdPt
}
// GetAoAssetIdPtOk returns a tuple with the AoAssetIdPt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAoAssetIdPtOk() (*string, bool) {
if o == nil || IsNil(o.AoAssetIdPt) {
return nil, false
}
return o.AoAssetIdPt, true
}
// HasAoAssetIdPt returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAoAssetIdPt() bool {
if o != nil && !IsNil(o.AoAssetIdPt) {
return true
}
return false
}
// SetAoAssetIdPt gets a reference to the given string and assigns it to the AoAssetIdPt field.
func (o *TxGenerationContextModel) SetAoAssetIdPt(v string) {
o.AoAssetIdPt = &v
}
// GetAoAmountCommitment returns the AoAmountCommitment field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAoAmountCommitment() string {
if o == nil || IsNil(o.AoAmountCommitment) {
var ret string
return ret
}
return *o.AoAmountCommitment
}
// GetAoAmountCommitmentOk returns a tuple with the AoAmountCommitment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAoAmountCommitmentOk() (*string, bool) {
if o == nil || IsNil(o.AoAmountCommitment) {
return nil, false
}
return o.AoAmountCommitment, true
}
// HasAoAmountCommitment returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAoAmountCommitment() bool {
if o != nil && !IsNil(o.AoAmountCommitment) {
return true
}
return false
}
// SetAoAmountCommitment gets a reference to the given string and assigns it to the AoAmountCommitment field.
func (o *TxGenerationContextModel) SetAoAmountCommitment(v string) {
o.AoAmountCommitment = &v
}
// GetAoAmountBlindingMask returns the AoAmountBlindingMask field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAoAmountBlindingMask() string {
if o == nil || IsNil(o.AoAmountBlindingMask) {
var ret string
return ret
}
return *o.AoAmountBlindingMask
}
// GetAoAmountBlindingMaskOk returns a tuple with the AoAmountBlindingMask field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAoAmountBlindingMaskOk() (*string, bool) {
if o == nil || IsNil(o.AoAmountBlindingMask) {
return nil, false
}
return o.AoAmountBlindingMask, true
}
// HasAoAmountBlindingMask returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAoAmountBlindingMask() bool {
if o != nil && !IsNil(o.AoAmountBlindingMask) {
return true
}
return false
}
// SetAoAmountBlindingMask gets a reference to the given string and assigns it to the AoAmountBlindingMask field.
func (o *TxGenerationContextModel) SetAoAmountBlindingMask(v string) {
o.AoAmountBlindingMask = &v
}
// GetAoCommitmentInOutputs returns the AoCommitmentInOutputs field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetAoCommitmentInOutputs() bool {
if o == nil || IsNil(o.AoCommitmentInOutputs) {
var ret bool
return ret
}
return *o.AoCommitmentInOutputs
}
// GetAoCommitmentInOutputsOk returns a tuple with the AoCommitmentInOutputs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetAoCommitmentInOutputsOk() (*bool, bool) {
if o == nil || IsNil(o.AoCommitmentInOutputs) {
return nil, false
}
return o.AoCommitmentInOutputs, true
}
// HasAoCommitmentInOutputs returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasAoCommitmentInOutputs() bool {
if o != nil && !IsNil(o.AoCommitmentInOutputs) {
return true
}
return false
}
// SetAoCommitmentInOutputs gets a reference to the given bool and assigns it to the AoCommitmentInOutputs field.
func (o *TxGenerationContextModel) SetAoCommitmentInOutputs(v bool) {
o.AoCommitmentInOutputs = &v
}
// GetTxKeyPub returns the TxKeyPub field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetTxKeyPub() string {
if o == nil || IsNil(o.TxKeyPub) {
var ret string
return ret
}
return *o.TxKeyPub
}
// GetTxKeyPubOk returns a tuple with the TxKeyPub field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetTxKeyPubOk() (*string, bool) {
if o == nil || IsNil(o.TxKeyPub) {
return nil, false
}
return o.TxKeyPub, true
}
// HasTxKeyPub returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasTxKeyPub() bool {
if o != nil && !IsNil(o.TxKeyPub) {
return true
}
return false
}
// SetTxKeyPub gets a reference to the given string and assigns it to the TxKeyPub field.
func (o *TxGenerationContextModel) SetTxKeyPub(v string) {
o.TxKeyPub = &v
}
// GetTxKeySec returns the TxKeySec field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetTxKeySec() string {
if o == nil || IsNil(o.TxKeySec) {
var ret string
return ret
}
return *o.TxKeySec
}
// GetTxKeySecOk returns a tuple with the TxKeySec field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetTxKeySecOk() (*string, bool) {
if o == nil || IsNil(o.TxKeySec) {
return nil, false
}
return o.TxKeySec, true
}
// HasTxKeySec returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasTxKeySec() bool {
if o != nil && !IsNil(o.TxKeySec) {
return true
}
return false
}
// SetTxKeySec gets a reference to the given string and assigns it to the TxKeySec field.
func (o *TxGenerationContextModel) SetTxKeySec(v string) {
o.TxKeySec = &v
}
// GetTxPubKeyP returns the TxPubKeyP field value if set, zero value otherwise.
func (o *TxGenerationContextModel) GetTxPubKeyP() string {
if o == nil || IsNil(o.TxPubKeyP) {
var ret string
return ret
}
return *o.TxPubKeyP
}
// GetTxPubKeyPOk returns a tuple with the TxPubKeyP field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxGenerationContextModel) GetTxPubKeyPOk() (*string, bool) {
if o == nil || IsNil(o.TxPubKeyP) {
return nil, false
}
return o.TxPubKeyP, true
}
// HasTxPubKeyP returns a boolean if a field has been set.
func (o *TxGenerationContextModel) HasTxPubKeyP() bool {
if o != nil && !IsNil(o.TxPubKeyP) {
return true
}
return false
}
// SetTxPubKeyP gets a reference to the given string and assigns it to the TxPubKeyP field.
func (o *TxGenerationContextModel) SetTxPubKeyP(v string) {
o.TxPubKeyP = &v
}
func (o TxGenerationContextModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TxGenerationContextModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AssetIds) {
toSerialize["asset_ids"] = o.AssetIds
}
if !IsNil(o.BlindedAssetIds) {
toSerialize["blinded_asset_ids"] = o.BlindedAssetIds
}
if !IsNil(o.AmountCommitments) {
toSerialize["amount_commitments"] = o.AmountCommitments
}
if !IsNil(o.AssetIdBlindingMasks) {
toSerialize["asset_id_blinding_masks"] = o.AssetIdBlindingMasks
}
if !IsNil(o.Amounts) {
toSerialize["amounts"] = o.Amounts
}
if !IsNil(o.AmountBlindingMasks) {
toSerialize["amount_blinding_masks"] = o.AmountBlindingMasks
}
if !IsNil(o.PseudoOutsBlindedAssetIds) {
toSerialize["pseudo_outs_blinded_asset_ids"] = o.PseudoOutsBlindedAssetIds
}
if !IsNil(o.PseudoOutsPlusRealOutBlindingMasks) {
toSerialize["pseudo_outs_plus_real_out_blinding_masks"] = o.PseudoOutsPlusRealOutBlindingMasks
}
if !IsNil(o.RealZcInsAssetIds) {
toSerialize["real_zc_ins_asset_ids"] = o.RealZcInsAssetIds
}
if !IsNil(o.ZcInputAmounts) {
toSerialize["zc_input_amounts"] = o.ZcInputAmounts
}
if !IsNil(o.PseudoOutAmountCommitmentsSum) {
toSerialize["pseudo_out_amount_commitments_sum"] = o.PseudoOutAmountCommitmentsSum
}
if !IsNil(o.PseudoOutAmountBlindingMasksSum) {
toSerialize["pseudo_out_amount_blinding_masks_sum"] = o.PseudoOutAmountBlindingMasksSum
}
if !IsNil(o.RealInAssetIdBlindingMaskXAmountSum) {
toSerialize["real_in_asset_id_blinding_mask_x_amount_sum"] = o.RealInAssetIdBlindingMaskXAmountSum
}
if !IsNil(o.AmountCommitmentsSum) {
toSerialize["amount_commitments_sum"] = o.AmountCommitmentsSum
}
if !IsNil(o.AmountBlindingMasksSum) {
toSerialize["amount_blinding_masks_sum"] = o.AmountBlindingMasksSum
}
if !IsNil(o.AssetIdBlindingMaskXAmountSum) {
toSerialize["asset_id_blinding_mask_x_amount_sum"] = o.AssetIdBlindingMaskXAmountSum
}
if !IsNil(o.AoAssetId) {
toSerialize["ao_asset_id"] = o.AoAssetId
}
if !IsNil(o.AoAssetIdPt) {
toSerialize["ao_asset_id_pt"] = o.AoAssetIdPt
}
if !IsNil(o.AoAmountCommitment) {
toSerialize["ao_amount_commitment"] = o.AoAmountCommitment
}
if !IsNil(o.AoAmountBlindingMask) {
toSerialize["ao_amount_blinding_mask"] = o.AoAmountBlindingMask
}
if !IsNil(o.AoCommitmentInOutputs) {
toSerialize["ao_commitment_in_outputs"] = o.AoCommitmentInOutputs
}
if !IsNil(o.TxKeyPub) {
toSerialize["tx_key_pub"] = o.TxKeyPub
}
if !IsNil(o.TxKeySec) {
toSerialize["tx_key_sec"] = o.TxKeySec
}
if !IsNil(o.TxPubKeyP) {
toSerialize["tx_pub_key_p"] = o.TxPubKeyP
}
return toSerialize, nil
}
type NullableTxGenerationContextModel struct {
value *TxGenerationContextModel
isSet bool
}
func (v NullableTxGenerationContextModel) Get() *TxGenerationContextModel {
return v.value
}
func (v *NullableTxGenerationContextModel) Set(val *TxGenerationContextModel) {
v.value = val
v.isSet = true
}
func (v NullableTxGenerationContextModel) IsSet() bool {
return v.isSet
}
func (v *NullableTxGenerationContextModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTxGenerationContextModel(val *TxGenerationContextModel) *NullableTxGenerationContextModel {
return &NullableTxGenerationContextModel{value: val, isSet: true}
}
func (v NullableTxGenerationContextModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTxGenerationContextModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,486 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TxPoolPerformanceModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TxPoolPerformanceModel{}
// TxPoolPerformanceModel struct for TxPoolPerformanceModel
type TxPoolPerformanceModel struct {
TxProcessingTime *int32 `json:"tx_processing_time,omitempty"`
CheckInputsTypesSupportedTime *int32 `json:"check_inputs_types_supported_time,omitempty"`
ExpirationValidateTime *int32 `json:"expiration_validate_time,omitempty"`
ValidateAmountTime *int32 `json:"validate_amount_time,omitempty"`
ValidateAliasTime *int32 `json:"validate_alias_time,omitempty"`
CheckKeyimagesWsMsTime *int32 `json:"check_keyimages_ws_ms_time,omitempty"`
CheckInputsTime *int32 `json:"check_inputs_time,omitempty"`
BeginTxTime *int32 `json:"begin_tx_time,omitempty"`
UpdateDbTime *int32 `json:"update_db_time,omitempty"`
DbCommitTime *int32 `json:"db_commit_time,omitempty"`
CheckPostHf4Balance *int32 `json:"check_post_hf4_balance,omitempty"`
}
// NewTxPoolPerformanceModel instantiates a new TxPoolPerformanceModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTxPoolPerformanceModel() *TxPoolPerformanceModel {
this := TxPoolPerformanceModel{}
return &this
}
// NewTxPoolPerformanceModelWithDefaults instantiates a new TxPoolPerformanceModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTxPoolPerformanceModelWithDefaults() *TxPoolPerformanceModel {
this := TxPoolPerformanceModel{}
return &this
}
// GetTxProcessingTime returns the TxProcessingTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetTxProcessingTime() int32 {
if o == nil || IsNil(o.TxProcessingTime) {
var ret int32
return ret
}
return *o.TxProcessingTime
}
// GetTxProcessingTimeOk returns a tuple with the TxProcessingTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetTxProcessingTimeOk() (*int32, bool) {
if o == nil || IsNil(o.TxProcessingTime) {
return nil, false
}
return o.TxProcessingTime, true
}
// HasTxProcessingTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasTxProcessingTime() bool {
if o != nil && !IsNil(o.TxProcessingTime) {
return true
}
return false
}
// SetTxProcessingTime gets a reference to the given int32 and assigns it to the TxProcessingTime field.
func (o *TxPoolPerformanceModel) SetTxProcessingTime(v int32) {
o.TxProcessingTime = &v
}
// GetCheckInputsTypesSupportedTime returns the CheckInputsTypesSupportedTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetCheckInputsTypesSupportedTime() int32 {
if o == nil || IsNil(o.CheckInputsTypesSupportedTime) {
var ret int32
return ret
}
return *o.CheckInputsTypesSupportedTime
}
// GetCheckInputsTypesSupportedTimeOk returns a tuple with the CheckInputsTypesSupportedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetCheckInputsTypesSupportedTimeOk() (*int32, bool) {
if o == nil || IsNil(o.CheckInputsTypesSupportedTime) {
return nil, false
}
return o.CheckInputsTypesSupportedTime, true
}
// HasCheckInputsTypesSupportedTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasCheckInputsTypesSupportedTime() bool {
if o != nil && !IsNil(o.CheckInputsTypesSupportedTime) {
return true
}
return false
}
// SetCheckInputsTypesSupportedTime gets a reference to the given int32 and assigns it to the CheckInputsTypesSupportedTime field.
func (o *TxPoolPerformanceModel) SetCheckInputsTypesSupportedTime(v int32) {
o.CheckInputsTypesSupportedTime = &v
}
// GetExpirationValidateTime returns the ExpirationValidateTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetExpirationValidateTime() int32 {
if o == nil || IsNil(o.ExpirationValidateTime) {
var ret int32
return ret
}
return *o.ExpirationValidateTime
}
// GetExpirationValidateTimeOk returns a tuple with the ExpirationValidateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetExpirationValidateTimeOk() (*int32, bool) {
if o == nil || IsNil(o.ExpirationValidateTime) {
return nil, false
}
return o.ExpirationValidateTime, true
}
// HasExpirationValidateTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasExpirationValidateTime() bool {
if o != nil && !IsNil(o.ExpirationValidateTime) {
return true
}
return false
}
// SetExpirationValidateTime gets a reference to the given int32 and assigns it to the ExpirationValidateTime field.
func (o *TxPoolPerformanceModel) SetExpirationValidateTime(v int32) {
o.ExpirationValidateTime = &v
}
// GetValidateAmountTime returns the ValidateAmountTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetValidateAmountTime() int32 {
if o == nil || IsNil(o.ValidateAmountTime) {
var ret int32
return ret
}
return *o.ValidateAmountTime
}
// GetValidateAmountTimeOk returns a tuple with the ValidateAmountTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetValidateAmountTimeOk() (*int32, bool) {
if o == nil || IsNil(o.ValidateAmountTime) {
return nil, false
}
return o.ValidateAmountTime, true
}
// HasValidateAmountTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasValidateAmountTime() bool {
if o != nil && !IsNil(o.ValidateAmountTime) {
return true
}
return false
}
// SetValidateAmountTime gets a reference to the given int32 and assigns it to the ValidateAmountTime field.
func (o *TxPoolPerformanceModel) SetValidateAmountTime(v int32) {
o.ValidateAmountTime = &v
}
// GetValidateAliasTime returns the ValidateAliasTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetValidateAliasTime() int32 {
if o == nil || IsNil(o.ValidateAliasTime) {
var ret int32
return ret
}
return *o.ValidateAliasTime
}
// GetValidateAliasTimeOk returns a tuple with the ValidateAliasTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetValidateAliasTimeOk() (*int32, bool) {
if o == nil || IsNil(o.ValidateAliasTime) {
return nil, false
}
return o.ValidateAliasTime, true
}
// HasValidateAliasTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasValidateAliasTime() bool {
if o != nil && !IsNil(o.ValidateAliasTime) {
return true
}
return false
}
// SetValidateAliasTime gets a reference to the given int32 and assigns it to the ValidateAliasTime field.
func (o *TxPoolPerformanceModel) SetValidateAliasTime(v int32) {
o.ValidateAliasTime = &v
}
// GetCheckKeyimagesWsMsTime returns the CheckKeyimagesWsMsTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetCheckKeyimagesWsMsTime() int32 {
if o == nil || IsNil(o.CheckKeyimagesWsMsTime) {
var ret int32
return ret
}
return *o.CheckKeyimagesWsMsTime
}
// GetCheckKeyimagesWsMsTimeOk returns a tuple with the CheckKeyimagesWsMsTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetCheckKeyimagesWsMsTimeOk() (*int32, bool) {
if o == nil || IsNil(o.CheckKeyimagesWsMsTime) {
return nil, false
}
return o.CheckKeyimagesWsMsTime, true
}
// HasCheckKeyimagesWsMsTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasCheckKeyimagesWsMsTime() bool {
if o != nil && !IsNil(o.CheckKeyimagesWsMsTime) {
return true
}
return false
}
// SetCheckKeyimagesWsMsTime gets a reference to the given int32 and assigns it to the CheckKeyimagesWsMsTime field.
func (o *TxPoolPerformanceModel) SetCheckKeyimagesWsMsTime(v int32) {
o.CheckKeyimagesWsMsTime = &v
}
// GetCheckInputsTime returns the CheckInputsTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetCheckInputsTime() int32 {
if o == nil || IsNil(o.CheckInputsTime) {
var ret int32
return ret
}
return *o.CheckInputsTime
}
// GetCheckInputsTimeOk returns a tuple with the CheckInputsTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetCheckInputsTimeOk() (*int32, bool) {
if o == nil || IsNil(o.CheckInputsTime) {
return nil, false
}
return o.CheckInputsTime, true
}
// HasCheckInputsTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasCheckInputsTime() bool {
if o != nil && !IsNil(o.CheckInputsTime) {
return true
}
return false
}
// SetCheckInputsTime gets a reference to the given int32 and assigns it to the CheckInputsTime field.
func (o *TxPoolPerformanceModel) SetCheckInputsTime(v int32) {
o.CheckInputsTime = &v
}
// GetBeginTxTime returns the BeginTxTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetBeginTxTime() int32 {
if o == nil || IsNil(o.BeginTxTime) {
var ret int32
return ret
}
return *o.BeginTxTime
}
// GetBeginTxTimeOk returns a tuple with the BeginTxTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetBeginTxTimeOk() (*int32, bool) {
if o == nil || IsNil(o.BeginTxTime) {
return nil, false
}
return o.BeginTxTime, true
}
// HasBeginTxTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasBeginTxTime() bool {
if o != nil && !IsNil(o.BeginTxTime) {
return true
}
return false
}
// SetBeginTxTime gets a reference to the given int32 and assigns it to the BeginTxTime field.
func (o *TxPoolPerformanceModel) SetBeginTxTime(v int32) {
o.BeginTxTime = &v
}
// GetUpdateDbTime returns the UpdateDbTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetUpdateDbTime() int32 {
if o == nil || IsNil(o.UpdateDbTime) {
var ret int32
return ret
}
return *o.UpdateDbTime
}
// GetUpdateDbTimeOk returns a tuple with the UpdateDbTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetUpdateDbTimeOk() (*int32, bool) {
if o == nil || IsNil(o.UpdateDbTime) {
return nil, false
}
return o.UpdateDbTime, true
}
// HasUpdateDbTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasUpdateDbTime() bool {
if o != nil && !IsNil(o.UpdateDbTime) {
return true
}
return false
}
// SetUpdateDbTime gets a reference to the given int32 and assigns it to the UpdateDbTime field.
func (o *TxPoolPerformanceModel) SetUpdateDbTime(v int32) {
o.UpdateDbTime = &v
}
// GetDbCommitTime returns the DbCommitTime field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetDbCommitTime() int32 {
if o == nil || IsNil(o.DbCommitTime) {
var ret int32
return ret
}
return *o.DbCommitTime
}
// GetDbCommitTimeOk returns a tuple with the DbCommitTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetDbCommitTimeOk() (*int32, bool) {
if o == nil || IsNil(o.DbCommitTime) {
return nil, false
}
return o.DbCommitTime, true
}
// HasDbCommitTime returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasDbCommitTime() bool {
if o != nil && !IsNil(o.DbCommitTime) {
return true
}
return false
}
// SetDbCommitTime gets a reference to the given int32 and assigns it to the DbCommitTime field.
func (o *TxPoolPerformanceModel) SetDbCommitTime(v int32) {
o.DbCommitTime = &v
}
// GetCheckPostHf4Balance returns the CheckPostHf4Balance field value if set, zero value otherwise.
func (o *TxPoolPerformanceModel) GetCheckPostHf4Balance() int32 {
if o == nil || IsNil(o.CheckPostHf4Balance) {
var ret int32
return ret
}
return *o.CheckPostHf4Balance
}
// GetCheckPostHf4BalanceOk returns a tuple with the CheckPostHf4Balance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxPoolPerformanceModel) GetCheckPostHf4BalanceOk() (*int32, bool) {
if o == nil || IsNil(o.CheckPostHf4Balance) {
return nil, false
}
return o.CheckPostHf4Balance, true
}
// HasCheckPostHf4Balance returns a boolean if a field has been set.
func (o *TxPoolPerformanceModel) HasCheckPostHf4Balance() bool {
if o != nil && !IsNil(o.CheckPostHf4Balance) {
return true
}
return false
}
// SetCheckPostHf4Balance gets a reference to the given int32 and assigns it to the CheckPostHf4Balance field.
func (o *TxPoolPerformanceModel) SetCheckPostHf4Balance(v int32) {
o.CheckPostHf4Balance = &v
}
func (o TxPoolPerformanceModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TxPoolPerformanceModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.TxProcessingTime) {
toSerialize["tx_processing_time"] = o.TxProcessingTime
}
if !IsNil(o.CheckInputsTypesSupportedTime) {
toSerialize["check_inputs_types_supported_time"] = o.CheckInputsTypesSupportedTime
}
if !IsNil(o.ExpirationValidateTime) {
toSerialize["expiration_validate_time"] = o.ExpirationValidateTime
}
if !IsNil(o.ValidateAmountTime) {
toSerialize["validate_amount_time"] = o.ValidateAmountTime
}
if !IsNil(o.ValidateAliasTime) {
toSerialize["validate_alias_time"] = o.ValidateAliasTime
}
if !IsNil(o.CheckKeyimagesWsMsTime) {
toSerialize["check_keyimages_ws_ms_time"] = o.CheckKeyimagesWsMsTime
}
if !IsNil(o.CheckInputsTime) {
toSerialize["check_inputs_time"] = o.CheckInputsTime
}
if !IsNil(o.BeginTxTime) {
toSerialize["begin_tx_time"] = o.BeginTxTime
}
if !IsNil(o.UpdateDbTime) {
toSerialize["update_db_time"] = o.UpdateDbTime
}
if !IsNil(o.DbCommitTime) {
toSerialize["db_commit_time"] = o.DbCommitTime
}
if !IsNil(o.CheckPostHf4Balance) {
toSerialize["check_post_hf4_balance"] = o.CheckPostHf4Balance
}
return toSerialize, nil
}
type NullableTxPoolPerformanceModel struct {
value *TxPoolPerformanceModel
isSet bool
}
func (v NullableTxPoolPerformanceModel) Get() *TxPoolPerformanceModel {
return v.value
}
func (v *NullableTxPoolPerformanceModel) Set(val *TxPoolPerformanceModel) {
v.value = val
v.isSet = true
}
func (v NullableTxPoolPerformanceModel) IsSet() bool {
return v.isSet
}
func (v *NullableTxPoolPerformanceModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTxPoolPerformanceModel(val *TxPoolPerformanceModel) *NullableTxPoolPerformanceModel {
return &NullableTxPoolPerformanceModel{value: val, isSet: true}
}
func (v NullableTxPoolPerformanceModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTxPoolPerformanceModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

View file

@ -0,0 +1,990 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the TxProcessingPerformanceModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TxProcessingPerformanceModel{}
// TxProcessingPerformanceModel struct for TxProcessingPerformanceModel
type TxProcessingPerformanceModel struct {
TxCheckInputs *int32 `json:"tx_check_inputs,omitempty"`
TxAddOneTx *int32 `json:"tx_add_one_tx,omitempty"`
TxProcessExtra *int32 `json:"tx_process_extra,omitempty"`
TxProcessAttachment *int32 `json:"tx_process_attachment,omitempty"`
TxProcessInputs *int32 `json:"tx_process_inputs,omitempty"`
TxPushGlobalIndex *int32 `json:"tx_push_global_index,omitempty"`
TxCheckExist *int32 `json:"tx_check_exist,omitempty"`
TxPrintLog *int32 `json:"tx_print_log,omitempty"`
TxPrapareAppend *int32 `json:"tx_prapare_append,omitempty"`
TxAppend *int32 `json:"tx_append,omitempty"`
TxAppendRlWait *int32 `json:"tx_append_rl_wait,omitempty"`
TxAppendIsExpired *int32 `json:"tx_append_is_expired,omitempty"`
TxStoreDb *int32 `json:"tx_store_db,omitempty"`
TxCheckInputsPrefixHash *int32 `json:"tx_check_inputs_prefix_hash,omitempty"`
TxCheckInputsAttachmentCheck *int32 `json:"tx_check_inputs_attachment_check,omitempty"`
TxCheckInputsLoop *int32 `json:"tx_check_inputs_loop,omitempty"`
TxCheckInputsLoopKimageCheck *int32 `json:"tx_check_inputs_loop_kimage_check,omitempty"`
TxCheckInputsLoopChInValSig *int32 `json:"tx_check_inputs_loop_ch_in_val_sig,omitempty"`
TxCheckInputsLoopScanOutputkeysGetItemSize *int32 `json:"tx_check_inputs_loop_scan_outputkeys_get_item_size,omitempty"`
TxCheckInputsLoopScanOutputkeysRelativeToAbsolute *int32 `json:"tx_check_inputs_loop_scan_outputkeys_relative_to_absolute,omitempty"`
TxCheckInputsLoopScanOutputkeysLoop *int32 `json:"tx_check_inputs_loop_scan_outputkeys_loop,omitempty"`
TxCheckInputsLoopScanOutputkeysLoopGetSubitem *int32 `json:"tx_check_inputs_loop_scan_outputkeys_loop_get_subitem,omitempty"`
TxCheckInputsLoopScanOutputkeysLoopFindTx *int32 `json:"tx_check_inputs_loop_scan_outputkeys_loop_find_tx,omitempty"`
TxCheckInputsLoopScanOutputkeysLoopHandleOutput *int32 `json:"tx_check_inputs_loop_scan_outputkeys_loop_handle_output,omitempty"`
TxMixinCount *int32 `json:"tx_mixin_count,omitempty"`
}
// NewTxProcessingPerformanceModel instantiates a new TxProcessingPerformanceModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTxProcessingPerformanceModel() *TxProcessingPerformanceModel {
this := TxProcessingPerformanceModel{}
return &this
}
// NewTxProcessingPerformanceModelWithDefaults instantiates a new TxProcessingPerformanceModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTxProcessingPerformanceModelWithDefaults() *TxProcessingPerformanceModel {
this := TxProcessingPerformanceModel{}
return &this
}
// GetTxCheckInputs returns the TxCheckInputs field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputs() int32 {
if o == nil || IsNil(o.TxCheckInputs) {
var ret int32
return ret
}
return *o.TxCheckInputs
}
// GetTxCheckInputsOk returns a tuple with the TxCheckInputs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputs) {
return nil, false
}
return o.TxCheckInputs, true
}
// HasTxCheckInputs returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputs() bool {
if o != nil && !IsNil(o.TxCheckInputs) {
return true
}
return false
}
// SetTxCheckInputs gets a reference to the given int32 and assigns it to the TxCheckInputs field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputs(v int32) {
o.TxCheckInputs = &v
}
// GetTxAddOneTx returns the TxAddOneTx field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxAddOneTx() int32 {
if o == nil || IsNil(o.TxAddOneTx) {
var ret int32
return ret
}
return *o.TxAddOneTx
}
// GetTxAddOneTxOk returns a tuple with the TxAddOneTx field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxAddOneTxOk() (*int32, bool) {
if o == nil || IsNil(o.TxAddOneTx) {
return nil, false
}
return o.TxAddOneTx, true
}
// HasTxAddOneTx returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxAddOneTx() bool {
if o != nil && !IsNil(o.TxAddOneTx) {
return true
}
return false
}
// SetTxAddOneTx gets a reference to the given int32 and assigns it to the TxAddOneTx field.
func (o *TxProcessingPerformanceModel) SetTxAddOneTx(v int32) {
o.TxAddOneTx = &v
}
// GetTxProcessExtra returns the TxProcessExtra field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxProcessExtra() int32 {
if o == nil || IsNil(o.TxProcessExtra) {
var ret int32
return ret
}
return *o.TxProcessExtra
}
// GetTxProcessExtraOk returns a tuple with the TxProcessExtra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxProcessExtraOk() (*int32, bool) {
if o == nil || IsNil(o.TxProcessExtra) {
return nil, false
}
return o.TxProcessExtra, true
}
// HasTxProcessExtra returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxProcessExtra() bool {
if o != nil && !IsNil(o.TxProcessExtra) {
return true
}
return false
}
// SetTxProcessExtra gets a reference to the given int32 and assigns it to the TxProcessExtra field.
func (o *TxProcessingPerformanceModel) SetTxProcessExtra(v int32) {
o.TxProcessExtra = &v
}
// GetTxProcessAttachment returns the TxProcessAttachment field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxProcessAttachment() int32 {
if o == nil || IsNil(o.TxProcessAttachment) {
var ret int32
return ret
}
return *o.TxProcessAttachment
}
// GetTxProcessAttachmentOk returns a tuple with the TxProcessAttachment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxProcessAttachmentOk() (*int32, bool) {
if o == nil || IsNil(o.TxProcessAttachment) {
return nil, false
}
return o.TxProcessAttachment, true
}
// HasTxProcessAttachment returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxProcessAttachment() bool {
if o != nil && !IsNil(o.TxProcessAttachment) {
return true
}
return false
}
// SetTxProcessAttachment gets a reference to the given int32 and assigns it to the TxProcessAttachment field.
func (o *TxProcessingPerformanceModel) SetTxProcessAttachment(v int32) {
o.TxProcessAttachment = &v
}
// GetTxProcessInputs returns the TxProcessInputs field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxProcessInputs() int32 {
if o == nil || IsNil(o.TxProcessInputs) {
var ret int32
return ret
}
return *o.TxProcessInputs
}
// GetTxProcessInputsOk returns a tuple with the TxProcessInputs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxProcessInputsOk() (*int32, bool) {
if o == nil || IsNil(o.TxProcessInputs) {
return nil, false
}
return o.TxProcessInputs, true
}
// HasTxProcessInputs returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxProcessInputs() bool {
if o != nil && !IsNil(o.TxProcessInputs) {
return true
}
return false
}
// SetTxProcessInputs gets a reference to the given int32 and assigns it to the TxProcessInputs field.
func (o *TxProcessingPerformanceModel) SetTxProcessInputs(v int32) {
o.TxProcessInputs = &v
}
// GetTxPushGlobalIndex returns the TxPushGlobalIndex field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxPushGlobalIndex() int32 {
if o == nil || IsNil(o.TxPushGlobalIndex) {
var ret int32
return ret
}
return *o.TxPushGlobalIndex
}
// GetTxPushGlobalIndexOk returns a tuple with the TxPushGlobalIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxPushGlobalIndexOk() (*int32, bool) {
if o == nil || IsNil(o.TxPushGlobalIndex) {
return nil, false
}
return o.TxPushGlobalIndex, true
}
// HasTxPushGlobalIndex returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxPushGlobalIndex() bool {
if o != nil && !IsNil(o.TxPushGlobalIndex) {
return true
}
return false
}
// SetTxPushGlobalIndex gets a reference to the given int32 and assigns it to the TxPushGlobalIndex field.
func (o *TxProcessingPerformanceModel) SetTxPushGlobalIndex(v int32) {
o.TxPushGlobalIndex = &v
}
// GetTxCheckExist returns the TxCheckExist field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckExist() int32 {
if o == nil || IsNil(o.TxCheckExist) {
var ret int32
return ret
}
return *o.TxCheckExist
}
// GetTxCheckExistOk returns a tuple with the TxCheckExist field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckExistOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckExist) {
return nil, false
}
return o.TxCheckExist, true
}
// HasTxCheckExist returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckExist() bool {
if o != nil && !IsNil(o.TxCheckExist) {
return true
}
return false
}
// SetTxCheckExist gets a reference to the given int32 and assigns it to the TxCheckExist field.
func (o *TxProcessingPerformanceModel) SetTxCheckExist(v int32) {
o.TxCheckExist = &v
}
// GetTxPrintLog returns the TxPrintLog field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxPrintLog() int32 {
if o == nil || IsNil(o.TxPrintLog) {
var ret int32
return ret
}
return *o.TxPrintLog
}
// GetTxPrintLogOk returns a tuple with the TxPrintLog field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxPrintLogOk() (*int32, bool) {
if o == nil || IsNil(o.TxPrintLog) {
return nil, false
}
return o.TxPrintLog, true
}
// HasTxPrintLog returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxPrintLog() bool {
if o != nil && !IsNil(o.TxPrintLog) {
return true
}
return false
}
// SetTxPrintLog gets a reference to the given int32 and assigns it to the TxPrintLog field.
func (o *TxProcessingPerformanceModel) SetTxPrintLog(v int32) {
o.TxPrintLog = &v
}
// GetTxPrapareAppend returns the TxPrapareAppend field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxPrapareAppend() int32 {
if o == nil || IsNil(o.TxPrapareAppend) {
var ret int32
return ret
}
return *o.TxPrapareAppend
}
// GetTxPrapareAppendOk returns a tuple with the TxPrapareAppend field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxPrapareAppendOk() (*int32, bool) {
if o == nil || IsNil(o.TxPrapareAppend) {
return nil, false
}
return o.TxPrapareAppend, true
}
// HasTxPrapareAppend returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxPrapareAppend() bool {
if o != nil && !IsNil(o.TxPrapareAppend) {
return true
}
return false
}
// SetTxPrapareAppend gets a reference to the given int32 and assigns it to the TxPrapareAppend field.
func (o *TxProcessingPerformanceModel) SetTxPrapareAppend(v int32) {
o.TxPrapareAppend = &v
}
// GetTxAppend returns the TxAppend field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxAppend() int32 {
if o == nil || IsNil(o.TxAppend) {
var ret int32
return ret
}
return *o.TxAppend
}
// GetTxAppendOk returns a tuple with the TxAppend field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxAppendOk() (*int32, bool) {
if o == nil || IsNil(o.TxAppend) {
return nil, false
}
return o.TxAppend, true
}
// HasTxAppend returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxAppend() bool {
if o != nil && !IsNil(o.TxAppend) {
return true
}
return false
}
// SetTxAppend gets a reference to the given int32 and assigns it to the TxAppend field.
func (o *TxProcessingPerformanceModel) SetTxAppend(v int32) {
o.TxAppend = &v
}
// GetTxAppendRlWait returns the TxAppendRlWait field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxAppendRlWait() int32 {
if o == nil || IsNil(o.TxAppendRlWait) {
var ret int32
return ret
}
return *o.TxAppendRlWait
}
// GetTxAppendRlWaitOk returns a tuple with the TxAppendRlWait field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxAppendRlWaitOk() (*int32, bool) {
if o == nil || IsNil(o.TxAppendRlWait) {
return nil, false
}
return o.TxAppendRlWait, true
}
// HasTxAppendRlWait returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxAppendRlWait() bool {
if o != nil && !IsNil(o.TxAppendRlWait) {
return true
}
return false
}
// SetTxAppendRlWait gets a reference to the given int32 and assigns it to the TxAppendRlWait field.
func (o *TxProcessingPerformanceModel) SetTxAppendRlWait(v int32) {
o.TxAppendRlWait = &v
}
// GetTxAppendIsExpired returns the TxAppendIsExpired field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxAppendIsExpired() int32 {
if o == nil || IsNil(o.TxAppendIsExpired) {
var ret int32
return ret
}
return *o.TxAppendIsExpired
}
// GetTxAppendIsExpiredOk returns a tuple with the TxAppendIsExpired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxAppendIsExpiredOk() (*int32, bool) {
if o == nil || IsNil(o.TxAppendIsExpired) {
return nil, false
}
return o.TxAppendIsExpired, true
}
// HasTxAppendIsExpired returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxAppendIsExpired() bool {
if o != nil && !IsNil(o.TxAppendIsExpired) {
return true
}
return false
}
// SetTxAppendIsExpired gets a reference to the given int32 and assigns it to the TxAppendIsExpired field.
func (o *TxProcessingPerformanceModel) SetTxAppendIsExpired(v int32) {
o.TxAppendIsExpired = &v
}
// GetTxStoreDb returns the TxStoreDb field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxStoreDb() int32 {
if o == nil || IsNil(o.TxStoreDb) {
var ret int32
return ret
}
return *o.TxStoreDb
}
// GetTxStoreDbOk returns a tuple with the TxStoreDb field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxStoreDbOk() (*int32, bool) {
if o == nil || IsNil(o.TxStoreDb) {
return nil, false
}
return o.TxStoreDb, true
}
// HasTxStoreDb returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxStoreDb() bool {
if o != nil && !IsNil(o.TxStoreDb) {
return true
}
return false
}
// SetTxStoreDb gets a reference to the given int32 and assigns it to the TxStoreDb field.
func (o *TxProcessingPerformanceModel) SetTxStoreDb(v int32) {
o.TxStoreDb = &v
}
// GetTxCheckInputsPrefixHash returns the TxCheckInputsPrefixHash field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsPrefixHash() int32 {
if o == nil || IsNil(o.TxCheckInputsPrefixHash) {
var ret int32
return ret
}
return *o.TxCheckInputsPrefixHash
}
// GetTxCheckInputsPrefixHashOk returns a tuple with the TxCheckInputsPrefixHash field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsPrefixHashOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsPrefixHash) {
return nil, false
}
return o.TxCheckInputsPrefixHash, true
}
// HasTxCheckInputsPrefixHash returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsPrefixHash() bool {
if o != nil && !IsNil(o.TxCheckInputsPrefixHash) {
return true
}
return false
}
// SetTxCheckInputsPrefixHash gets a reference to the given int32 and assigns it to the TxCheckInputsPrefixHash field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsPrefixHash(v int32) {
o.TxCheckInputsPrefixHash = &v
}
// GetTxCheckInputsAttachmentCheck returns the TxCheckInputsAttachmentCheck field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsAttachmentCheck() int32 {
if o == nil || IsNil(o.TxCheckInputsAttachmentCheck) {
var ret int32
return ret
}
return *o.TxCheckInputsAttachmentCheck
}
// GetTxCheckInputsAttachmentCheckOk returns a tuple with the TxCheckInputsAttachmentCheck field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsAttachmentCheckOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsAttachmentCheck) {
return nil, false
}
return o.TxCheckInputsAttachmentCheck, true
}
// HasTxCheckInputsAttachmentCheck returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsAttachmentCheck() bool {
if o != nil && !IsNil(o.TxCheckInputsAttachmentCheck) {
return true
}
return false
}
// SetTxCheckInputsAttachmentCheck gets a reference to the given int32 and assigns it to the TxCheckInputsAttachmentCheck field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsAttachmentCheck(v int32) {
o.TxCheckInputsAttachmentCheck = &v
}
// GetTxCheckInputsLoop returns the TxCheckInputsLoop field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoop() int32 {
if o == nil || IsNil(o.TxCheckInputsLoop) {
var ret int32
return ret
}
return *o.TxCheckInputsLoop
}
// GetTxCheckInputsLoopOk returns a tuple with the TxCheckInputsLoop field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoop) {
return nil, false
}
return o.TxCheckInputsLoop, true
}
// HasTxCheckInputsLoop returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoop() bool {
if o != nil && !IsNil(o.TxCheckInputsLoop) {
return true
}
return false
}
// SetTxCheckInputsLoop gets a reference to the given int32 and assigns it to the TxCheckInputsLoop field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoop(v int32) {
o.TxCheckInputsLoop = &v
}
// GetTxCheckInputsLoopKimageCheck returns the TxCheckInputsLoopKimageCheck field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopKimageCheck() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopKimageCheck) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopKimageCheck
}
// GetTxCheckInputsLoopKimageCheckOk returns a tuple with the TxCheckInputsLoopKimageCheck field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopKimageCheckOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopKimageCheck) {
return nil, false
}
return o.TxCheckInputsLoopKimageCheck, true
}
// HasTxCheckInputsLoopKimageCheck returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopKimageCheck() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopKimageCheck) {
return true
}
return false
}
// SetTxCheckInputsLoopKimageCheck gets a reference to the given int32 and assigns it to the TxCheckInputsLoopKimageCheck field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopKimageCheck(v int32) {
o.TxCheckInputsLoopKimageCheck = &v
}
// GetTxCheckInputsLoopChInValSig returns the TxCheckInputsLoopChInValSig field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopChInValSig() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopChInValSig) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopChInValSig
}
// GetTxCheckInputsLoopChInValSigOk returns a tuple with the TxCheckInputsLoopChInValSig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopChInValSigOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopChInValSig) {
return nil, false
}
return o.TxCheckInputsLoopChInValSig, true
}
// HasTxCheckInputsLoopChInValSig returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopChInValSig() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopChInValSig) {
return true
}
return false
}
// SetTxCheckInputsLoopChInValSig gets a reference to the given int32 and assigns it to the TxCheckInputsLoopChInValSig field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopChInValSig(v int32) {
o.TxCheckInputsLoopChInValSig = &v
}
// GetTxCheckInputsLoopScanOutputkeysGetItemSize returns the TxCheckInputsLoopScanOutputkeysGetItemSize field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysGetItemSize() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysGetItemSize) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopScanOutputkeysGetItemSize
}
// GetTxCheckInputsLoopScanOutputkeysGetItemSizeOk returns a tuple with the TxCheckInputsLoopScanOutputkeysGetItemSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysGetItemSizeOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysGetItemSize) {
return nil, false
}
return o.TxCheckInputsLoopScanOutputkeysGetItemSize, true
}
// HasTxCheckInputsLoopScanOutputkeysGetItemSize returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysGetItemSize() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopScanOutputkeysGetItemSize) {
return true
}
return false
}
// SetTxCheckInputsLoopScanOutputkeysGetItemSize gets a reference to the given int32 and assigns it to the TxCheckInputsLoopScanOutputkeysGetItemSize field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysGetItemSize(v int32) {
o.TxCheckInputsLoopScanOutputkeysGetItemSize = &v
}
// GetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute returns the TxCheckInputsLoopScanOutputkeysRelativeToAbsolute field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute
}
// GetTxCheckInputsLoopScanOutputkeysRelativeToAbsoluteOk returns a tuple with the TxCheckInputsLoopScanOutputkeysRelativeToAbsolute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysRelativeToAbsoluteOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute) {
return nil, false
}
return o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute, true
}
// HasTxCheckInputsLoopScanOutputkeysRelativeToAbsolute returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysRelativeToAbsolute() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute) {
return true
}
return false
}
// SetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute gets a reference to the given int32 and assigns it to the TxCheckInputsLoopScanOutputkeysRelativeToAbsolute field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysRelativeToAbsolute(v int32) {
o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute = &v
}
// GetTxCheckInputsLoopScanOutputkeysLoop returns the TxCheckInputsLoopScanOutputkeysLoop field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoop() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoop) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopScanOutputkeysLoop
}
// GetTxCheckInputsLoopScanOutputkeysLoopOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoop field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoop) {
return nil, false
}
return o.TxCheckInputsLoopScanOutputkeysLoop, true
}
// HasTxCheckInputsLoopScanOutputkeysLoop returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoop() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopScanOutputkeysLoop) {
return true
}
return false
}
// SetTxCheckInputsLoopScanOutputkeysLoop gets a reference to the given int32 and assigns it to the TxCheckInputsLoopScanOutputkeysLoop field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoop(v int32) {
o.TxCheckInputsLoopScanOutputkeysLoop = &v
}
// GetTxCheckInputsLoopScanOutputkeysLoopGetSubitem returns the TxCheckInputsLoopScanOutputkeysLoopGetSubitem field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopGetSubitem() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem
}
// GetTxCheckInputsLoopScanOutputkeysLoopGetSubitemOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoopGetSubitem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopGetSubitemOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem) {
return nil, false
}
return o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem, true
}
// HasTxCheckInputsLoopScanOutputkeysLoopGetSubitem returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoopGetSubitem() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem) {
return true
}
return false
}
// SetTxCheckInputsLoopScanOutputkeysLoopGetSubitem gets a reference to the given int32 and assigns it to the TxCheckInputsLoopScanOutputkeysLoopGetSubitem field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoopGetSubitem(v int32) {
o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem = &v
}
// GetTxCheckInputsLoopScanOutputkeysLoopFindTx returns the TxCheckInputsLoopScanOutputkeysLoopFindTx field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopFindTx() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoopFindTx) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopScanOutputkeysLoopFindTx
}
// GetTxCheckInputsLoopScanOutputkeysLoopFindTxOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoopFindTx field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopFindTxOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoopFindTx) {
return nil, false
}
return o.TxCheckInputsLoopScanOutputkeysLoopFindTx, true
}
// HasTxCheckInputsLoopScanOutputkeysLoopFindTx returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoopFindTx() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopScanOutputkeysLoopFindTx) {
return true
}
return false
}
// SetTxCheckInputsLoopScanOutputkeysLoopFindTx gets a reference to the given int32 and assigns it to the TxCheckInputsLoopScanOutputkeysLoopFindTx field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoopFindTx(v int32) {
o.TxCheckInputsLoopScanOutputkeysLoopFindTx = &v
}
// GetTxCheckInputsLoopScanOutputkeysLoopHandleOutput returns the TxCheckInputsLoopScanOutputkeysLoopHandleOutput field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopHandleOutput() int32 {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput) {
var ret int32
return ret
}
return *o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput
}
// GetTxCheckInputsLoopScanOutputkeysLoopHandleOutputOk returns a tuple with the TxCheckInputsLoopScanOutputkeysLoopHandleOutput field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxCheckInputsLoopScanOutputkeysLoopHandleOutputOk() (*int32, bool) {
if o == nil || IsNil(o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput) {
return nil, false
}
return o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput, true
}
// HasTxCheckInputsLoopScanOutputkeysLoopHandleOutput returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxCheckInputsLoopScanOutputkeysLoopHandleOutput() bool {
if o != nil && !IsNil(o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput) {
return true
}
return false
}
// SetTxCheckInputsLoopScanOutputkeysLoopHandleOutput gets a reference to the given int32 and assigns it to the TxCheckInputsLoopScanOutputkeysLoopHandleOutput field.
func (o *TxProcessingPerformanceModel) SetTxCheckInputsLoopScanOutputkeysLoopHandleOutput(v int32) {
o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput = &v
}
// GetTxMixinCount returns the TxMixinCount field value if set, zero value otherwise.
func (o *TxProcessingPerformanceModel) GetTxMixinCount() int32 {
if o == nil || IsNil(o.TxMixinCount) {
var ret int32
return ret
}
return *o.TxMixinCount
}
// GetTxMixinCountOk returns a tuple with the TxMixinCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TxProcessingPerformanceModel) GetTxMixinCountOk() (*int32, bool) {
if o == nil || IsNil(o.TxMixinCount) {
return nil, false
}
return o.TxMixinCount, true
}
// HasTxMixinCount returns a boolean if a field has been set.
func (o *TxProcessingPerformanceModel) HasTxMixinCount() bool {
if o != nil && !IsNil(o.TxMixinCount) {
return true
}
return false
}
// SetTxMixinCount gets a reference to the given int32 and assigns it to the TxMixinCount field.
func (o *TxProcessingPerformanceModel) SetTxMixinCount(v int32) {
o.TxMixinCount = &v
}
func (o TxProcessingPerformanceModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TxProcessingPerformanceModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.TxCheckInputs) {
toSerialize["tx_check_inputs"] = o.TxCheckInputs
}
if !IsNil(o.TxAddOneTx) {
toSerialize["tx_add_one_tx"] = o.TxAddOneTx
}
if !IsNil(o.TxProcessExtra) {
toSerialize["tx_process_extra"] = o.TxProcessExtra
}
if !IsNil(o.TxProcessAttachment) {
toSerialize["tx_process_attachment"] = o.TxProcessAttachment
}
if !IsNil(o.TxProcessInputs) {
toSerialize["tx_process_inputs"] = o.TxProcessInputs
}
if !IsNil(o.TxPushGlobalIndex) {
toSerialize["tx_push_global_index"] = o.TxPushGlobalIndex
}
if !IsNil(o.TxCheckExist) {
toSerialize["tx_check_exist"] = o.TxCheckExist
}
if !IsNil(o.TxPrintLog) {
toSerialize["tx_print_log"] = o.TxPrintLog
}
if !IsNil(o.TxPrapareAppend) {
toSerialize["tx_prapare_append"] = o.TxPrapareAppend
}
if !IsNil(o.TxAppend) {
toSerialize["tx_append"] = o.TxAppend
}
if !IsNil(o.TxAppendRlWait) {
toSerialize["tx_append_rl_wait"] = o.TxAppendRlWait
}
if !IsNil(o.TxAppendIsExpired) {
toSerialize["tx_append_is_expired"] = o.TxAppendIsExpired
}
if !IsNil(o.TxStoreDb) {
toSerialize["tx_store_db"] = o.TxStoreDb
}
if !IsNil(o.TxCheckInputsPrefixHash) {
toSerialize["tx_check_inputs_prefix_hash"] = o.TxCheckInputsPrefixHash
}
if !IsNil(o.TxCheckInputsAttachmentCheck) {
toSerialize["tx_check_inputs_attachment_check"] = o.TxCheckInputsAttachmentCheck
}
if !IsNil(o.TxCheckInputsLoop) {
toSerialize["tx_check_inputs_loop"] = o.TxCheckInputsLoop
}
if !IsNil(o.TxCheckInputsLoopKimageCheck) {
toSerialize["tx_check_inputs_loop_kimage_check"] = o.TxCheckInputsLoopKimageCheck
}
if !IsNil(o.TxCheckInputsLoopChInValSig) {
toSerialize["tx_check_inputs_loop_ch_in_val_sig"] = o.TxCheckInputsLoopChInValSig
}
if !IsNil(o.TxCheckInputsLoopScanOutputkeysGetItemSize) {
toSerialize["tx_check_inputs_loop_scan_outputkeys_get_item_size"] = o.TxCheckInputsLoopScanOutputkeysGetItemSize
}
if !IsNil(o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute) {
toSerialize["tx_check_inputs_loop_scan_outputkeys_relative_to_absolute"] = o.TxCheckInputsLoopScanOutputkeysRelativeToAbsolute
}
if !IsNil(o.TxCheckInputsLoopScanOutputkeysLoop) {
toSerialize["tx_check_inputs_loop_scan_outputkeys_loop"] = o.TxCheckInputsLoopScanOutputkeysLoop
}
if !IsNil(o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem) {
toSerialize["tx_check_inputs_loop_scan_outputkeys_loop_get_subitem"] = o.TxCheckInputsLoopScanOutputkeysLoopGetSubitem
}
if !IsNil(o.TxCheckInputsLoopScanOutputkeysLoopFindTx) {
toSerialize["tx_check_inputs_loop_scan_outputkeys_loop_find_tx"] = o.TxCheckInputsLoopScanOutputkeysLoopFindTx
}
if !IsNil(o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput) {
toSerialize["tx_check_inputs_loop_scan_outputkeys_loop_handle_output"] = o.TxCheckInputsLoopScanOutputkeysLoopHandleOutput
}
if !IsNil(o.TxMixinCount) {
toSerialize["tx_mixin_count"] = o.TxMixinCount
}
return toSerialize, nil
}
type NullableTxProcessingPerformanceModel struct {
value *TxProcessingPerformanceModel
isSet bool
}
func (v NullableTxProcessingPerformanceModel) Get() *TxProcessingPerformanceModel {
return v.value
}
func (v *NullableTxProcessingPerformanceModel) Set(val *TxProcessingPerformanceModel) {
v.value = val
v.isSet = true
}
func (v NullableTxProcessingPerformanceModel) IsSet() bool {
return v.isSet
}
func (v *NullableTxProcessingPerformanceModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTxProcessingPerformanceModel(val *TxProcessingPerformanceModel) *NullableTxProcessingPerformanceModel {
return &NullableTxProcessingPerformanceModel{value: val, isSet: true}
}
func (v NullableTxProcessingPerformanceModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTxProcessingPerformanceModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

270
utils/sdk/client/go/model_version_model.go generated Normal file
View file

@ -0,0 +1,270 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"encoding/json"
)
// checks if the VersionModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &VersionModel{}
// VersionModel struct for VersionModel
type VersionModel struct {
Version *string `json:"version,omitempty"`
VersionLong *string `json:"version_long,omitempty"`
Major *string `json:"major,omitempty"`
Minor *string `json:"minor,omitempty"`
Revision *string `json:"revision,omitempty"`
}
// NewVersionModel instantiates a new VersionModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewVersionModel() *VersionModel {
this := VersionModel{}
return &this
}
// NewVersionModelWithDefaults instantiates a new VersionModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewVersionModelWithDefaults() *VersionModel {
this := VersionModel{}
return &this
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *VersionModel) GetVersion() string {
if o == nil || IsNil(o.Version) {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionModel) GetVersionOk() (*string, bool) {
if o == nil || IsNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *VersionModel) HasVersion() bool {
if o != nil && !IsNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *VersionModel) SetVersion(v string) {
o.Version = &v
}
// GetVersionLong returns the VersionLong field value if set, zero value otherwise.
func (o *VersionModel) GetVersionLong() string {
if o == nil || IsNil(o.VersionLong) {
var ret string
return ret
}
return *o.VersionLong
}
// GetVersionLongOk returns a tuple with the VersionLong field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionModel) GetVersionLongOk() (*string, bool) {
if o == nil || IsNil(o.VersionLong) {
return nil, false
}
return o.VersionLong, true
}
// HasVersionLong returns a boolean if a field has been set.
func (o *VersionModel) HasVersionLong() bool {
if o != nil && !IsNil(o.VersionLong) {
return true
}
return false
}
// SetVersionLong gets a reference to the given string and assigns it to the VersionLong field.
func (o *VersionModel) SetVersionLong(v string) {
o.VersionLong = &v
}
// GetMajor returns the Major field value if set, zero value otherwise.
func (o *VersionModel) GetMajor() string {
if o == nil || IsNil(o.Major) {
var ret string
return ret
}
return *o.Major
}
// GetMajorOk returns a tuple with the Major field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionModel) GetMajorOk() (*string, bool) {
if o == nil || IsNil(o.Major) {
return nil, false
}
return o.Major, true
}
// HasMajor returns a boolean if a field has been set.
func (o *VersionModel) HasMajor() bool {
if o != nil && !IsNil(o.Major) {
return true
}
return false
}
// SetMajor gets a reference to the given string and assigns it to the Major field.
func (o *VersionModel) SetMajor(v string) {
o.Major = &v
}
// GetMinor returns the Minor field value if set, zero value otherwise.
func (o *VersionModel) GetMinor() string {
if o == nil || IsNil(o.Minor) {
var ret string
return ret
}
return *o.Minor
}
// GetMinorOk returns a tuple with the Minor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionModel) GetMinorOk() (*string, bool) {
if o == nil || IsNil(o.Minor) {
return nil, false
}
return o.Minor, true
}
// HasMinor returns a boolean if a field has been set.
func (o *VersionModel) HasMinor() bool {
if o != nil && !IsNil(o.Minor) {
return true
}
return false
}
// SetMinor gets a reference to the given string and assigns it to the Minor field.
func (o *VersionModel) SetMinor(v string) {
o.Minor = &v
}
// GetRevision returns the Revision field value if set, zero value otherwise.
func (o *VersionModel) GetRevision() string {
if o == nil || IsNil(o.Revision) {
var ret string
return ret
}
return *o.Revision
}
// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VersionModel) GetRevisionOk() (*string, bool) {
if o == nil || IsNil(o.Revision) {
return nil, false
}
return o.Revision, true
}
// HasRevision returns a boolean if a field has been set.
func (o *VersionModel) HasRevision() bool {
if o != nil && !IsNil(o.Revision) {
return true
}
return false
}
// SetRevision gets a reference to the given string and assigns it to the Revision field.
func (o *VersionModel) SetRevision(v string) {
o.Revision = &v
}
func (o VersionModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o VersionModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Version) {
toSerialize["version"] = o.Version
}
if !IsNil(o.VersionLong) {
toSerialize["version_long"] = o.VersionLong
}
if !IsNil(o.Major) {
toSerialize["major"] = o.Major
}
if !IsNil(o.Minor) {
toSerialize["minor"] = o.Minor
}
if !IsNil(o.Revision) {
toSerialize["revision"] = o.Revision
}
return toSerialize, nil
}
type NullableVersionModel struct {
value *VersionModel
isSet bool
}
func (v NullableVersionModel) Get() *VersionModel {
return v.value
}
func (v *NullableVersionModel) Set(val *VersionModel) {
v.value = val
v.isSet = true
}
func (v NullableVersionModel) IsSet() bool {
return v.isSet
}
func (v *NullableVersionModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVersionModel(val *VersionModel) *NullableVersionModel {
return &NullableVersionModel{value: val, isSet: true}
}
func (v NullableVersionModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableVersionModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}

47
utils/sdk/client/go/response.go generated Normal file
View file

@ -0,0 +1,47 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"net/http"
)
// APIResponse stores the API response returned by the server.
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the OpenAPI operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
// NewAPIResponse returns a new APIResponse object.
func NewAPIResponse(r *http.Response) *APIResponse {
response := &APIResponse{Response: r}
return response
}
// NewAPIResponseWithError returns a new APIResponse object with the provided error message.
func NewAPIResponseWithError(errorMessage string) *APIResponse {
response := &APIResponse{Message: errorMessage}
return response
}

View file

@ -0,0 +1,87 @@
/*
Lethean Blockchain API
Testing BlockAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package lthn
import (
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func Test_lthn_BlockAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test BlockAPIService CreateBlockTemplate", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.BlockAPI.CreateBlockTemplate(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test BlockAPIService GetBlock", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var identifier string
resp, httpRes, err := apiClient.BlockAPI.GetBlock(context.Background(), identifier).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test BlockAPIService GetBlocks", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.BlockAPI.GetBlocks(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test BlockAPIService GetHeight", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.BlockAPI.GetHeight(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test BlockAPIService SubmitBlock", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.BlockAPI.SubmitBlock(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}

View file

@ -0,0 +1,49 @@
/*
Lethean Blockchain API
Testing InfoAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package lthn
import (
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "github.com/letheanVPN/blockchain/lthn"
)
func Test_lthn_InfoAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test InfoAPIService GetInfo", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.InfoAPI.GetInfo(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test InfoAPIService Version", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.InfoAPI.Version(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}

361
utils/sdk/client/go/utils.go generated Normal file
View file

@ -0,0 +1,361 @@
/*
Lethean Blockchain API
OpenAPI for Lethean Blockchain
API version: 6.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package lthn
import (
"bytes"
"encoding/json"
"fmt"
"reflect"
"time"
)
// PtrBool is a helper routine that returns a pointer to given boolean value.
func PtrBool(v bool) *bool { return &v }
// PtrInt is a helper routine that returns a pointer to given integer value.
func PtrInt(v int) *int { return &v }
// PtrInt32 is a helper routine that returns a pointer to given integer value.
func PtrInt32(v int32) *int32 { return &v }
// PtrInt64 is a helper routine that returns a pointer to given integer value.
func PtrInt64(v int64) *int64 { return &v }
// PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat32(v float32) *float32 { return &v }
// PtrFloat64 is a helper routine that returns a pointer to given float value.
func PtrFloat64(v float64) *float64 { return &v }
// PtrString is a helper routine that returns a pointer to given string value.
func PtrString(v string) *string { return &v }
// PtrTime is helper routine that returns a pointer to given Time value.
func PtrTime(v time.Time) *time.Time { return &v }
type NullableBool struct {
value *bool
isSet bool
}
func (v NullableBool) Get() *bool {
return v.value
}
func (v *NullableBool) Set(val *bool) {
v.value = val
v.isSet = true
}
func (v NullableBool) IsSet() bool {
return v.isSet
}
func (v *NullableBool) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBool(val *bool) *NullableBool {
return &NullableBool{value: val, isSet: true}
}
func (v NullableBool) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBool) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt struct {
value *int
isSet bool
}
func (v NullableInt) Get() *int {
return v.value
}
func (v *NullableInt) Set(val *int) {
v.value = val
v.isSet = true
}
func (v NullableInt) IsSet() bool {
return v.isSet
}
func (v *NullableInt) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt(val *int) *NullableInt {
return &NullableInt{value: val, isSet: true}
}
func (v NullableInt) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInt) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt32 struct {
value *int32
isSet bool
}
func (v NullableInt32) Get() *int32 {
return v.value
}
func (v *NullableInt32) Set(val *int32) {
v.value = val
v.isSet = true
}
func (v NullableInt32) IsSet() bool {
return v.isSet
}
func (v *NullableInt32) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt32(val *int32) *NullableInt32 {
return &NullableInt32{value: val, isSet: true}
}
func (v NullableInt32) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInt32) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableInt64 struct {
value *int64
isSet bool
}
func (v NullableInt64) Get() *int64 {
return v.value
}
func (v *NullableInt64) Set(val *int64) {
v.value = val
v.isSet = true
}
func (v NullableInt64) IsSet() bool {
return v.isSet
}
func (v *NullableInt64) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInt64(val *int64) *NullableInt64 {
return &NullableInt64{value: val, isSet: true}
}
func (v NullableInt64) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInt64) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableFloat32 struct {
value *float32
isSet bool
}
func (v NullableFloat32) Get() *float32 {
return v.value
}
func (v *NullableFloat32) Set(val *float32) {
v.value = val
v.isSet = true
}
func (v NullableFloat32) IsSet() bool {
return v.isSet
}
func (v *NullableFloat32) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFloat32(val *float32) *NullableFloat32 {
return &NullableFloat32{value: val, isSet: true}
}
func (v NullableFloat32) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFloat32) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableFloat64 struct {
value *float64
isSet bool
}
func (v NullableFloat64) Get() *float64 {
return v.value
}
func (v *NullableFloat64) Set(val *float64) {
v.value = val
v.isSet = true
}
func (v NullableFloat64) IsSet() bool {
return v.isSet
}
func (v *NullableFloat64) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFloat64(val *float64) *NullableFloat64 {
return &NullableFloat64{value: val, isSet: true}
}
func (v NullableFloat64) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFloat64) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableString struct {
value *string
isSet bool
}
func (v NullableString) Get() *string {
return v.value
}
func (v *NullableString) Set(val *string) {
v.value = val
v.isSet = true
}
func (v NullableString) IsSet() bool {
return v.isSet
}
func (v *NullableString) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableString(val *string) *NullableString {
return &NullableString{value: val, isSet: true}
}
func (v NullableString) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableString) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
type NullableTime struct {
value *time.Time
isSet bool
}
func (v NullableTime) Get() *time.Time {
return v.value
}
func (v *NullableTime) Set(val *time.Time) {
v.value = val
v.isSet = true
}
func (v NullableTime) IsSet() bool {
return v.isSet
}
func (v *NullableTime) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTime(val *time.Time) *NullableTime {
return &NullableTime{value: val, isSet: true}
}
func (v NullableTime) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTime) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
// IsNil checks if an input is nil
func IsNil(i interface{}) bool {
if i == nil {
return true
}
switch reflect.TypeOf(i).Kind() {
case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
return reflect.ValueOf(i).IsNil()
case reflect.Array:
return reflect.ValueOf(i).IsZero()
}
return false
}
type MappedNullable interface {
ToMap() (map[string]interface{}, error)
}
// A wrapper for strict JSON decoding
func newStrictDecoder(data []byte) *json.Decoder {
dec := json.NewDecoder(bytes.NewBuffer(data))
dec.DisallowUnknownFields()
return dec
}
// Prevent trying to import "fmt"
func reportError(format string, a ...interface{}) error {
return fmt.Errorf(format, a...)
}