Documentation
¶
Index ¶
- func GetAPIs(chainId uint64) string
- func GetMaxAllowedChains(chainID *big.Int, blockTime *big.Int) uint64
- func GetPoWBlockHeader(ledgerHash string, requiredConfirmations uint64, chainURL string, ...) (uint64, bool)
- func GetPoWTx(instructions Instructions, basicAuth BasicAuth) ([]byte, uint64, bool)
- func GetStateConnectorActivated(chainID *big.Int, blockTime *big.Int) bool
- func GetStateConnectorContractAddr(chainID *big.Int, blockTime *big.Int) string
- func GetStateConnectorGasDivisor(chainID *big.Int, blockTime *big.Int) uint64
- func GetVerificationPaths(checkRet []byte) (string, string)
- func GetXRPTx(instructions Instructions, basicAuth BasicAuth) ([]byte, uint64, bool)
- func ProvePaymentALGO(instructions Instructions, basicAuth BasicAuth) (bool, bool)
- func ProvePaymentPOW(instructions Instructions, basicAuth BasicAuth) (bool, bool)
- func ProvePaymentXRP(instructions Instructions, basicAuth BasicAuth) (bool, bool)
- func ReadChain(instructions Instructions, basicAuth BasicAuth) (bool, bool)
- func ReadChainWithRetries(blockTime *big.Int, instructions Instructions) bool
- func SetPaymentFinalitySelector(chainID *big.Int, blockTime *big.Int) []byte
- func StateConnectorCall(blockTime *big.Int, checkRet []byte, availableLedger uint64) bool
- type BasicAuth
- type CheckXRPErrorResponse
- type GetPoWBlockHeaderResp
- type GetPoWBlockHeaderResult
- type GetPoWRequestPayload
- type GetPoWTxRequestParams
- type GetPoWTxRequestPayload
- type GetPoWTxResp
- type GetPoWTxResult
- type GetXRPTxIssuedCurrency
- type GetXRPTxRequestParams
- type GetXRPTxRequestPayload
- type GetXRPTxResponse
- type Instructions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPoWBlockHeader ¶
func GetPoWTx ¶
func GetPoWTx(instructions Instructions, basicAuth BasicAuth) ([]byte, uint64, bool)
func GetVerificationPaths ¶
func GetXRPTx ¶
func GetXRPTx(instructions Instructions, basicAuth BasicAuth) ([]byte, uint64, bool)
func ProvePaymentALGO ¶
func ProvePaymentALGO(instructions Instructions, basicAuth BasicAuth) (bool, bool)
func ProvePaymentPOW ¶
func ProvePaymentPOW(instructions Instructions, basicAuth BasicAuth) (bool, bool)
func ProvePaymentXRP ¶
func ProvePaymentXRP(instructions Instructions, basicAuth BasicAuth) (bool, bool)
func ReadChainWithRetries ¶
func ReadChainWithRetries(blockTime *big.Int, instructions Instructions) bool
Types ¶
type BasicAuth ¶
func GetBasicAuth ¶
type CheckXRPErrorResponse ¶
type CheckXRPErrorResponse struct {
Error string `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 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"`
}
type Instructions ¶
type Instructions struct {
InitialCommit bool
ChainId uint64
Ledger uint64
Utxo uint16
AvailableLedger uint64
TxId []byte
PaymentHash []byte
}
func ParseInstructions ¶
func ParseInstructions(checkRet []byte, availableLedger uint64) Instructions
Click to show internal directories.
Click to hide internal directories.