Documentation ¶
Index ¶
- func GetDisprovePaymentFinalitySelector(blockTime *big.Int) []byte
- func GetMaxAllowedChains(blockTime *big.Int) uint32
- func GetPoWBlockCount(chainURL string, username string, password string) (uint64, bool)
- func GetPoWBlockHeader(ledgerHash string, requiredConfirmations uint64, chainURL string, ...) (uint64, bool)
- func GetPoWTx(txHash string, voutN uint64, latestAvailableBlock uint64, currencyCode string, ...) ([]byte, uint64, bool)
- func GetProveDataAvailabilityPeriodFinalitySelector(blockTime *big.Int) []byte
- func GetProvePaymentFinalitySelector(blockTime *big.Int) []byte
- func GetStateConnectorActivated(chainID *big.Int, blockTime *big.Int) bool
- func GetStateConnectorContractAddr(blockTime *big.Int) string
- func GetStateConnectorGasDivisor(blockTime *big.Int) uint64
- func GetVerificationPaths(functionSelector []byte, checkRet []byte) (string, string)
- func GetXRPBlock(ledger uint64, chainURL string) (string, bool)
- func GetXRPTx(txHash string, latestAvailableLedger uint64, chainURL string) ([]byte, uint64, bool)
- func ProveALGO(sender common.Address, blockTime *big.Int, functionSelector []byte, ...) (bool, bool)
- func ProveChain(sender common.Address, blockTime *big.Int, functionSelector []byte, ...) (bool, bool)
- func ProveDataAvailabilityPeriodFinalityPoW(checkRet []byte, chainURL string, username string, password string) (bool, bool)
- func ProveDataAvailabilityPeriodFinalityXRP(checkRet []byte, chainURL string) (bool, bool)
- func ProvePaymentFinalityPoW(checkRet []byte, isDisprove bool, currencyCode string, chainURL string, ...) (bool, bool)
- func ProvePaymentFinalityXRP(checkRet []byte, isDisprove bool, chainURL string) (bool, bool)
- func ProvePoW(sender common.Address, blockTime *big.Int, functionSelector []byte, ...) (bool, bool)
- func ProveXRP(sender common.Address, blockTime *big.Int, functionSelector []byte, ...) (bool, bool)
- func ReadChain(sender common.Address, blockTime *big.Int, functionSelector []byte, ...) bool
- func StateConnectorCall(sender common.Address, blockTime *big.Int, functionSelector []byte, ...) bool
- type CheckXRPErrorResponse
- type GetPoWBlockCountResp
- type GetPoWBlockHeaderResp
- type GetPoWBlockHeaderResult
- type GetPoWRequestPayload
- type GetPoWTxRequestParams
- type GetPoWTxRequestPayload
- type GetPoWTxResp
- type GetPoWTxResult
- type GetXRPBlockRequestParams
- type GetXRPBlockRequestPayload
- type GetXRPBlockResponse
- type GetXRPTxIssuedCurrency
- type GetXRPTxRequestParams
- type GetXRPTxRequestPayload
- type GetXRPTxResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMaxAllowedChains ¶
func GetPoWBlockCount ¶
func GetPoWBlockHeader ¶
func GetVerificationPaths ¶
func ProveChain ¶
func ProvePaymentFinalityPoW ¶
func ProvePaymentFinalityXRP ¶
Types ¶
type CheckXRPErrorResponse ¶
type CheckXRPErrorResponse struct {
Error string `json:"error"`
}
type GetPoWBlockCountResp ¶
type GetPoWBlockCountResp struct { Result uint64 `json:"result"` Error interface{} `json:"error"` }
type GetPoWBlockHeaderResp ¶
type GetPoWBlockHeaderResp struct { Result GetPoWBlockHeaderResult `json:"result"` Error interface{} `json:"error"` }
type GetPoWBlockHeaderResult ¶
type GetPoWRequestPayload ¶
type GetPoWTxRequestParams ¶
type GetPoWTxRequestPayload ¶
type GetPoWTxRequestPayload struct { Method string `json:"method"` Params GetPoWTxRequestParams `json:"params"` }
type GetPoWTxResp ¶
type GetPoWTxResp struct { Result GetPoWTxResult `json:"result"` Error interface{} `json:"error"` }
type GetPoWTxResult ¶
type GetPoWTxResult struct { TxID string `json:"txid"` BlockHash string `json:"blockhash"` Confirmations uint64 `json:"confirmations"` Vout []struct { Value float64 `json:"value"` N uint64 `json:"n"` ScriptPubKey struct { Type string `json:"type"` Addresses []string `json:"addresses"` } `json:"scriptPubKey"` } `json:"vout"` }
type GetXRPBlockRequestPayload ¶
type GetXRPBlockRequestPayload struct { Method string `json:"method"` Params []GetXRPBlockRequestParams `json:"params"` }
type GetXRPBlockResponse ¶
type GetXRPTxIssuedCurrency ¶
type GetXRPTxRequestParams ¶
type GetXRPTxRequestPayload ¶
type GetXRPTxRequestPayload struct { Method string `json:"method"` Params []GetXRPTxRequestParams `json:"params"` }
type GetXRPTxResponse ¶
type GetXRPTxResponse struct { Destination string `json:"Destination"` DestinationTag int `json:"DestinationTag"` TransactionType string `json:"TransactionType"` Hash string `json:"hash"` InLedger int `json:"inLedger"` Validated bool `json:"validated"` Meta struct { TransactionResult string `json:"TransactionResult"` Amount interface{} `json:"delivered_amount"` } `json:"meta"` }
Click to show internal directories.
Click to hide internal directories.