Documentation ¶
Index ¶
- Variables
- func AppendSignature(transactionSigned xdr.TransactionEnvelope, txeB *b.TransactionEnvelopeBuilder) error
- type Account
- type Balance
- type CheckResult
- type CryptoClientGlobal
- type Error
- type OutstandingBalance
- type PRClient
- type Payment
- type StellarTransactionConstructor
- func (self *StellarTransactionConstructor) AddOperation(operation b.TransactionMutator) error
- func (self *StellarTransactionConstructor) AddPayment(payment Payment, prc PRClient) error
- func (self *StellarTransactionConstructor) AddPaymentWithSanityCheck(payment Payment, prc PRClient, hc *horizon.Client) error
- func (self *StellarTransactionConstructor) Base64() string
- func (self *StellarTransactionConstructor) Bytes() []byte
- func (self *StellarTransactionConstructor) GetTxeB() b.TransactionEnvelopeBuilder
- func (self *StellarTransactionConstructor) ImportTransaction(txe xdr.TransactionEnvelope)
- func (self *StellarTransactionConstructor) InitTransaction(gsc gasserviceclient.GasServiceClient) error
- func (self *StellarTransactionConstructor) SendTransaction(gsc gasserviceclient.GasServiceClient) (string, uint64, error)
- func (self *StellarTransactionConstructor) SetFee() error
- func (self *StellarTransactionConstructor) SetTimeBound(lowerbound, upperbound int64) error
- func (self *StellarTransactionConstructor) SetTxeB(txeB b.TransactionEnvelopeBuilder)
- func (self *StellarTransactionConstructor) SignTransactionAndAppend(account string, cc crypto_client.CryptoServiceClient) error
- func (self *StellarTransactionConstructor) SignTransactionGlobalAndAppend(account string, cc CryptoClientGlobal, participant model.Participant, ...) error
Constants ¶
This section is empty.
Variables ¶
var ( ERROR_GET_STELLAR_ASSET = 1 ERROR_INSUFFICIENT_BALANCE = 2 ERROR_MAP_STELLAR_ADDRESS = 3 ERROR_ACCOUNT_DOES_NOT_TRUST_ASSET = 4 ERROR_ACCOUNT_TRUST_LIMIT_EXCEEDED = 5 ERROR_TIMEOUT = 6 ERROR_SIGNING_TRANSACTION = 7 ERROR_MAP_STELLAR_ASSET = 8 ERROR_SUBMIT_TRANSACTION = 9 ERROR_AMOUNT_LESSTHEN_EQUAL_ZERO = 10 ERROR_NO_ISSUER_INVOLVED = 11 ERROR_ASSET_DOES_NOT_EXIST = 12 )
var LOGGER = logging.MustGetLogger("onboarding")
Functions ¶
func AppendSignature ¶
func AppendSignature(transactionSigned xdr.TransactionEnvelope, txeB *b.TransactionEnvelopeBuilder) error
AppendSignature : Append signature from signed xdr to another transactionEnvelopBuilder
Types ¶
type CryptoClientGlobal ¶
type OutstandingBalance ¶
outstanding balance of an asset, ie the the account which holds the asset and its respective account
func GetOutstandingBalances ¶
func GetOutstandingBalances(asset model.Asset, prc PRClient, nhc hClient.ClientInterface) ([]OutstandingBalance, error)
GetOutstandingBalances : GetsOutstanding Balances for specific asset
type StellarTransactionConstructor ¶
type StellarTransactionConstructor struct {
// contains filtered or unexported fields
}
func (*StellarTransactionConstructor) AddOperation ¶
func (self *StellarTransactionConstructor) AddOperation(operation b.TransactionMutator) error
AddOperation : add operation to transaction
func (*StellarTransactionConstructor) AddPayment ¶
func (self *StellarTransactionConstructor) AddPayment(payment Payment, prc PRClient) error
AddPayment : Add Payment operation to transaction envelop
func (*StellarTransactionConstructor) AddPaymentWithSanityCheck ¶
func (self *StellarTransactionConstructor) AddPaymentWithSanityCheck(payment Payment, prc PRClient, hc *horizon.Client) error
AddPaymentWithSanityCheck : AddPaymentWithSanityCheck
func (*StellarTransactionConstructor) Base64 ¶
func (self *StellarTransactionConstructor) Base64() string
func (*StellarTransactionConstructor) Bytes ¶
func (self *StellarTransactionConstructor) Bytes() []byte
func (*StellarTransactionConstructor) GetTxeB ¶
func (self *StellarTransactionConstructor) GetTxeB() b.TransactionEnvelopeBuilder
func (*StellarTransactionConstructor) ImportTransaction ¶
func (self *StellarTransactionConstructor) ImportTransaction(txe xdr.TransactionEnvelope)
stellar specific
func (*StellarTransactionConstructor) InitTransaction ¶
func (self *StellarTransactionConstructor) InitTransaction(gsc gasserviceclient.GasServiceClient) error
InitTransaction : Init Transaction
func (*StellarTransactionConstructor) SendTransaction ¶
func (self *StellarTransactionConstructor) SendTransaction(gsc gasserviceclient.GasServiceClient) (string, uint64, error)
SendTransaction : send transaction to Gas service
func (*StellarTransactionConstructor) SetFee ¶
func (self *StellarTransactionConstructor) SetFee() error
func (*StellarTransactionConstructor) SetTimeBound ¶
func (self *StellarTransactionConstructor) SetTimeBound(lowerbound, upperbound int64) error
Set time-bounds using quote expiry date
func (*StellarTransactionConstructor) SetTxeB ¶
func (self *StellarTransactionConstructor) SetTxeB(txeB b.TransactionEnvelopeBuilder)
func (*StellarTransactionConstructor) SignTransactionAndAppend ¶
func (self *StellarTransactionConstructor) SignTransactionAndAppend(account string, cc crypto_client.CryptoServiceClient) error
SignTransactionAndAppend : sign the transaction, should be called after the transaction is finalized
func (*StellarTransactionConstructor) SignTransactionGlobalAndAppend ¶
func (self *StellarTransactionConstructor) SignTransactionGlobalAndAppend(account string, cc CryptoClientGlobal, participant model.Participant, requestBase64 string, signedRequestBase64 string) error
SignTransactionGlobalAndAppend : sign the transaction, should be called after the transaction is finalized for global micro service like quote service.