Documentation ¶
Index ¶
- func CreateNewContract(contractEnvironment *cmn.ContractEnvironment) *cmn.ContractCallBackInfo
- func MustUnmarshal(data []byte, load interface{})
- func RigisteredMethod(env *cmn.ContractEnvironment) *cmn.ContractCallBackInfo
- func SafeAdd(JsonParas []byte) *cmn.ContractCallBackInfo
- type ArgsCreateNewContract
- type ArgsFreezeInfo
- type ArgsInsuranceClaim
- type ArgsSafeAdd
- type ArgsUpdateTxFr
- type ArgsUpdateTxInfo
- type ArgsUserAck
- type ISC
- func (iscc *ISC) FreezeInfo(tid uint64) *cmn.ContractCallBackInfo
- func (iscc *ISC) GetOwners() *cmn.ContractCallBackInfo
- func (iscc *ISC) GetState() *cmn.ContractCallBackInfo
- func (iscc *ISC) InsuranceClaim(tid, aid uint64) *cmn.ContractCallBackInfo
- func (iscc *ISC) IsActive() bool
- func (iscc *ISC) IsInited() bool
- func (iscc *ISC) IsIniting() bool
- func (iscc *ISC) IsOpening() bool
- func (iscc *ISC) IsOwner(address []byte) *cmn.ContractCallBackInfo
- func (iscc *ISC) IsSettling() bool
- func (iscc *ISC) NewContract(iscOwners [][]byte, funds []uint32, vesSig []byte, ...) *cmn.ContractCallBackInfo
- func (iscc *ISC) SettleContract() *cmn.ContractCallBackInfo
- func (iscc *ISC) UpdateTxAmt(tid uint64, amt *math.Uint256) *cmn.ContractCallBackInfo
- func (iscc *ISC) UpdateTxFr(tid uint64, fr []byte) *cmn.ContractCallBackInfo
- func (iscc *ISC) UpdateTxInfo(tid uint64, transactionIntent *transaction.TransactionIntent) *cmn.ContractCallBackInfo
- func (iscc *ISC) UpdateTxMeta(tid uint64, meta []byte) *cmn.ContractCallBackInfo
- func (iscc *ISC) UpdateTxSeq(tid uint64, seq *math.Uint256) *cmn.ContractCallBackInfo
- func (iscc *ISC) UpdateTxTo(tid uint64, to []byte) *cmn.ContractCallBackInfo
- func (iscc *ISC) UserAck(fr, signature []byte) *cmn.ContractCallBackInfo
- func (iscc *ISC) UserRefuse(signature []byte) *cmn.ContractCallBackInfo
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(env *cmn.ContractEnvironment) *cmn.ContractCallBackInfo
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 ArgsSafeAdd ¶
type ArgsUpdateTxFr ¶ added in v0.7.1
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 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) IsOwner ¶ added in v0.7.3
func (iscc *ISC) IsOwner(address []byte) *cmn.ContractCallBackInfo
func (*ISC) IsSettling ¶
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 (*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 (*ISC) UpdateTxTo ¶
func (iscc *ISC) UpdateTxTo(tid uint64, to []byte) *cmn.ContractCallBackInfo
func (*ISC) UserRefuse ¶
func (iscc *ISC) UserRefuse(signature []byte) *cmn.ContractCallBackInfo
Click to show internal directories.
Click to hide internal directories.