structures

package
v0.0.0-...-ce6788a Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 6 Imported by: 26

Documentation

Index

Constants

View Source
const MAINNET_GNOMON_SCID = "a05395bb0cf77adc850928b0db00eb5ca7a9ccbafd9a38d021c8d299ad5ce1a4"

Gnomon Index SCID

View Source
const MAX_API_VAR_RETURN = 1024

Max API data return for limiting data / load. This is unused if --remove-api-throttle is defined or ApiThrottle is false for structures.ApiConfig

View Source
const TESTNET_GNOMON_SCID = "c9d23d2fc3aaa8e54e238a2218c0e5176a6e48780920fd8474fac5b0576110a2"

Variables

View Source
var Hardcoded_SCIDS = []string{"0000000000000000000000000000000000000000000000000000000000000001"}

Hardcoded Smart Contracts of DERO Network TODO: Possibly in future we can pull this from derohe codebase

Global logger

View Source
var Version = semver.MustParse("2.0.0-alpha.1")

Major.Minor.Patch-Iteration

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Enabled              bool   `json:"enabled"`
	Listen               string `json:"listen"`
	StatsCollectInterval string `json:"statsCollectInterval"`
	HashrateWindow       string `json:"hashrateWindow"`
	Payments             int64  `json:"payments"`
	Blocks               int64  `json:"blocks"`
	SSL                  bool   `json:"ssl"`
	SSLListen            string `json:"sslListen"`
	GetInfoSSLListen     string `json:"getInfoSSLListen"`
	CertFile             string `json:"certFile"`
	GetInfoCertFile      string `json:"getInfoCertFile"`
	KeyFile              string `json:"keyFile"`
	GetInfoKeyFile       string `json:"getInfoKeyFile"`
	MBLLookup            bool   `json:"mbblookup"`
	ApiThrottle          bool   `json:"apithrottle"`
}

type BlockTxns

type BlockTxns struct {
	Topoheight int64
	Tx_hashes  []crypto.Hash
}

type BurnTXParse

type BurnTXParse struct {
	Txid string
	Scid string
	Fees string
}

type FastSyncImport

type FastSyncImport struct {
	Owner   string
	Height  uint64
	Headers string
}

type GetInfo

type GetInfo rpc.GetInfo_Result

type GnomonSCIDQuery

type GnomonSCIDQuery struct {
	Owner  string
	Height uint64
	SCID   string
}

type JSONRpcReq

type JSONRpcReq struct {
	Id     *json.RawMessage `json:"id"`
	Method string           `json:"method"`
	Params *json.RawMessage `json:"params"`
}

type JSONRpcResp

type JSONRpcResp struct {
	Id      *json.RawMessage `json:"id"`
	Version string           `json:"jsonrpc"`
	Result  interface{}      `json:"result"`
	Error   interface{}      `json:"error"`
}

type MBLInfo

type MBLInfo struct {
	Hash  string
	Miner string
}

type NormalTXWithSCIDParse

type NormalTXWithSCIDParse struct {
	Txid   string
	Scid   string
	Fees   uint64
	Height int64
}

type SCIDInteractionHeight

type SCIDInteractionHeight struct {
	Heights map[int64]string
}

type SCIDVariable

type SCIDVariable struct {
	Key   interface{}
	Value interface{}
}

type SCTXParse

type SCTXParse struct {
	Txid       string
	Scid       string
	Scid_hex   []byte
	Entrypoint string
	Method     string
	Sc_args    rpc.Arguments
	Sender     string
	Payloads   []transaction.AssetPayload
	Fees       uint64
	Height     int64
}

Jump to

Keyboard shortcuts

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