Documentation ¶
Index ¶
- type Conts
- type OperationService
- func (o *OperationService) CreateBatchPayment(payments []delegate.Payment, wallet account.Wallet, paymentFee int, ...) ([]string, error)
- func (o *OperationService) EstimateGas(ro *RunOpt, chainId, fee string) error
- func (o *OperationService) GetBlockOperationHashes(id interface{}) ([]string, error)
- func (o *OperationService) InjectOperation(op string) ([]byte, error)
- func (o *OperationService) IsNewAddr(branchHash, address string) bool
- type RunOpt
- 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) 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) EstimateGas ¶
func (o *OperationService) EstimateGas(ro *RunOpt, chainId, fee string) error
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
func (*OperationService) IsNewAddr ¶
func (o *OperationService) IsNewAddr(branchHash, address string) bool
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) IsNewAddr(branchHash, address string) bool }
Click to show internal directories.
Click to hide internal directories.