model

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain string

Blockchain Supported blockchain

swagger:model blockchain

const (

	// BlockchainBTC captures enum value "BTC"
	BlockchainBTC Blockchain = "BTC"

	// BlockchainETH captures enum value "ETH"
	BlockchainETH Blockchain = "ETH"

	// BlockchainMATIC captures enum value "MATIC"
	BlockchainMATIC Blockchain = "MATIC"

	// BlockchainTRON captures enum value "TRON"
	BlockchainTRON Blockchain = "TRON"
)

func (Blockchain) ContextValidate

func (m Blockchain) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this blockchain based on context it is used

func (Blockchain) Validate

func (m Blockchain) Validate(formats strfmt.Registry) error

Validate validates this blockchain

type BroadcastTransactionRequest

type BroadcastTransactionRequest struct {

	// blockchain
	// Required: true
	Blockchain string `json:"blockchain"`

	// Raw hex-encoded transaction
	// Required: true
	Hex string `json:"hex"`

	// is test
	IsTest bool `json:"isTest,omitempty"`
}

BroadcastTransactionRequest broadcast transaction request

swagger:model broadcastTransactionRequest

func (*BroadcastTransactionRequest) ContextValidate

func (m *BroadcastTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this broadcast transaction request based on context it is used

func (*BroadcastTransactionRequest) MarshalBinary

func (m *BroadcastTransactionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BroadcastTransactionRequest) UnmarshalBinary

func (m *BroadcastTransactionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BroadcastTransactionRequest) Validate

func (m *BroadcastTransactionRequest) Validate(formats strfmt.Registry) error

Validate validates this broadcast transaction request

type BroadcastTransactionResponse

type BroadcastTransactionResponse struct {

	// transaction hash Id
	TransactionHashID string `json:"transactionHashId"`
}

BroadcastTransactionResponse broadcast transaction response

swagger:model broadcastTransactionResponse

func (*BroadcastTransactionResponse) ContextValidate

func (m *BroadcastTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this broadcast transaction response based on context it is used

func (*BroadcastTransactionResponse) MarshalBinary

func (m *BroadcastTransactionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BroadcastTransactionResponse) UnmarshalBinary

func (m *BroadcastTransactionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BroadcastTransactionResponse) Validate

func (m *BroadcastTransactionResponse) Validate(formats strfmt.Registry) error

Validate validates this broadcast transaction response

type BulkCreateWalletsRequest

type BulkCreateWalletsRequest struct {

	// amount
	// Required: true
	// Maximum: 32
	// Minimum: 1
	Amount int64 `json:"amount"`

	// blockchain
	// Required: true
	Blockchain *Blockchain `json:"blockchain"`
}

BulkCreateWalletsRequest bulk create wallets request

swagger:model bulkCreateWalletsRequest

func (*BulkCreateWalletsRequest) ContextValidate

func (m *BulkCreateWalletsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bulk create wallets request based on the context it is used

func (*BulkCreateWalletsRequest) MarshalBinary

func (m *BulkCreateWalletsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkCreateWalletsRequest) UnmarshalBinary

func (m *BulkCreateWalletsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkCreateWalletsRequest) Validate

func (m *BulkCreateWalletsRequest) Validate(formats strfmt.Registry) error

Validate validates this bulk create wallets request

type CreateWalletRequest

type CreateWalletRequest struct {

	// blockchain
	// Required: true
	Blockchain *Blockchain `json:"blockchain"`
}

CreateWalletRequest create wallet request

swagger:model createWalletRequest

func (*CreateWalletRequest) ContextValidate

func (m *CreateWalletRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create wallet request based on the context it is used

func (*CreateWalletRequest) MarshalBinary

func (m *CreateWalletRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateWalletRequest) UnmarshalBinary

func (m *CreateWalletRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateWalletRequest) Validate

func (m *CreateWalletRequest) Validate(formats strfmt.Registry) error

Validate validates this create wallet request

type ErrorResponse

type ErrorResponse struct {

	// Errors list
	Errors []*ErrorResponseItem `json:"errors"`

	// Error Message
	// Example: You are unauthenticated
	Message string `json:"message,omitempty"`

	// Error status
	// Example: unauthenticated
	Status string `json:"status,omitempty"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error response based on the context it is used

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ErrorResponseItem

type ErrorResponseItem struct {

	// Error field
	// Example: username
	Field string `json:"field,omitempty"`

	// Error Message
	// Example: You are unauthenticated
	Message string `json:"message,omitempty"`
}

ErrorResponseItem error response item

swagger:model ErrorResponseItem

func (*ErrorResponseItem) ContextValidate

func (m *ErrorResponseItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error response item based on context it is used

func (*ErrorResponseItem) MarshalBinary

func (m *ErrorResponseItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponseItem) UnmarshalBinary

func (m *ErrorResponseItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponseItem) Validate

func (m *ErrorResponseItem) Validate(formats strfmt.Registry) error

Validate validates this error response item

type EstimateFeesRequest

type EstimateFeesRequest struct {

	// ticker
	// Required: true
	Currency string `json:"currency"`

	// is test
	IsTest bool `json:"isTest,omitempty"`
}

EstimateFeesRequest estimate fees request

swagger:model estimateFeesRequest

func (*EstimateFeesRequest) ContextValidate

func (m *EstimateFeesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this estimate fees request based on context it is used

func (*EstimateFeesRequest) MarshalBinary

func (m *EstimateFeesRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EstimateFeesRequest) UnmarshalBinary

func (m *EstimateFeesRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EstimateFeesRequest) Validate

func (m *EstimateFeesRequest) Validate(formats strfmt.Registry) error

Validate validates this estimate fees request

type JobResults

type JobResults struct {

	// error
	Error string `json:"error,omitempty"`

	// logs
	Logs []*Log `json:"logs"`
}

JobResults job results

swagger:model jobResults

func (*JobResults) ContextValidate

func (m *JobResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job results based on the context it is used

func (*JobResults) MarshalBinary

func (m *JobResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobResults) UnmarshalBinary

func (m *JobResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobResults) Validate

func (m *JobResults) Validate(formats strfmt.Registry) error

Validate validates this job results

type Log

type Log struct {

	// message
	Message string `json:"message,omitempty"`

	// metadata
	Metadata interface{} `json:"metadata,omitempty"`
}

Log log

swagger:model log

func (*Log) ContextValidate

func (m *Log) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this log based on context it is used

func (*Log) MarshalBinary

func (m *Log) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Log) UnmarshalBinary

func (m *Log) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Log) Validate

func (m *Log) Validate(formats strfmt.Registry) error

Validate validates this log

type RunJobRequest

type RunJobRequest struct {

	// job
	// Required: true
	Job string `json:"job"`
}

RunJobRequest run job request

swagger:model runJobRequest

func (*RunJobRequest) ContextValidate

func (m *RunJobRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this run job request based on context it is used

func (*RunJobRequest) MarshalBinary

func (m *RunJobRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RunJobRequest) UnmarshalBinary

func (m *RunJobRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RunJobRequest) Validate

func (m *RunJobRequest) Validate(formats strfmt.Registry) error

Validate validates this run job request

type TransactionReceiptResponse

type TransactionReceiptResponse struct {

	// blockchain
	Blockchain string `json:"blockchain"`

	// confirmations
	Confirmations int64 `json:"confirmations"`

	// is confirmed
	IsConfirmed bool `json:"isConfirmed"`

	// is test
	IsTest bool `json:"isTest"`

	// network fee
	NetworkFee string `json:"networkFee"`

	// network fee formatted
	NetworkFeeFormatted string `json:"networkFeeFormatted"`

	// nonce
	Nonce int64 `json:"nonce"`

	// recipient
	Recipient string `json:"recipient"`

	// sender
	Sender string `json:"sender"`

	// success
	Success bool `json:"success"`

	// transaction hash
	TransactionHash string `json:"transactionHash"`
}

TransactionReceiptResponse transaction receipt response

swagger:model transactionReceiptResponse

func (*TransactionReceiptResponse) ContextValidate

func (m *TransactionReceiptResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this transaction receipt response based on context it is used

func (*TransactionReceiptResponse) MarshalBinary

func (m *TransactionReceiptResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TransactionReceiptResponse) UnmarshalBinary

func (m *TransactionReceiptResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TransactionReceiptResponse) Validate

func (m *TransactionReceiptResponse) Validate(formats strfmt.Registry) error

Validate validates this transaction receipt response

type Wallet

type Wallet struct {

	// Address
	// Example: 11256099
	Address string `json:"address,omitempty"`

	// blockchain
	Blockchain Blockchain `json:"blockchain,omitempty"`

	// Created At
	// Example: 1656696522
	CreatedAtUnix int64 `json:"createdAtUnix,omitempty"`

	// ID
	ID int64 `json:"id,omitempty"`

	// UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	UUID string `json:"uuid,omitempty"`
}

Wallet wallet

swagger:model wallet

func (*Wallet) ContextValidate

func (m *Wallet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wallet based on the context it is used

func (*Wallet) MarshalBinary

func (m *Wallet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Wallet) UnmarshalBinary

func (m *Wallet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Wallet) Validate

func (m *Wallet) Validate(formats strfmt.Registry) error

Validate validates this wallet

type WalletList

type WalletList struct {

	// Next pagination ID
	NextPageID *int64 `json:"nextPageId"`

	// results
	Results []*Wallet `json:"results"`
}

WalletList wallet list

swagger:model walletList

func (*WalletList) ContextValidate

func (m *WalletList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wallet list based on the context it is used

func (*WalletList) MarshalBinary

func (m *WalletList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WalletList) UnmarshalBinary

func (m *WalletList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WalletList) Validate

func (m *WalletList) Validate(formats strfmt.Registry) error

Validate validates this wallet list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL