task

package
v1.18.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Copyright (c) 2023 Blockwatch Data Inc. Author: alex@blockwatch.cc, abdul@blockwatch.cc

Copyright (c) 2023 Blockwatch Data Inc. Author: alex@blockwatch.cc, abdul@blockwatch.cc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBatchTask

func NewBatchTask() alpha.TaskBuilder

func NewCallTask

func NewCallTask() alpha.TaskBuilder

func NewDelegateTask

func NewDelegateTask() alpha.TaskBuilder

func NewDeployTask

func NewDeployTask() alpha.TaskBuilder

func NewDoubleBakeTask added in v1.18.0

func NewDoubleBakeTask() alpha.TaskBuilder

func NewDoubleEndorseTask

func NewDoubleEndorseTask() alpha.TaskBuilder

func NewFinalizeUnstakeTask added in v1.18.0

func NewFinalizeUnstakeTask() alpha.TaskBuilder

func NewRegisterBakerTask

func NewRegisterBakerTask() alpha.TaskBuilder

func NewStakeTask added in v1.18.0

func NewStakeTask() alpha.TaskBuilder

func NewTokenApproveTask

func NewTokenApproveTask() alpha.TaskBuilder

func NewTokenRevokeTask

func NewTokenRevokeTask() alpha.TaskBuilder

func NewTokenTransferTask

func NewTokenTransferTask() alpha.TaskBuilder

func NewTransferTask

func NewTransferTask() alpha.TaskBuilder

func NewUndelegateTask

func NewUndelegateTask() alpha.TaskBuilder

func NewUnstakeTask added in v1.18.0

func NewUnstakeTask() alpha.TaskBuilder

func NewWaitTask

func NewWaitTask() alpha.TaskBuilder

Types

type BaseTask

type BaseTask struct {
	Source tezos.Address
	Key    tezos.PrivateKey
}

type BatchTask

type BatchTask struct {
	BaseTask
}

func (*BatchTask) Build

func (t *BatchTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*BatchTask) Type

func (t *BatchTask) Type() string

func (*BatchTask) Validate

func (t *BatchTask) Validate(ctx compose.Context, task alpha.Task) error

type CallTask

type CallTask struct {
	TargetTask
}

func (*CallTask) Build

func (t *CallTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*CallTask) Type

func (c *CallTask) Type() string

func (*CallTask) Validate

func (t *CallTask) Validate(ctx compose.Context, task alpha.Task) error

type DelegateTask

type DelegateTask struct {
	TargetTask
}

func (*DelegateTask) Build

func (t *DelegateTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*DelegateTask) Type

func (t *DelegateTask) Type() string

func (*DelegateTask) Validate

func (t *DelegateTask) Validate(ctx compose.Context, task alpha.Task) error

type DeployTask

type DeployTask struct {
	TargetTask
	Amount int64
}

func (*DeployTask) Build

func (t *DeployTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*DeployTask) Type

func (c *DeployTask) Type() string

func (*DeployTask) Validate

func (t *DeployTask) Validate(ctx compose.Context, task alpha.Task) error

type DoubleBakeTask added in v1.18.0

type DoubleBakeTask struct {
	TargetTask
	BakerKey tezos.PrivateKey
}

func (*DoubleBakeTask) Build added in v1.18.0

func (t *DoubleBakeTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*DoubleBakeTask) Type added in v1.18.0

func (t *DoubleBakeTask) Type() string

func (*DoubleBakeTask) Validate added in v1.18.0

func (t *DoubleBakeTask) Validate(ctx compose.Context, task alpha.Task) error

type DoubleEndorseTask

type DoubleEndorseTask struct {
	TargetTask
	BakerKey tezos.PrivateKey
}

func (*DoubleEndorseTask) Build

func (t *DoubleEndorseTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*DoubleEndorseTask) Type

func (t *DoubleEndorseTask) Type() string

func (*DoubleEndorseTask) Validate

func (t *DoubleEndorseTask) Validate(ctx compose.Context, task alpha.Task) error

type FinalizeUnstakeTask added in v1.18.0

type FinalizeUnstakeTask struct {
	BaseTask
}

func (*FinalizeUnstakeTask) Build added in v1.18.0

func (*FinalizeUnstakeTask) Type added in v1.18.0

func (t *FinalizeUnstakeTask) Type() string

func (*FinalizeUnstakeTask) Validate added in v1.18.0

func (t *FinalizeUnstakeTask) Validate(ctx compose.Context, task alpha.Task) error

type RegisterBakerTask

type RegisterBakerTask struct {
	BaseTask
}

func (*RegisterBakerTask) Build

func (t *RegisterBakerTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*RegisterBakerTask) Type

func (t *RegisterBakerTask) Type() string

func (*RegisterBakerTask) Validate

func (t *RegisterBakerTask) Validate(ctx compose.Context, task alpha.Task) error

type StakeTask added in v1.18.0

type StakeTask struct {
	BaseTask
	Amount int64
}

func (*StakeTask) Build added in v1.18.0

func (t *StakeTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*StakeTask) Type added in v1.18.0

func (t *StakeTask) Type() string

func (*StakeTask) Validate added in v1.18.0

func (t *StakeTask) Validate(ctx compose.Context, task alpha.Task) error

type TargetTask

type TargetTask struct {
	BaseTask
	Destination tezos.Address
}

type TokenApproveTask

type TokenApproveTask struct {
	TargetTask
	Spender  tezos.Address
	Standard string
	Amount   tezos.Z
	TokenId  tezos.Z
}

func (*TokenApproveTask) Build

func (t *TokenApproveTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*TokenApproveTask) Type

func (t *TokenApproveTask) Type() string

func (*TokenApproveTask) Validate

func (t *TokenApproveTask) Validate(ctx compose.Context, task alpha.Task) error

type TokenReceiver

type TokenReceiver struct {
	Address tezos.Address
	Amount  tezos.Z
	TokenId tezos.Z
}

type TokenRevokeTask

type TokenRevokeTask struct {
	TargetTask
	Spender  tezos.Address
	Standard string
	TokenId  tezos.Z
}

func (*TokenRevokeTask) Build

func (t *TokenRevokeTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*TokenRevokeTask) Type

func (t *TokenRevokeTask) Type() string

func (*TokenRevokeTask) Validate

func (t *TokenRevokeTask) Validate(ctx compose.Context, task alpha.Task) error

type TokenTransferTask

type TokenTransferTask struct {
	TargetTask
	Standard  string
	From      tezos.Address
	Receivers []TokenReceiver
}

func (*TokenTransferTask) Build

func (t *TokenTransferTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*TokenTransferTask) Type

func (t *TokenTransferTask) Type() string

func (*TokenTransferTask) Validate

func (t *TokenTransferTask) Validate(ctx compose.Context, task alpha.Task) error

type TransferTask

type TransferTask struct {
	TargetTask
	Amount int64
}

func (*TransferTask) Build

func (t *TransferTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*TransferTask) Type

func (t *TransferTask) Type() string

func (*TransferTask) Validate

func (t *TransferTask) Validate(ctx compose.Context, task alpha.Task) error

type UndelegateTask

type UndelegateTask struct {
	BaseTask
}

func (*UndelegateTask) Build

func (t *UndelegateTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*UndelegateTask) Type

func (t *UndelegateTask) Type() string

func (*UndelegateTask) Validate

func (t *UndelegateTask) Validate(ctx compose.Context, task alpha.Task) error

type UnstakeTask added in v1.18.0

type UnstakeTask struct {
	BaseTask
	Amount int64
}

func (*UnstakeTask) Build added in v1.18.0

func (t *UnstakeTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*UnstakeTask) Type added in v1.18.0

func (t *UnstakeTask) Type() string

func (*UnstakeTask) Validate added in v1.18.0

func (t *UnstakeTask) Validate(ctx compose.Context, task alpha.Task) error

type WaitTask

type WaitTask struct {
	Mode     alpha.WaitMode // cycle, block, time
	Relative bool           // relative/absolute
	Value    int64          // parsed config value
	Start    int64          // wait start (for relative)
}

func (*WaitTask) Build

func (t *WaitTask) Build(ctx compose.Context, task alpha.Task) (*codec.Op, *rpc.CallOptions, error)

func (*WaitTask) Type

func (t *WaitTask) Type() string

func (*WaitTask) Validate

func (t *WaitTask) Validate(ctx compose.Context, task alpha.Task) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL