model

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 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 AssetType

type AssetType string

AssetType Asset Type

swagger:model assetType

const (

	// AssetTypeCoin captures enum value "coin"
	AssetTypeCoin AssetType = "coin"

	// AssetTypeToken captures enum value "token"
	AssetTypeToken AssetType = "token"
)

func (AssetType) ContextValidate

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

ContextValidate validates this asset type based on context it is used

func (AssetType) Validate

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

Validate validates this asset type

type BSCTransaction added in v0.3.0

type BSCTransaction struct {

	// RLP-encoded transaction
	// Example: 0xf86e83014b2985048ccb44b1827530944675c7e5baafbffbca748158becba61ef3b0a26387c2a454bcf91b3f8026a0db0be3dcc25213b286e08d018fe8143eb85a3b7bb5cf3749245e907158e9c8daa033c7ec9362ee890d63b89e9dbfcfcb6edd9432321102c1d2ea7921c6cc07009e
	RawTransaction string `json:"rawTransaction"`
}

BSCTransaction b s c transaction

swagger:model bSCTransaction

func (*BSCTransaction) ContextValidate added in v0.3.0

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

ContextValidate validates this b s c transaction based on context it is used

func (*BSCTransaction) MarshalBinary added in v0.3.0

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

MarshalBinary interface implementation

func (*BSCTransaction) UnmarshalBinary added in v0.3.0

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

UnmarshalBinary interface implementation

func (*BSCTransaction) Validate added in v0.3.0

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

Validate validates this b s c transaction

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"

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

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

	// BlockchainBSC captures enum value "BSC"
	BlockchainBSC Blockchain = "BSC"
)

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 CreateBSCTransactionRequest added in v0.3.0

type CreateBSCTransactionRequest struct {

	// Raw amount in wei or contract decimals
	// Example: 100000000000000000
	// Required: true
	Amount string `json:"amount"`

	// asset type
	// Required: true
	AssetType AssetType `json:"assetType"`

	// ERC-20 contract address
	// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
	ContractAddress string `json:"contractAddress,omitempty"`

	// Transaction Gas amount
	// Example: 3
	// Required: true
	// Minimum: 1
	Gas int64 `json:"gas"`

	// Max Fee Per Gas (wei)
	// Example: 200000000
	// Required: true
	MaxFeePerGas string `json:"maxFeePerGas"`

	// Max Priority Fee Per Gas (wei)
	// Example: 2000000
	// Required: true
	MaxPriorityPerGas string `json:"maxPriorityPerGas"`

	// Network (chain) Id
	// Example: 1
	// Required: true
	NetworkID int64 `json:"networkId"`

	// Transaction nonce
	// Example: 40
	// Required: true
	// Minimum: 0
	Nonce *int64 `json:"nonce"`

	// Recipient address
	// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
	// Required: true
	Recipient string `json:"recipient"`
}

CreateBSCTransactionRequest create b s c transaction request

swagger:model createBSCTransactionRequest

func (*CreateBSCTransactionRequest) ContextValidate added in v0.3.0

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

ContextValidate validate this create b s c transaction request based on the context it is used

func (*CreateBSCTransactionRequest) MarshalBinary added in v0.3.0

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

MarshalBinary interface implementation

func (*CreateBSCTransactionRequest) UnmarshalBinary added in v0.3.0

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

UnmarshalBinary interface implementation

func (*CreateBSCTransactionRequest) Validate added in v0.3.0

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

Validate validates this create b s c transaction request

type CreateEthereumTransactionRequest

type CreateEthereumTransactionRequest struct {

	// Raw amount in wei or contract decimals
	// Example: 100000000000000000
	// Required: true
	Amount string `json:"amount"`

	// asset type
	// Required: true
	AssetType AssetType `json:"assetType"`

	// ERC-20 contract address
	// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
	ContractAddress string `json:"contractAddress,omitempty"`

	// Transaction Gas amount
	// Example: 3
	// Required: true
	// Minimum: 1
	Gas int64 `json:"gas"`

	// Max Fee Per Gas (wei)
	// Example: 200000000
	// Required: true
	MaxFeePerGas string `json:"maxFeePerGas"`

	// Max Priority Fee Per Gas (wei)
	// Example: 2000000
	// Required: true
	MaxPriorityPerGas string `json:"maxPriorityPerGas"`

	// Network (chain) Id
	// Example: 1
	// Required: true
	NetworkID int64 `json:"networkId"`

	// Transaction nonce
	// Example: 40
	// Required: true
	// Minimum: 0
	Nonce *int64 `json:"nonce"`

	// Recipient address
	// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
	// Required: true
	Recipient string `json:"recipient"`
}

CreateEthereumTransactionRequest create ethereum transaction request

swagger:model createEthereumTransactionRequest

func (*CreateEthereumTransactionRequest) ContextValidate

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

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

func (*CreateEthereumTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateEthereumTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateEthereumTransactionRequest) Validate

Validate validates this create ethereum transaction request

type CreateMaticTransactionRequest

type CreateMaticTransactionRequest struct {

	// Raw amount in wei or contract decimals
	// Example: 100000000000000000
	// Required: true
	Amount string `json:"amount"`

	// asset type
	// Required: true
	AssetType AssetType `json:"assetType"`

	// ERC-20 contract address
	// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
	ContractAddress string `json:"contractAddress,omitempty"`

	// Transaction Gas amount
	// Example: 3
	// Required: true
	// Minimum: 1
	Gas int64 `json:"gas"`

	// Max Fee Per Gas (wei)
	// Example: 200000000
	// Required: true
	MaxFeePerGas string `json:"maxFeePerGas"`

	// Max Priority Fee Per Gas (wei)
	// Example: 2000000
	// Required: true
	MaxPriorityPerGas string `json:"maxPriorityPerGas"`

	// Network (chain) Id
	// Example: 1
	// Required: true
	NetworkID int64 `json:"networkId"`

	// Transaction nonce
	// Example: 40
	// Required: true
	// Minimum: 0
	Nonce *int64 `json:"nonce"`

	// Recipient address
	// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
	// Required: true
	Recipient string `json:"recipient"`
}

CreateMaticTransactionRequest create matic transaction request

swagger:model createMaticTransactionRequest

func (*CreateMaticTransactionRequest) ContextValidate

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

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

func (*CreateMaticTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateMaticTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateMaticTransactionRequest) Validate

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

Validate validates this create matic transaction request

type CreateTronTransactionRequest

type CreateTronTransactionRequest struct {

	// Raw amount in SUN or contract decimals
	// Example: 100000
	// Required: true
	Amount string `json:"amount"`

	// asset type
	// Required: true
	AssetType AssetType `json:"assetType"`

	// Contract address is base58
	// Example: TTYxentT3sf8XHbtHGyWX2uDgdadE9uYSL
	ContractAddress string `json:"contractAddress,omitempty"`

	// Contract call fee limit in SUN
	FeeLimit int64 `json:"feeLimit,omitempty"`

	// Mainnet / Testnet selection
	// Example: false
	IsTest bool `json:"isTest"`

	// Recipient address in base58
	// Example: TTYxentT3sf8XHbtHGyWX2uDgdadE9uYSL
	// Required: true
	Recipient string `json:"recipient"`
}

CreateTronTransactionRequest create tron transaction request

swagger:model createTronTransactionRequest

func (*CreateTronTransactionRequest) ContextValidate

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

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

func (*CreateTronTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTronTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTronTransactionRequest) Validate

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

Validate validates this create tron transaction 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 EthereumTransaction

type EthereumTransaction struct {

	// RLP-encoded transaction
	// Example: 0xf86e83014b2985048ccb44b1827530944675c7e5baafbffbca748158becba61ef3b0a26387c2a454bcf91b3f8026a0db0be3dcc25213b286e08d018fe8143eb85a3b7bb5cf3749245e907158e9c8daa033c7ec9362ee890d63b89e9dbfcfcb6edd9432321102c1d2ea7921c6cc07009e
	RawTransaction string `json:"rawTransaction"`
}

EthereumTransaction ethereum transaction

swagger:model ethereumTransaction

func (*EthereumTransaction) ContextValidate

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

ContextValidate validates this ethereum transaction based on context it is used

func (*EthereumTransaction) MarshalBinary

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

MarshalBinary interface implementation

func (*EthereumTransaction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EthereumTransaction) Validate

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

Validate validates this ethereum transaction

type MaticTransaction

type MaticTransaction struct {

	// RLP-encoded transaction
	// Example: 0xf86e83014b2985048ccb44b1827530944675c7e5baafbffbca748158becba61ef3b0a26387c2a454bcf91b3f8026a0db0be3dcc25213b286e08d018fe8143eb85a3b7bb5cf3749245e907158e9c8daa033c7ec9362ee890d63b89e9dbfcfcb6edd9432321102c1d2ea7921c6cc07009e
	RawTransaction string `json:"rawTransaction"`
}

MaticTransaction matic transaction

swagger:model maticTransaction

func (*MaticTransaction) ContextValidate

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

ContextValidate validates this matic transaction based on context it is used

func (*MaticTransaction) MarshalBinary

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

MarshalBinary interface implementation

func (*MaticTransaction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MaticTransaction) Validate

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

Validate validates this matic transaction

type TronTransaction

type TronTransaction struct {

	// raw data
	RawData interface{} `json:"raw_data"`

	// raw data hex
	RawDataHex string `json:"raw_data_Hex"`

	// signature
	Signature []string `json:"signature"`

	// tx ID
	TxID string `json:"txID"`

	// visible
	Visible bool `json:"visible"`
}

TronTransaction Signed transaction. See https://developers.tron.network/reference/createtransaction

swagger:model tronTransaction

func (*TronTransaction) ContextValidate

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

ContextValidate validates this tron transaction based on context it is used

func (*TronTransaction) MarshalBinary

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

MarshalBinary interface implementation

func (*TronTransaction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TronTransaction) Validate

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

Validate validates this tron transaction

type Wallet

type Wallet struct {

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

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

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

	// Wallet UUID
	// Example: 123e4567-e89b-12d3-a456-426655440000
	ID string `json:"id,omitempty"`

	// Public Key
	// Example: abc123
	PublicKey string `json:"publicKey,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

Jump to

Keyboard shortcuts

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