Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParamPublicKey = "pk" ParamPayerAddress = "pa" ParamServiceAddress = "sa" ParamPayments = "m" ParamWarrant = "wa" ParamRevoked = "re" ParamLastOrd = "lo" StateVarPublicKeys = "k" WarrantRevokePeriod = 1 * time.Hour )
View Source
const MinimumWarrantIotas = 500
Variables ¶
View Source
var ( FuncPublicKey = coreutil.Func("publicKey") FuncAddWarrant = coreutil.Func("addWarrant") FuncRevokeWarrant = coreutil.Func("revokeWarrant") FuncCloseWarrant = coreutil.Func("closeWarrant") FuncSettle = coreutil.Func("settle") FuncGetChannelInfo = coreutil.ViewFunc("getWarrantInfo") )
View Source
var Contract = coreutil.NewContract("micropay", "Micro payment PoC smart contract")
View Source
var Processor = Contract.Processor(initialize, FuncPublicKey.WithHandler(publicKey), FuncAddWarrant.WithHandler(addWarrant), FuncRevokeWarrant.WithHandler(revokeWarrant), FuncCloseWarrant.WithHandler(closeWarrant), FuncSettle.WithHandler(settle), FuncGetChannelInfo.WithHandler(getWarrantInfo), )
Functions ¶
This section is empty.
Types ¶
type BatchPayment ¶
type BatchPayment struct { Payer ledgerstate.Address Provider ledgerstate.Address Payments []Payment }
Click to show internal directories.
Click to hide internal directories.