rewards

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rewards

type Rewards struct {
	// contains filtered or unexported fields
}

func NewRewards

func NewRewards(core corev1connect.CoreServiceClient) *Rewards

func (*Rewards) CreateReward

func (r *Rewards) CreateReward(ctx context.Context, cr *v1.CreateReward) (*v1.GetRewardResponse, error)

func (*Rewards) DeleteReward

func (r *Rewards) DeleteReward(ctx context.Context, dr *v1.DeleteReward) (string, error)

func (*Rewards) GetReward

func (r *Rewards) GetReward(ctx context.Context, address string) (*v1.GetRewardResponse, error)

func (*Rewards) GetRewardAttestation

func (*Rewards) GetRewards

func (r *Rewards) GetRewards(ctx context.Context, claim_authority string) (*v1.GetRewardsResponse, error)

func (*Rewards) SetPrivKey

func (r *Rewards) SetPrivKey(privKey *ecdsa.PrivateKey)

Jump to

Keyboard shortcuts

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