option

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewContract

func CreateNewContract(contractEnvironment *cmn.ContractEnvironment) *cmn.ContractCallBackInfo

func MustUnmarshal

func MustUnmarshal(data []byte, load interface{})

func RigisteredMethod

func RigisteredMethod(contractEnvironment *cmn.ContractEnvironment) *cmn.ContractCallBackInfo

Types

type ArgsBuyOption

type ArgsBuyOption struct {
	Proposal *math.Uint256 `json:"1"`
}

type ArgsCreateNewContract

type ArgsCreateNewContract struct {
	Owner       []byte        `json:"owner"`
	StrikePrice *math.Uint256 `json:"strike_price"`
}

type ArgsUpdateStake

type ArgsUpdateStake struct {
	Value *math.Uint256 `json:"1"`
}

type Option

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

func (*Option) BuyOption

func (option *Option) BuyOption(proposal *math.Uint256) *cmn.ContractCallBackInfo

func (*Option) NewContract

func (option *Option) NewContract(owner []byte, strikePrice *math.Uint256) *cmn.ContractCallBackInfo

func (*Option) StakeFund

func (option *Option) StakeFund() *cmn.ContractCallBackInfo

func (*Option) UpdateStake

func (option *Option) UpdateStake(value *math.Uint256) *cmn.ContractCallBackInfo

type ValidBuyer

type ValidBuyer struct {
	Valid    bool `json:"valid"`
	Executed bool `json:"executed"`
}

Jump to

Keyboard shortcuts

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