vault

package
v0.0.0-...-2b2340b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultClient

type VaultClient struct {
	// contains filtered or unexported fields
}

func New

func New(scalarPostgresClient *postgres.PostgresClient) *VaultClient

func (*VaultClient) Search

func (c *VaultClient) Search(ctx context.Context, payload *types.VaultPayload) ([]*VaultDocument, error)

type VaultDocument

type VaultDocument struct {
	ID                              string `json:"id,omitempty"`
	Status                          string `json:"status,omitempty"`
	SimplifiedStatus                string `json:"simplified_status,omitempty"`
	SourceChain                     string `json:"source_chain,omitempty"`
	DestinationChain                string `json:"destination_chain,omitempty"`
	DestinationSmartContractAddress string `json:"destination_smart_contract_address,omitempty"`
	CreatedAt                       uint64 `json:"created_at,omitempty"`
	UpdatedAt                       uint64 `json:"updated_at,omitempty"`
	SourceTxHash                    string `json:"source_tx_hash,omitempty"`
	SourceTxHex                     string `json:"source_tx_hex,omitempty"`
	StakerPubkey                    string `json:"staker_pubkey,omitempty"`
	Amount                          string `json:"amount,omitempty"`
	ExecutedAmount                  string `json:"executed_amount,omitempty"`
	ExecutedRefTxHash               string `json:"executed_ref_tx_hash,omitempty"`
}

Jump to

Keyboard shortcuts

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