Documentation ¶
Index ¶
- type Conts
- type OperationService
- func (o *OperationService) AccountReveal(payments []delegate.Payment, wallet account.Wallet) ([]string, error)
- func (o *OperationService) AccountRevealHSM(payments []delegate.Payment, address string, publickey string) ([]string, error)
- func (o *OperationService) ActivateAccount(payments []delegate.Payment, wallet account.Wallet) ([]string, error)
- func (o *OperationService) ActivateAccountHSM(payments []delegate.Payment, address string) ([]string, error)
- func (o *OperationService) CreateBatchPayment(payments []delegate.Payment, wallet account.Wallet, paymentFee int, ...) ([]string, error)
- func (o *OperationService) CreateBatchPaymentHSM(payments []delegate.Payment, address string, paymentFee int, gasLimit int, ...) ([]string, error)
- func (o *OperationService) GetBlockOperationHashes(id interface{}) ([]string, error)
- func (o *OperationService) InjectOperation(op string) ([]byte, error)
- type TezosOperationsService
- type Transfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conts ¶
Conts is helper structure to build out the contents of a a transfer operation to post to the Tezos RPC
type OperationService ¶
type OperationService struct {
// contains filtered or unexported fields
}
OperationService is a struct wrapper for operation related functions
func NewOperationService ¶
func NewOperationService(blockService block.TezosBlockService, tzclient tzc.TezosClient) *OperationService
NewOperationService returns a New Operation Service
func (*OperationService) AccountReveal ¶
func (o *OperationService) AccountReveal(payments []delegate.Payment, wallet account.Wallet) ([]string, error)
AccountReveal
func (*OperationService) AccountRevealHSM ¶
func (o *OperationService) AccountRevealHSM(payments []delegate.Payment, address string, publickey string) ([]string, error)
AccountRevealHSM
func (*OperationService) ActivateAccount ¶
func (o *OperationService) ActivateAccount(payments []delegate.Payment, wallet account.Wallet) ([]string, error)
ActivateAccount
func (*OperationService) ActivateAccountHSM ¶
func (o *OperationService) ActivateAccountHSM(payments []delegate.Payment, address string) ([]string, error)
ActivateAccountHSM
func (*OperationService) CreateBatchPayment ¶
func (o *OperationService) CreateBatchPayment(payments []delegate.Payment, wallet account.Wallet, paymentFee int, gasLimit int, batchSize int) ([]string, error)
CreateBatchPayment forges batch payments and returns them ready to inject to a Tezos RPC. PaymentFee must be expressed in mutez and the max batch size allowed is 200.
func (*OperationService) CreateBatchPaymentHSM ¶
func (o *OperationService) CreateBatchPaymentHSM(payments []delegate.Payment, address string, paymentFee int, gasLimit int, batchSize int) ([]string, error)
CreateBatchPayment forges batch payments and returns them ready to inject to a Tezos RPC. PaymentFee must be expressed in mutez and the max batch size allowed is 200.
func (*OperationService) GetBlockOperationHashes ¶
func (o *OperationService) GetBlockOperationHashes(id interface{}) ([]string, error)
GetBlockOperationHashes returns list of operations in block at specific level
func (*OperationService) InjectOperation ¶
func (o *OperationService) InjectOperation(op string) ([]byte, error)
InjectOperation injects an signed operation string and returns the response
type TezosOperationsService ¶
type TezosOperationsService interface { CreateBatchPayment(payments []delegate.Payment, wallet account.Wallet, paymentFee int, gaslimit int, batchSize int) ([]string, error) InjectOperation(op string) ([]byte, error) GetBlockOperationHashes(id interface{}) ([]string, error) ActivateAccount(payments []delegate.Payment, wallet account.Wallet) ([]string, error) ActivateAccountHSM(payments []delegate.Payment, address string) ([]string, error) AccountReveal(payments []delegate.Payment, wallet account.Wallet) ([]string, error) AccountRevealHSM(payments []delegate.Payment, address string, publickey string) ([]string, error) CreateBatchPaymentHSM(payments []delegate.Payment, address string, paymentFee int, gaslimit int, batchSize int) ([]string, error) }