proposal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProposalInvalidInitData = errors.New("err_proposal_invalid_init_data")
	ErrProposalInvalidAmount   = errors.New("err_proposal_invalid_amount")
)

Functions

func Execute

func Execute(tx *schema.Transaction, state *schema.StateForProposal, oracle *schema.Oracle, localState, initData string) (*schema.StateForProposal, string, string, error)

Types

type InitData

type InitData struct {
	From string `json:"from"`
	Pays []Pay  `json:"pays"`
}

type Pay

type Pay struct {
	To        string `json:"to"`
	Amount    string `json:"amount"`
	StakePool string `json:"stakePool"`
}

Jump to

Keyboard shortcuts

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