Help us shape the future of Go! Take the 2026 Go Developer Survey

walletoperation

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package walletoperation owns wallet task inputs and recovery checkpoints.

Index

Constants

This section is empty.

Variables

View Source
var ErrIdentityChanged = errors.New("wallet request belongs to another wallet, network, or payment contract")

Functions

func ValidateInput

func ValidateInput(input Input) error

Types

type Checkpoint

type Checkpoint struct {
	ExecutionIdentity
	BroadcastAttempted bool   `json:"broadcast_attempted"`
	BroadcastNotSent   bool   `json:"broadcast_not_sent,omitempty"`
	TransactionHash    string `json:"transaction_hash,omitempty"`
}

type ExecutionIdentity

type ExecutionIdentity struct {
	Identity *storage.ContextIdentity `json:"identity,omitempty"`
	Payments *common.Address          `json:"payments,omitempty"`
	USDFC    *common.Address          `json:"usdfc,omitempty"`
}

func NewExecutionIdentity

func NewExecutionIdentity(identity storage.ContextIdentity, payments, usdfc common.Address) ExecutionIdentity

func (ExecutionIdentity) Complete

func (identity ExecutionIdentity) Complete() bool

func (ExecutionIdentity) Match

func (identity ExecutionIdentity) Match(other ExecutionIdentity) error

type Input

type Input struct {
	ExecutionIdentity
	OperationID int64 `json:"operation_id"`
}

Jump to

Keyboard shortcuts

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