drm

package
v0.0.0-...-3cbc610 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DRMService

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

func NewService

func NewService(url string, privateKey string) (*DRMService, error)

func (*DRMService) Address

func (s *DRMService) Address() common.Address

func (*DRMService) CallContractCloseChannel

func (s *DRMService) CallContractCloseChannel(
	ctx context.Context,
	hash []byte,
	channel common.Address,
) (*types.Receipt, error)

func (*DRMService) CallContractSetCreatorClicks

func (s *DRMService) CallContractSetCreatorClicks(
	ctx context.Context,
	clicks []smartdrm.CreatorClicks,
) (*types.Receipt, error)

func (*DRMService) CallContractSetProof

func (s *DRMService) CallContractSetProof(
	ctx context.Context,
	proofs []smartdrm.ChannelProof,
) (*types.Receipt, error)

func (*DRMService) CallContractSplitBalance

func (s *DRMService) CallContractSplitBalance(ctx context.Context) (*types.Receipt, error)

func (*DRMService) DeployInstance

func (s *DRMService) DeployInstance(ctx context.Context) error

func (*DRMService) GetChannelFinishTimestamp

func (s *DRMService) GetChannelFinishTimestamp(addr common.Address) (*time.Time, error)

func (*DRMService) SetClicks

func (s *DRMService) SetClicks(ctx context.Context, clicks map[string]uint32) error

func (*DRMService) SetInstance

func (s *DRMService) SetInstance(addr common.Address) error

func (*DRMService) SetProofs

func (s *DRMService) SetProofs(ctx context.Context, proofs []proofsEntity.Proof) error

func (*DRMService) UserAddrToChannelAddr

func (s *DRMService) UserAddrToChannelAddr(userAddr string) (string, error)

func (*DRMService) ValidateProof

func (s *DRMService) ValidateProof(ctx context.Context, p proofsEntity.Proof) (string, error)

Jump to

Keyboard shortcuts

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