api

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMemoToTransactionRequest

type AddMemoToTransactionRequest struct {
	TxName string `json:"txName,omitempty" form:"txName" query:"txName" validate:"required"`
	Memo   string `json:"memo,omitempty" form:"memo" query:"memo" validate:"required"`
}

func (*AddMemoToTransactionRequest) Copy

func (*AddMemoToTransactionRequest) CopyAsInterface

func (v *AddMemoToTransactionRequest) CopyAsInterface() interface{}

func (*AddMemoToTransactionRequest) Equal

type AddSendTokensOutputRequest

type AddSendTokensOutputRequest struct {
	TxName       string  `json:"txName,omitempty" form:"txName" query:"txName" validate:"required"`
	TokenAddress string  `json:"tokenAddress,omitempty" form:"tokenAddress" query:"tokenAddress" validate:"required"`
	Amount       big.Int `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"`
}

func (*AddSendTokensOutputRequest) Copy

func (*AddSendTokensOutputRequest) CopyAsInterface

func (v *AddSendTokensOutputRequest) CopyAsInterface() interface{}

func (*AddSendTokensOutputRequest) Equal

func (*AddSendTokensOutputRequest) MarshalJSON

func (v *AddSendTokensOutputRequest) MarshalJSON() ([]byte, error)

func (*AddSendTokensOutputRequest) UnmarshalJSON

func (v *AddSendTokensOutputRequest) UnmarshalJSON(data []byte) error

type AddTokenTransactionOutput

type AddTokenTransactionOutput struct {
	Name   string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	Url    string `json:"url,omitempty" form:"url" query:"url" validate:"required"`
	Amount string `json:"amount,omitempty" form:"amount" query:"amount" validate:"required"`
}

func (*AddTokenTransactionOutput) Copy

func (*AddTokenTransactionOutput) CopyAsInterface

func (v *AddTokenTransactionOutput) CopyAsInterface() interface{}

func (*AddTokenTransactionOutput) Equal

type AddTransactionBodyRequest

type AddTransactionBodyRequest struct {
	Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	Body string `json:"body,omitempty" form:"body" query:"body" validate:"required"`
}

func (*AddTransactionBodyRequest) Copy

func (*AddTransactionBodyRequest) CopyAsInterface

func (v *AddTransactionBodyRequest) CopyAsInterface() interface{}

func (*AddTransactionBodyRequest) Equal

type AddTransactionInputRequest

type AddTransactionInputRequest struct {
	Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	Url  string `json:"url,omitempty" form:"url" query:"url" validate:"required"`
}

func (*AddTransactionInputRequest) Copy

func (*AddTransactionInputRequest) CopyAsInterface

func (v *AddTransactionInputRequest) CopyAsInterface() interface{}

func (*AddTransactionInputRequest) Equal

type AddTransactionToEnvelopeRequest

type AddTransactionToEnvelopeRequest struct {
	EnvelopeName    string `json:"envelopeName,omitempty" form:"envelopeName" query:"envelopeName" validate:"required"`
	TransactionName string `json:"transactionName,omitempty" form:"transactionName" query:"transactionName" validate:"required"`
}

func (*AddTransactionToEnvelopeRequest) Copy

func (*AddTransactionToEnvelopeRequest) CopyAsInterface

func (v *AddTransactionToEnvelopeRequest) CopyAsInterface() interface{}

func (*AddTransactionToEnvelopeRequest) Equal

type Adi

type Adi struct {
	Url   url.URL `json:"url,omitempty" form:"url" query:"url" validate:"required"`
	Pages []Page  `json:"pages,omitempty" form:"pages" query:"pages"`
	// contains filtered or unexported fields
}

func (*Adi) Copy

func (v *Adi) Copy() *Adi

func (*Adi) CopyAsInterface

func (v *Adi) CopyAsInterface() interface{}

func (*Adi) Equal

func (v *Adi) Equal(u *Adi) bool

func (*Adi) IsValid

func (v *Adi) IsValid() error

func (*Adi) MarshalBinary

func (v *Adi) MarshalBinary() ([]byte, error)

func (*Adi) MarshalJSON

func (v *Adi) MarshalJSON() ([]byte, error)

func (*Adi) UnmarshalBinary

func (v *Adi) UnmarshalBinary(data []byte) error

func (*Adi) UnmarshalBinaryFrom

func (v *Adi) UnmarshalBinaryFrom(rd io.Reader) error

func (*Adi) UnmarshalJSON

func (v *Adi) UnmarshalJSON(data []byte) error

type AdiListResponse

type AdiListResponse struct {
	Urls []string `json:"urls,omitempty" form:"urls" query:"urls" validate:"required"`
}

func (*AdiListResponse) Copy

func (v *AdiListResponse) Copy() *AdiListResponse

func (*AdiListResponse) CopyAsInterface

func (v *AdiListResponse) CopyAsInterface() interface{}

func (*AdiListResponse) Equal

func (v *AdiListResponse) Equal(u *AdiListResponse) bool

func (*AdiListResponse) MarshalJSON

func (v *AdiListResponse) MarshalJSON() ([]byte, error)

func (*AdiListResponse) UnmarshalJSON

func (v *AdiListResponse) UnmarshalJSON(data []byte) error

type AuthorizationRequired

type AuthorizationRequired struct {
	Key     []byte `json:"key,omitempty" form:"key" query:"key" validate:"required"`
	Version string `json:"version,omitempty" form:"version" query:"version" validate:"required"`
	// contains filtered or unexported fields
}

func (*AuthorizationRequired) Copy

func (*AuthorizationRequired) CopyAsInterface

func (v *AuthorizationRequired) CopyAsInterface() interface{}

func (*AuthorizationRequired) Equal

func (*AuthorizationRequired) IsValid

func (v *AuthorizationRequired) IsValid() error

func (*AuthorizationRequired) MarshalBinary

func (v *AuthorizationRequired) MarshalBinary() ([]byte, error)

func (*AuthorizationRequired) MarshalJSON

func (v *AuthorizationRequired) MarshalJSON() ([]byte, error)

func (*AuthorizationRequired) UnmarshalBinary

func (v *AuthorizationRequired) UnmarshalBinary(data []byte) error

func (*AuthorizationRequired) UnmarshalBinaryFrom

func (v *AuthorizationRequired) UnmarshalBinaryFrom(rd io.Reader) error

func (*AuthorizationRequired) UnmarshalJSON

func (v *AuthorizationRequired) UnmarshalJSON(data []byte) error

type ComposeTransactionRequest added in v0.4.0

type ComposeTransactionRequest struct {
	TxName string `json:"txName,omitempty" form:"txName" query:"txName" validate:"required"`
}

func (*ComposeTransactionRequest) Copy added in v0.4.0

func (*ComposeTransactionRequest) CopyAsInterface added in v0.4.0

func (v *ComposeTransactionRequest) CopyAsInterface() interface{}

func (*ComposeTransactionRequest) Equal added in v0.4.0

type CreateEnvelopeRequest

type CreateEnvelopeRequest struct {
	Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
}

func (*CreateEnvelopeRequest) Copy

func (*CreateEnvelopeRequest) CopyAsInterface

func (v *CreateEnvelopeRequest) CopyAsInterface() interface{}

func (*CreateEnvelopeRequest) Equal

type CreateEnvelopeResponse

type CreateEnvelopeResponse struct {
	CreateEnvelopeRequest
}

func (*CreateEnvelopeResponse) Copy

func (*CreateEnvelopeResponse) CopyAsInterface

func (v *CreateEnvelopeResponse) CopyAsInterface() interface{}

func (*CreateEnvelopeResponse) Equal

func (*CreateEnvelopeResponse) MarshalJSON

func (v *CreateEnvelopeResponse) MarshalJSON() ([]byte, error)

func (*CreateEnvelopeResponse) UnmarshalJSON

func (v *CreateEnvelopeResponse) UnmarshalJSON(data []byte) error

type CreateTransactionRequest

type CreateTransactionRequest struct {
	Name            string                   `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	TransactionType protocol.TransactionType `json:"transactionType,omitempty" form:"transactionType" query:"transactionType" validate:"required"`
}

func (*CreateTransactionRequest) Copy

func (*CreateTransactionRequest) CopyAsInterface

func (v *CreateTransactionRequest) CopyAsInterface() interface{}

func (*CreateTransactionRequest) Equal

type CreateTransactionResponse

type CreateTransactionResponse struct {
	CreateTransactionRequest
}

func (*CreateTransactionResponse) Copy

func (*CreateTransactionResponse) CopyAsInterface

func (v *CreateTransactionResponse) CopyAsInterface() interface{}

func (*CreateTransactionResponse) Equal

func (*CreateTransactionResponse) MarshalJSON

func (v *CreateTransactionResponse) MarshalJSON() ([]byte, error)

func (*CreateTransactionResponse) UnmarshalJSON

func (v *CreateTransactionResponse) UnmarshalJSON(data []byte) error

type DecodeRequest

type DecodeRequest struct {
	DataBinary []byte `json:"dataBinary,omitempty" form:"dataBinary" query:"dataBinary" validate:"required"`
}

func (*DecodeRequest) Copy

func (v *DecodeRequest) Copy() *DecodeRequest

func (*DecodeRequest) CopyAsInterface

func (v *DecodeRequest) CopyAsInterface() interface{}

func (*DecodeRequest) Equal

func (v *DecodeRequest) Equal(u *DecodeRequest) bool

func (*DecodeRequest) MarshalJSON

func (v *DecodeRequest) MarshalJSON() ([]byte, error)

func (*DecodeRequest) UnmarshalJSON

func (v *DecodeRequest) UnmarshalJSON(data []byte) error

type DecodeResponse

type DecodeResponse struct {
	DataJson json.RawMessage `json:"dataJson,omitempty" form:"dataJson" query:"dataJson" validate:"required"`
}

func (*DecodeResponse) Copy

func (v *DecodeResponse) Copy() *DecodeResponse

func (*DecodeResponse) CopyAsInterface

func (v *DecodeResponse) CopyAsInterface() interface{}

func (*DecodeResponse) Equal

func (v *DecodeResponse) Equal(u *DecodeResponse) bool

type DeleteTransactionRequest

type DeleteTransactionRequest struct {
	Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
}

func (*DeleteTransactionRequest) Copy

func (*DeleteTransactionRequest) CopyAsInterface

func (v *DeleteTransactionRequest) CopyAsInterface() interface{}

func (*DeleteTransactionRequest) Equal

type DeleteTransactionResponse

type DeleteTransactionResponse struct {
	Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
}

func (*DeleteTransactionResponse) Copy

func (*DeleteTransactionResponse) CopyAsInterface

func (v *DeleteTransactionResponse) CopyAsInterface() interface{}

func (*DeleteTransactionResponse) Equal

type DerivationCount

type DerivationCount struct {
	WalletId *url.URL               `json:"walletId,omitempty" form:"walletId" query:"walletId"`
	Type     protocol.SignatureType `json:"type,omitempty" form:"type" query:"type" validate:"required"`
	Count    uint64                 `json:"count,omitempty" form:"count" query:"count" validate:"required"`
}

func (*DerivationCount) Copy

func (v *DerivationCount) Copy() *DerivationCount

func (*DerivationCount) CopyAsInterface

func (v *DerivationCount) CopyAsInterface() interface{}

func (*DerivationCount) Equal

func (v *DerivationCount) Equal(u *DerivationCount) bool

type EncodeAccountResponse

type EncodeAccountResponse struct {
	AccountBinary []byte `json:"accountBinary,omitempty" form:"accountBinary" query:"accountBinary" validate:"required"`
}

func (*EncodeAccountResponse) Copy

func (*EncodeAccountResponse) CopyAsInterface

func (v *EncodeAccountResponse) CopyAsInterface() interface{}

func (*EncodeAccountResponse) Equal

func (*EncodeAccountResponse) MarshalJSON

func (v *EncodeAccountResponse) MarshalJSON() ([]byte, error)

func (*EncodeAccountResponse) UnmarshalJSON

func (v *EncodeAccountResponse) UnmarshalJSON(data []byte) error

type EncodeEnvelopeResponse added in v0.4.0

type EncodeEnvelopeResponse struct {
	EnvelopeBinary []byte `json:"envelopeBinary,omitempty" form:"envelopeBinary" query:"envelopeBinary" validate:"required"`
}

func (*EncodeEnvelopeResponse) Copy added in v0.4.0

func (*EncodeEnvelopeResponse) CopyAsInterface added in v0.4.0

func (v *EncodeEnvelopeResponse) CopyAsInterface() interface{}

func (*EncodeEnvelopeResponse) Equal added in v0.4.0

func (*EncodeEnvelopeResponse) MarshalJSON added in v0.4.0

func (v *EncodeEnvelopeResponse) MarshalJSON() ([]byte, error)

func (*EncodeEnvelopeResponse) UnmarshalJSON added in v0.4.0

func (v *EncodeEnvelopeResponse) UnmarshalJSON(data []byte) error

type EncodeRequest

type EncodeRequest struct {
	DataJson json.RawMessage `json:"dataJson,omitempty" form:"dataJson" query:"dataJson" validate:"required"`
}

func (*EncodeRequest) Copy

func (v *EncodeRequest) Copy() *EncodeRequest

func (*EncodeRequest) CopyAsInterface

func (v *EncodeRequest) CopyAsInterface() interface{}

func (*EncodeRequest) Equal

func (v *EncodeRequest) Equal(u *EncodeRequest) bool

type EncodeTransactionBodyResponse

type EncodeTransactionBodyResponse struct {
	TransactionBodyBinary []byte `json:"transactionBodyBinary,omitempty" form:"transactionBodyBinary" query:"transactionBodyBinary" validate:"required"`
}

func (*EncodeTransactionBodyResponse) Copy

func (*EncodeTransactionBodyResponse) CopyAsInterface

func (v *EncodeTransactionBodyResponse) CopyAsInterface() interface{}

func (*EncodeTransactionBodyResponse) Equal

func (*EncodeTransactionBodyResponse) MarshalJSON

func (v *EncodeTransactionBodyResponse) MarshalJSON() ([]byte, error)

func (*EncodeTransactionBodyResponse) UnmarshalJSON

func (v *EncodeTransactionBodyResponse) UnmarshalJSON(data []byte) error

type EncodeTransactionHeaderResponse

type EncodeTransactionHeaderResponse struct {
	TransactionHeaderBinary []byte `json:"transactionHeaderBinary,omitempty" form:"transactionHeaderBinary" query:"transactionHeaderBinary" validate:"required"`
}

func (*EncodeTransactionHeaderResponse) Copy

func (*EncodeTransactionHeaderResponse) CopyAsInterface

func (v *EncodeTransactionHeaderResponse) CopyAsInterface() interface{}

func (*EncodeTransactionHeaderResponse) Equal

func (*EncodeTransactionHeaderResponse) MarshalJSON

func (v *EncodeTransactionHeaderResponse) MarshalJSON() ([]byte, error)

func (*EncodeTransactionHeaderResponse) UnmarshalJSON

func (v *EncodeTransactionHeaderResponse) UnmarshalJSON(data []byte) error

type EncodeTransactionResponse

type EncodeTransactionResponse struct {
	TransactionBinary []byte `json:"transactionBinary,omitempty" form:"transactionBinary" query:"transactionBinary" validate:"required"`
	TransactionHash   []byte `json:"transactionHash,omitempty" form:"transactionHash" query:"transactionHash" validate:"required"`
}

func (*EncodeTransactionResponse) Copy

func (*EncodeTransactionResponse) CopyAsInterface

func (v *EncodeTransactionResponse) CopyAsInterface() interface{}

func (*EncodeTransactionResponse) Equal

func (*EncodeTransactionResponse) MarshalJSON

func (v *EncodeTransactionResponse) MarshalJSON() ([]byte, error)

func (*EncodeTransactionResponse) UnmarshalJSON

func (v *EncodeTransactionResponse) UnmarshalJSON(data []byte) error

type ErrorCode

type ErrorCode jsonrpc2.ErrorCode
const ErrorCodeAlreadyExists ErrorCode = -33001

ErrorCodeAlreadyExists .

const ErrorCodeGeneralError ErrorCode = -33002

ErrorCodeGeneralError .

const ErrorCodeNotFound ErrorCode = -33000

ErrorCodeNotFound .

func ErrorCodeByName

func ErrorCodeByName(name string) (ErrorCode, bool)

ErrorCodeByName returns the named Error Code.

func (ErrorCode) Code

func (e ErrorCode) Code() jsonrpc2.ErrorCode

func (ErrorCode) GetEnumValue

func (v ErrorCode) GetEnumValue() uint64

GetEnumValue returns the value of the Error Code

func (ErrorCode) MarshalJSON

func (v ErrorCode) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Error Code to JSON as a string.

func (*ErrorCode) SetEnumValue

func (v *ErrorCode) SetEnumValue(id uint64) bool

SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.

func (ErrorCode) String

func (v ErrorCode) String() string

String returns the name of the Error Code.

func (*ErrorCode) UnmarshalJSON

func (v *ErrorCode) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals the Error Code from JSON as a string.

type FinalizeEnvelopeRequest

type FinalizeEnvelopeRequest struct {
	Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
}

func (*FinalizeEnvelopeRequest) Copy

func (*FinalizeEnvelopeRequest) CopyAsInterface

func (v *FinalizeEnvelopeRequest) CopyAsInterface() interface{}

func (*FinalizeEnvelopeRequest) Equal

type GenerateAddressRequest added in v0.3.3

type GenerateAddressRequest struct {
	Type  protocol.SignatureType `json:"type,omitempty" form:"type" query:"type" validate:"required"`
	Label string                 `json:"label,omitempty" form:"label" query:"label" validate:"required"`
}

func (*GenerateAddressRequest) Copy added in v0.3.3

func (*GenerateAddressRequest) CopyAsInterface added in v0.3.3

func (v *GenerateAddressRequest) CopyAsInterface() interface{}

func (*GenerateAddressRequest) Equal added in v0.3.3

type GenerateAddressResponse added in v0.3.3

type GenerateAddressResponse struct {
	Key Key `json:"key,omitempty" form:"key" query:"key" validate:"required"`
}

func (*GenerateAddressResponse) Copy added in v0.3.3

func (*GenerateAddressResponse) CopyAsInterface added in v0.3.3

func (v *GenerateAddressResponse) CopyAsInterface() interface{}

func (*GenerateAddressResponse) Equal added in v0.3.3

type GenerateKeyRequest added in v0.4.0

type GenerateKeyRequest struct {
	Type  protocol.SignatureType `json:"type,omitempty" form:"type" query:"type"`
	Label string                 `json:"label,omitempty" form:"label" query:"label" validate:"required"`
	Force bool                   `json:"force,omitempty" form:"force" query:"force"`
}

func (*GenerateKeyRequest) Copy added in v0.4.0

func (*GenerateKeyRequest) CopyAsInterface added in v0.4.0

func (v *GenerateKeyRequest) CopyAsInterface() interface{}

func (*GenerateKeyRequest) Equal added in v0.4.0

type GenerateKeyResponse added in v0.4.0

type GenerateKeyResponse struct {
	KeyData KeyData `json:"keyData,omitempty" form:"keyData" query:"keyData" validate:"required"`
}

func (*GenerateKeyResponse) Copy added in v0.4.0

func (*GenerateKeyResponse) CopyAsInterface added in v0.4.0

func (v *GenerateKeyResponse) CopyAsInterface() interface{}

func (*GenerateKeyResponse) Equal added in v0.4.0

type GenerateLedgerKeyRequest added in v0.3.1

type GenerateLedgerKeyRequest struct {
	KeyLabel string `json:"keyLabel,omitempty" form:"keyLabel" query:"keyLabel" validate:"required"`
	WalletID string `json:"walletID,omitempty" form:"walletID" query:"walletID"`
	SigType  string `json:"sigType,omitempty" form:"sigType" query:"sigType" validate:"required"`
}

func (*GenerateLedgerKeyRequest) Copy added in v0.3.1

func (*GenerateLedgerKeyRequest) CopyAsInterface added in v0.3.1

func (v *GenerateLedgerKeyRequest) CopyAsInterface() interface{}

func (*GenerateLedgerKeyRequest) Equal added in v0.3.1

type ImportMnemonicRequest added in v0.4.0

type ImportMnemonicRequest struct {
	Mnemonic []string `json:"mnemonic,omitempty" form:"mnemonic" query:"mnemonic" validate:"required"`
}

func (*ImportMnemonicRequest) Copy added in v0.4.0

func (*ImportMnemonicRequest) CopyAsInterface added in v0.4.0

func (v *ImportMnemonicRequest) CopyAsInterface() interface{}

func (*ImportMnemonicRequest) Equal added in v0.4.0

func (*ImportMnemonicRequest) MarshalJSON added in v0.4.0

func (v *ImportMnemonicRequest) MarshalJSON() ([]byte, error)

func (*ImportMnemonicRequest) UnmarshalJSON added in v0.4.0

func (v *ImportMnemonicRequest) UnmarshalJSON(data []byte) error

type ImportMnemonicResponse added in v0.4.0

type ImportMnemonicResponse struct {
}

func (*ImportMnemonicResponse) Copy added in v0.4.0

func (*ImportMnemonicResponse) CopyAsInterface added in v0.4.0

func (v *ImportMnemonicResponse) CopyAsInterface() interface{}

func (*ImportMnemonicResponse) Equal added in v0.4.0

type Key

type Key struct {
	PrivateKey []byte     `json:"privateKey,omitempty" form:"privateKey" query:"privateKey"`
	PublicKey  []byte     `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"`
	KeyInfo    KeyInfo    `json:"keyInfo,omitempty" form:"keyInfo" query:"keyInfo" validate:"required"`
	Labels     *KeyLabels `json:"labels,omitempty" form:"labels" query:"labels"`
	// contains filtered or unexported fields
}

func (*Key) Copy

func (v *Key) Copy() *Key

func (*Key) CopyAsInterface

func (v *Key) CopyAsInterface() interface{}

func (*Key) Equal

func (v *Key) Equal(u *Key) bool

func (*Key) IsValid

func (v *Key) IsValid() error

func (*Key) MarshalBinary

func (v *Key) MarshalBinary() ([]byte, error)

func (*Key) MarshalJSON

func (v *Key) MarshalJSON() ([]byte, error)

func (*Key) UnmarshalBinary

func (v *Key) UnmarshalBinary(data []byte) error

func (*Key) UnmarshalBinaryFrom

func (v *Key) UnmarshalBinaryFrom(rd io.Reader) error

func (*Key) UnmarshalJSON

func (v *Key) UnmarshalJSON(data []byte) error

type KeyData

type KeyData struct {
	Name      string  `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	PublicKey []byte  `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"`
	KeyInfo   KeyInfo `json:"keyInfo,omitempty" form:"keyInfo" query:"keyInfo" validate:"required"`
}

func (*KeyData) Copy

func (v *KeyData) Copy() *KeyData

func (*KeyData) CopyAsInterface

func (v *KeyData) CopyAsInterface() interface{}

func (*KeyData) Equal

func (v *KeyData) Equal(u *KeyData) bool

func (*KeyData) MarshalJSON

func (v *KeyData) MarshalJSON() ([]byte, error)

func (*KeyData) UnmarshalJSON

func (v *KeyData) UnmarshalJSON(data []byte) error

type KeyInfo

type KeyInfo struct {
	Type       protocol.SignatureType `json:"type,omitempty" form:"type" query:"type" validate:"required"`
	Derivation string                 `json:"derivation,omitempty" form:"derivation" query:"derivation"`
	WalletId   *url.URL               `json:"walletId,omitempty" form:"walletId" query:"walletId"`
	// contains filtered or unexported fields
}

func (*KeyInfo) Copy

func (v *KeyInfo) Copy() *KeyInfo

func (*KeyInfo) CopyAsInterface

func (v *KeyInfo) CopyAsInterface() interface{}

func (*KeyInfo) Equal

func (v *KeyInfo) Equal(u *KeyInfo) bool

func (*KeyInfo) IsValid

func (v *KeyInfo) IsValid() error

func (*KeyInfo) MarshalBinary

func (v *KeyInfo) MarshalBinary() ([]byte, error)

func (*KeyInfo) UnmarshalBinary

func (v *KeyInfo) UnmarshalBinary(data []byte) error

func (*KeyInfo) UnmarshalBinaryFrom

func (v *KeyInfo) UnmarshalBinaryFrom(rd io.Reader) error

type KeyLabels added in v0.3.3

type KeyLabels struct {
	Lite  string   `json:"lite,omitempty" form:"lite" query:"lite" validate:"required"`
	Hash  []byte   `json:"hash,omitempty" form:"hash" query:"hash" validate:"required"`
	Names []string `json:"names,omitempty" form:"names" query:"names" validate:"required"`
	// contains filtered or unexported fields
}

func (*KeyLabels) Copy added in v0.3.3

func (v *KeyLabels) Copy() *KeyLabels

func (*KeyLabels) CopyAsInterface added in v0.3.3

func (v *KeyLabels) CopyAsInterface() interface{}

func (*KeyLabels) Equal added in v0.3.3

func (v *KeyLabels) Equal(u *KeyLabels) bool

func (*KeyLabels) IsValid added in v0.3.3

func (v *KeyLabels) IsValid() error

func (*KeyLabels) MarshalBinary added in v0.3.3

func (v *KeyLabels) MarshalBinary() ([]byte, error)

func (*KeyLabels) MarshalJSON added in v0.3.3

func (v *KeyLabels) MarshalJSON() ([]byte, error)

func (*KeyLabels) UnmarshalBinary added in v0.3.3

func (v *KeyLabels) UnmarshalBinary(data []byte) error

func (*KeyLabels) UnmarshalBinaryFrom added in v0.3.3

func (v *KeyLabels) UnmarshalBinaryFrom(rd io.Reader) error

func (*KeyLabels) UnmarshalJSON added in v0.3.3

func (v *KeyLabels) UnmarshalJSON(data []byte) error

type KeyListResponse

type KeyListResponse struct {
	KeyList []Key `json:"keyList,omitempty" form:"keyList" query:"keyList" validate:"required"`
}

func (*KeyListResponse) Copy

func (v *KeyListResponse) Copy() *KeyListResponse

func (*KeyListResponse) CopyAsInterface

func (v *KeyListResponse) CopyAsInterface() interface{}

func (*KeyListResponse) Equal

func (v *KeyListResponse) Equal(u *KeyListResponse) bool

func (*KeyListResponse) MarshalJSON

func (v *KeyListResponse) MarshalJSON() ([]byte, error)

func (*KeyListResponse) UnmarshalJSON

func (v *KeyListResponse) UnmarshalJSON(data []byte) error

type KeyName

type KeyName struct {
	Name      string `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"`
	// contains filtered or unexported fields
}

func (*KeyName) Copy

func (v *KeyName) Copy() *KeyName

func (*KeyName) CopyAsInterface

func (v *KeyName) CopyAsInterface() interface{}

func (*KeyName) Equal

func (v *KeyName) Equal(u *KeyName) bool

func (*KeyName) IsValid

func (v *KeyName) IsValid() error

func (*KeyName) MarshalBinary

func (v *KeyName) MarshalBinary() ([]byte, error)

func (*KeyName) MarshalJSON

func (v *KeyName) MarshalJSON() ([]byte, error)

func (*KeyName) UnmarshalBinary

func (v *KeyName) UnmarshalBinary(data []byte) error

func (*KeyName) UnmarshalBinaryFrom

func (v *KeyName) UnmarshalBinaryFrom(rd io.Reader) error

func (*KeyName) UnmarshalJSON

func (v *KeyName) UnmarshalJSON(data []byte) error

type KeyRotateRequest added in v0.4.0

type KeyRotateRequest struct {
	OldKeyLabel string `json:"oldKeyLabel,omitempty" form:"oldKeyLabel" query:"oldKeyLabel" validate:"required"`
	NewKeyLabel string `json:"newKeyLabel,omitempty" form:"newKeyLabel" query:"newKeyLabel" validate:"required"`
	Force       bool   `json:"force,omitempty" form:"force" query:"force" validate:"required"`
}

func (*KeyRotateRequest) Copy added in v0.4.0

func (*KeyRotateRequest) CopyAsInterface added in v0.4.0

func (v *KeyRotateRequest) CopyAsInterface() interface{}

func (*KeyRotateRequest) Equal added in v0.4.0

func (v *KeyRotateRequest) Equal(u *KeyRotateRequest) bool

type KeyRotateResponse added in v0.4.0

type KeyRotateResponse struct {
	OldKey Key `json:"oldKey,omitempty" form:"oldKey" query:"oldKey" validate:"required"`
	NewKey Key `json:"newKey,omitempty" form:"newKey" query:"newKey" validate:"required"`
}

func (*KeyRotateResponse) Copy added in v0.4.0

func (*KeyRotateResponse) CopyAsInterface added in v0.4.0

func (v *KeyRotateResponse) CopyAsInterface() interface{}

func (*KeyRotateResponse) Equal added in v0.4.0

type LedgerVersion added in v0.3.1

type LedgerVersion struct {
	Label string `json:"label,omitempty" form:"label" query:"label" validate:"required"`
	Major uint64 `json:"major,omitempty" form:"major" query:"major" validate:"required"`
	Minor uint64 `json:"minor,omitempty" form:"minor" query:"minor" validate:"required"`
	Patch uint64 `json:"patch,omitempty" form:"patch" query:"patch" validate:"required"`
}

func (*LedgerVersion) Copy added in v0.3.1

func (v *LedgerVersion) Copy() *LedgerVersion

func (*LedgerVersion) CopyAsInterface added in v0.3.1

func (v *LedgerVersion) CopyAsInterface() interface{}

func (*LedgerVersion) Equal added in v0.3.1

func (v *LedgerVersion) Equal(u *LedgerVersion) bool

type LedgerWalletInfo added in v0.3.1

type LedgerWalletInfo struct {
	Version      LedgerVersion `json:"version,omitempty" form:"version" query:"version" validate:"required"`
	VendorID     uint64        `json:"vendorID,omitempty" form:"vendorID" query:"vendorID" validate:"required"`
	Manufacturer string        `json:"manufacturer,omitempty" form:"manufacturer" query:"manufacturer" validate:"required"`
	ProductID    uint64        `json:"productID,omitempty" form:"productID" query:"productID" validate:"required"`
	Product      string        `json:"product,omitempty" form:"product" query:"product" validate:"required"`
	Status       string        `json:"status,omitempty" form:"status" query:"status" validate:"required"`
	WalletID     *url.URL      `json:"walletID,omitempty" form:"walletID" query:"walletID" validate:"required"`
}

func (*LedgerWalletInfo) Copy added in v0.3.1

func (*LedgerWalletInfo) CopyAsInterface added in v0.3.1

func (v *LedgerWalletInfo) CopyAsInterface() interface{}

func (*LedgerWalletInfo) Equal added in v0.3.1

func (v *LedgerWalletInfo) Equal(u *LedgerWalletInfo) bool

type LedgerWalletResponse added in v0.3.1

type LedgerWalletResponse struct {
	LedgerWalletsInfo []LedgerWalletInfo `json:"ledgerWalletsInfo,omitempty" form:"ledgerWalletsInfo" query:"ledgerWalletsInfo" validate:"required"`
}

func (*LedgerWalletResponse) Copy added in v0.3.1

func (*LedgerWalletResponse) CopyAsInterface added in v0.3.1

func (v *LedgerWalletResponse) CopyAsInterface() interface{}

func (*LedgerWalletResponse) Equal added in v0.3.1

func (*LedgerWalletResponse) MarshalJSON added in v0.3.1

func (v *LedgerWalletResponse) MarshalJSON() ([]byte, error)

func (*LedgerWalletResponse) UnmarshalJSON added in v0.3.1

func (v *LedgerWalletResponse) UnmarshalJSON(data []byte) error

type LiteLabel

type LiteLabel struct {
	LiteName string `json:"liteName,omitempty" form:"liteName" query:"liteName" validate:"required"`
	KeyName  string `json:"keyName,omitempty" form:"keyName" query:"keyName" validate:"required"`
}

func (*LiteLabel) Copy

func (v *LiteLabel) Copy() *LiteLabel

func (*LiteLabel) CopyAsInterface

func (v *LiteLabel) CopyAsInterface() interface{}

func (*LiteLabel) Equal

func (v *LiteLabel) Equal(u *LiteLabel) bool

type LockWalletRequest added in v0.4.1

type LockWalletRequest struct {

	// Close completely closes and unloads the wallet.
	Close bool `json:"close,omitempty" form:"close" query:"close" validate:"required"`
}

func (*LockWalletRequest) Copy added in v0.4.1

func (*LockWalletRequest) CopyAsInterface added in v0.4.1

func (v *LockWalletRequest) CopyAsInterface() interface{}

func (*LockWalletRequest) Equal added in v0.4.1

type LockWalletResponse added in v0.4.1

type LockWalletResponse struct {
}

func (*LockWalletResponse) Copy added in v0.4.1

func (*LockWalletResponse) CopyAsInterface added in v0.4.1

func (v *LockWalletResponse) CopyAsInterface() interface{}

func (*LockWalletResponse) Equal added in v0.4.1

type NewTransactionRequest

type NewTransactionRequest struct {
	TxName string `json:"txName,omitempty" form:"txName" query:"txName" validate:"required"`
	Origin string `json:"origin,omitempty" form:"origin" query:"origin" validate:"required"`
}

func (*NewTransactionRequest) Copy

func (*NewTransactionRequest) CopyAsInterface

func (v *NewTransactionRequest) CopyAsInterface() interface{}

func (*NewTransactionRequest) Equal

type Page

type Page struct {
	Url      url.URL  `json:"url,omitempty" form:"url" query:"url" validate:"required"`
	KeyNames []string `json:"keyNames,omitempty" form:"keyNames" query:"keyNames" validate:"required"`
	// contains filtered or unexported fields
}

func (*Page) Copy

func (v *Page) Copy() *Page

func (*Page) CopyAsInterface

func (v *Page) CopyAsInterface() interface{}

func (*Page) Equal

func (v *Page) Equal(u *Page) bool

func (*Page) IsValid

func (v *Page) IsValid() error

func (*Page) MarshalBinary

func (v *Page) MarshalBinary() ([]byte, error)

func (*Page) MarshalJSON

func (v *Page) MarshalJSON() ([]byte, error)

func (*Page) UnmarshalBinary

func (v *Page) UnmarshalBinary(data []byte) error

func (*Page) UnmarshalBinaryFrom

func (v *Page) UnmarshalBinaryFrom(rd io.Reader) error

func (*Page) UnmarshalJSON

func (v *Page) UnmarshalJSON(data []byte) error

type ProveReceiptRequest

type ProveReceiptRequest struct {
	DataJson    string `json:"dataJson,omitempty" form:"dataJson" query:"dataJson" validate:"required"`
	ReceiptJson string `json:"receiptJson,omitempty" form:"receiptJson" query:"receiptJson" validate:"required"`
}

func (*ProveReceiptRequest) Copy

func (*ProveReceiptRequest) CopyAsInterface

func (v *ProveReceiptRequest) CopyAsInterface() interface{}

func (*ProveReceiptRequest) Equal

type RegisterADIRequest added in v0.4.0

type RegisterADIRequest struct {
	ADI *url.URL `json:"adi,omitempty" form:"adi" query:"adi" validate:"required"`
}

func (*RegisterADIRequest) Copy added in v0.4.0

func (*RegisterADIRequest) CopyAsInterface added in v0.4.0

func (v *RegisterADIRequest) CopyAsInterface() interface{}

func (*RegisterADIRequest) Equal added in v0.4.0

type RegisterADIResponse added in v0.4.0

type RegisterADIResponse struct {
}

func (*RegisterADIResponse) Copy added in v0.4.0

func (*RegisterADIResponse) CopyAsInterface added in v0.4.0

func (v *RegisterADIResponse) CopyAsInterface() interface{}

func (*RegisterADIResponse) Equal added in v0.4.0

type ResolveKeyRequest

type ResolveKeyRequest struct {
	KeyNameOrLiteAddress string `json:"keyNameOrLiteAddress,omitempty" form:"keyNameOrLiteAddress" query:"keyNameOrLiteAddress" validate:"required"`
}

func (*ResolveKeyRequest) Copy

func (*ResolveKeyRequest) CopyAsInterface

func (v *ResolveKeyRequest) CopyAsInterface() interface{}

func (*ResolveKeyRequest) Equal

type ResolveKeyResponse

type ResolveKeyResponse struct {
	KeyData KeyData `json:"keyData,omitempty" form:"keyData" query:"keyData" validate:"required"`
}

func (*ResolveKeyResponse) Copy

func (*ResolveKeyResponse) CopyAsInterface

func (v *ResolveKeyResponse) CopyAsInterface() interface{}

func (*ResolveKeyResponse) Equal

type SeedInfo

type SeedInfo struct {
	Mnemonic string `json:"mnemonic,omitempty" form:"mnemonic" query:"mnemonic" validate:"required"`
	Seed     []byte `json:"seed,omitempty" form:"seed" query:"seed" validate:"required"`
}

func (*SeedInfo) Copy

func (v *SeedInfo) Copy() *SeedInfo

func (*SeedInfo) CopyAsInterface

func (v *SeedInfo) CopyAsInterface() interface{}

func (*SeedInfo) Equal

func (v *SeedInfo) Equal(u *SeedInfo) bool

func (*SeedInfo) MarshalJSON

func (v *SeedInfo) MarshalJSON() ([]byte, error)

func (*SeedInfo) UnmarshalJSON

func (v *SeedInfo) UnmarshalJSON(data []byte) error

type SignRequest

type SignRequest struct {
	Name    int64  `json:"name,omitempty" form:"name" query:"name" validate:"required"`
	KeyName string `json:"keyName,omitempty" form:"keyName" query:"keyName"`
}

func (*SignRequest) Copy

func (v *SignRequest) Copy() *SignRequest

func (*SignRequest) CopyAsInterface

func (v *SignRequest) CopyAsInterface() interface{}

func (*SignRequest) Equal

func (v *SignRequest) Equal(u *SignRequest) bool

type SignResponse

type SignResponse struct {
	Signature []byte `json:"signature,omitempty" form:"signature" query:"signature" validate:"required"`
	PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"`
}

func (*SignResponse) Copy

func (v *SignResponse) Copy() *SignResponse

func (*SignResponse) CopyAsInterface

func (v *SignResponse) CopyAsInterface() interface{}

func (*SignResponse) Equal

func (v *SignResponse) Equal(u *SignResponse) bool

func (*SignResponse) MarshalJSON

func (v *SignResponse) MarshalJSON() ([]byte, error)

func (*SignResponse) UnmarshalJSON

func (v *SignResponse) UnmarshalJSON(data []byte) error

type SignTransactionRequest

type SignTransactionRequest struct {
	TxName        string `json:"txName,omitempty" form:"txName" query:"txName" validate:"required"`
	KeyName       string `json:"keyName,omitempty" form:"keyName" query:"keyName" validate:"required"`
	SignerVersion int64  `json:"signerVersion,omitempty" form:"signerVersion" query:"signerVersion" validate:"required"`
	Timestamp     int64  `json:"timestamp,omitempty" form:"timestamp" query:"timestamp"`
}

func (*SignTransactionRequest) Copy

func (*SignTransactionRequest) CopyAsInterface

func (v *SignTransactionRequest) CopyAsInterface() interface{}

func (*SignTransactionRequest) Equal

type TmpTransactionRequest added in v0.4.0

type TmpTransactionRequest struct {
}

func (*TmpTransactionRequest) Copy added in v0.4.0

func (*TmpTransactionRequest) CopyAsInterface added in v0.4.0

func (v *TmpTransactionRequest) CopyAsInterface() interface{}

func (*TmpTransactionRequest) Equal added in v0.4.0

type TmpTransactionResponse added in v0.4.0

type TmpTransactionResponse struct {
	Transactions []string `json:"transactions,omitempty" form:"transactions" query:"transactions" validate:"required"`
}

func (*TmpTransactionResponse) Copy added in v0.4.0

func (*TmpTransactionResponse) CopyAsInterface added in v0.4.0

func (v *TmpTransactionResponse) CopyAsInterface() interface{}

func (*TmpTransactionResponse) Equal added in v0.4.0

func (*TmpTransactionResponse) MarshalJSON added in v0.4.0

func (v *TmpTransactionResponse) MarshalJSON() ([]byte, error)

func (*TmpTransactionResponse) UnmarshalJSON added in v0.4.0

func (v *TmpTransactionResponse) UnmarshalJSON(data []byte) error

type UnlockWalletRequest added in v0.4.0

type UnlockWalletRequest struct {
	Password string        `json:"password,omitempty" form:"password" query:"password" validate:"required"`
	Timeout  time.Duration `json:"timeout,omitempty" form:"timeout" query:"timeout" validate:"required"`
}

func (*UnlockWalletRequest) Copy added in v0.4.0

func (*UnlockWalletRequest) CopyAsInterface added in v0.4.0

func (v *UnlockWalletRequest) CopyAsInterface() interface{}

func (*UnlockWalletRequest) Equal added in v0.4.0

func (*UnlockWalletRequest) MarshalJSON added in v0.4.0

func (v *UnlockWalletRequest) MarshalJSON() ([]byte, error)

func (*UnlockWalletRequest) UnmarshalJSON added in v0.4.0

func (v *UnlockWalletRequest) UnmarshalJSON(data []byte) error

type UnlockWalletResponse added in v0.4.0

type UnlockWalletResponse struct {
	Success       bool      `json:"success,omitempty" form:"success" query:"success" validate:"required"`
	UnlockedUntil time.Time `json:"unlockedUntil,omitempty" form:"unlockedUntil" query:"unlockedUntil" validate:"required"`
}

func (*UnlockWalletResponse) Copy added in v0.4.0

func (*UnlockWalletResponse) CopyAsInterface added in v0.4.0

func (v *UnlockWalletResponse) CopyAsInterface() interface{}

func (*UnlockWalletResponse) Equal added in v0.4.0

type Version

type Version struct {
	Major    uint64 `json:"major,omitempty" form:"major" query:"major" validate:"required"`
	Minor    uint64 `json:"minor,omitempty" form:"minor" query:"minor" validate:"required"`
	Revision uint64 `json:"revision,omitempty" form:"revision" query:"revision" validate:"required"`
	Commit   uint64 `json:"commit,omitempty" form:"commit" query:"commit" validate:"required"`
}

func (*Version) Copy

func (v *Version) Copy() *Version

func (*Version) CopyAsInterface

func (v *Version) CopyAsInterface() interface{}

func (*Version) Equal

func (v *Version) Equal(u *Version) bool

type VersionResponse

type VersionResponse struct {
	WalletVersion   string `json:"walletVersion,omitempty" form:"walletVersion" query:"walletVersion" validate:"required"`
	WalletCommit    string `json:"walletCommit,omitempty" form:"walletCommit" query:"walletCommit" validate:"required"`
	DatabaseVersion string `json:"databaseVersion,omitempty" form:"databaseVersion" query:"databaseVersion" validate:"required"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Copy

func (v *VersionResponse) Copy() *VersionResponse

func (*VersionResponse) CopyAsInterface

func (v *VersionResponse) CopyAsInterface() interface{}

func (*VersionResponse) Equal

func (v *VersionResponse) Equal(u *VersionResponse) bool

func (*VersionResponse) IsValid

func (v *VersionResponse) IsValid() error

func (*VersionResponse) MarshalBinary

func (v *VersionResponse) MarshalBinary() ([]byte, error)

func (*VersionResponse) UnmarshalBinary

func (v *VersionResponse) UnmarshalBinary(data []byte) error

func (*VersionResponse) UnmarshalBinaryFrom

func (v *VersionResponse) UnmarshalBinaryFrom(rd io.Reader) error

type Wallet

type Wallet struct {
	BackupDate         time.Time         `json:"backupDate,omitempty" form:"backupDate" query:"backupDate" validate:"required"`
	Version            Version           `json:"version,omitempty" form:"version" query:"version" validate:"required"`
	SeedInfo           SeedInfo          `json:"seedInfo,omitempty" form:"seedInfo" query:"seedInfo" validate:"required"`
	DerivationCounters []DerivationCount `json:"derivationCounters,omitempty" form:"derivationCounters" query:"derivationCounters" validate:"required"`
	Keys               []Key             `json:"keys,omitempty" form:"keys" query:"keys" validate:"required"`
	KeyNames           []KeyName         `json:"keyNames,omitempty" form:"keyNames" query:"keyNames" validate:"required"`
	LiteLabels         []LiteLabel       `json:"liteLabels,omitempty" form:"liteLabels" query:"liteLabels" validate:"required"`
	Adis               []Adi             `json:"adis,omitempty" form:"adis" query:"adis"`
}

func (*Wallet) Copy

func (v *Wallet) Copy() *Wallet

func (*Wallet) CopyAsInterface

func (v *Wallet) CopyAsInterface() interface{}

func (*Wallet) Equal

func (v *Wallet) Equal(u *Wallet) bool

func (*Wallet) MarshalJSON

func (v *Wallet) MarshalJSON() ([]byte, error)

func (*Wallet) UnmarshalJSON

func (v *Wallet) UnmarshalJSON(data []byte) error

type WalletBackupRequest added in v0.4.0

type WalletBackupRequest struct {
}

func (*WalletBackupRequest) Copy added in v0.4.0

func (*WalletBackupRequest) CopyAsInterface added in v0.4.0

func (v *WalletBackupRequest) CopyAsInterface() interface{}

func (*WalletBackupRequest) Equal added in v0.4.0

type WalletBackupResponse added in v0.4.0

type WalletBackupResponse struct {
	DataJson string `json:"dataJson,omitempty" form:"dataJson" query:"dataJson" validate:"required"`
}

func (*WalletBackupResponse) Copy added in v0.4.0

func (*WalletBackupResponse) CopyAsInterface added in v0.4.0

func (v *WalletBackupResponse) CopyAsInterface() interface{}

func (*WalletBackupResponse) Equal added in v0.4.0

Jump to

Keyboard shortcuts

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