isc

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: LGPL-3.0 Imports: 12 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 SafeAdd

func SafeAdd(JsonParas []byte) *cmn.ContractCallBackInfo

Types

type ArgsCreateNewContract

type ArgsCreateNewContract struct {
	IscOwners          [][]byte                         `json:"isc_owners"`
	Funds              []uint32                         `json:"required_funds"`
	VesSig             []byte                           `json:"ves_signature"`
	TransactionIntents []*transaction.TransactionIntent `json:"transaction_intents"`
}

type ArgsFreezeInfo added in v0.7.1

type ArgsFreezeInfo struct {
	Tid uint64 `json:"tid"`
}

type ArgsInsuranceClaim added in v0.7.1

type ArgsInsuranceClaim struct {
	Tid uint64
	Aid uint64
}

type ArgsSafeAdd

type ArgsSafeAdd struct {
	A *math.Uint256 `json:"a"`
	B *math.Uint256 `json:"b"`
}

type ArgsUpdateTxFr added in v0.7.1

type ArgsUpdateTxFr struct {
	Tid uint64 `json:"tid"`
	Fr  []byte `json:"from"`
}

type ArgsUpdateTxInfo added in v0.7.1

type ArgsUpdateTxInfo struct {
	Tid               uint64                         `json:"tid"`
	TransactionIntent *transaction.TransactionIntent `json:"transaction_intent"`
}

type ArgsUserAck added in v0.7.1

type ArgsUserAck struct {
	Address   []byte `json:"address"`
	Signature []byte `json:"signature"`
}

type ISC

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

func (*ISC) FreezeInfo

func (iscc *ISC) FreezeInfo(tid uint64) *cmn.ContractCallBackInfo

func (*ISC) GetOwners added in v0.7.3

func (iscc *ISC) GetOwners() *cmn.ContractCallBackInfo

func (*ISC) GetState added in v0.7.3

func (iscc *ISC) GetState() *cmn.ContractCallBackInfo

func (*ISC) InsuranceClaim

func (iscc *ISC) InsuranceClaim(tid, aid uint64) *cmn.ContractCallBackInfo

func (*ISC) IsActive

func (iscc *ISC) IsActive() bool

func (*ISC) IsInited added in v0.7.1

func (iscc *ISC) IsInited() bool

func (*ISC) IsIniting

func (iscc *ISC) IsIniting() bool

func (*ISC) IsOpening

func (iscc *ISC) IsOpening() bool

func (*ISC) IsOwner added in v0.7.3

func (iscc *ISC) IsOwner(address []byte) *cmn.ContractCallBackInfo

func (*ISC) IsSettling

func (iscc *ISC) IsSettling() bool

func (*ISC) NewContract

func (iscc *ISC) NewContract(iscOwners [][]byte, funds []uint32, vesSig []byte, transactionIntents []*transaction.TransactionIntent) *cmn.ContractCallBackInfo

func (*ISC) SettleContract

func (iscc *ISC) SettleContract() *cmn.ContractCallBackInfo

func (*ISC) UpdateTxAmt

func (iscc *ISC) UpdateTxAmt(tid uint64, amt *math.Uint256) *cmn.ContractCallBackInfo

func (*ISC) UpdateTxFr

func (iscc *ISC) UpdateTxFr(tid uint64, fr []byte) *cmn.ContractCallBackInfo

func (*ISC) UpdateTxInfo

func (iscc *ISC) UpdateTxInfo(tid uint64, transactionIntent *transaction.TransactionIntent) *cmn.ContractCallBackInfo

func (*ISC) UpdateTxMeta

func (iscc *ISC) UpdateTxMeta(tid uint64, meta []byte) *cmn.ContractCallBackInfo

func (*ISC) UpdateTxSeq

func (iscc *ISC) UpdateTxSeq(tid uint64, seq *math.Uint256) *cmn.ContractCallBackInfo

func (*ISC) UpdateTxTo

func (iscc *ISC) UpdateTxTo(tid uint64, to []byte) *cmn.ContractCallBackInfo

func (*ISC) UserAck

func (iscc *ISC) UserAck(fr, signature []byte) *cmn.ContractCallBackInfo

func (*ISC) UserRefuse

func (iscc *ISC) UserRefuse(signature []byte) *cmn.ContractCallBackInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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