Documentation
¶
Index ¶
- Constants
- type SmartContract
- func (s *SmartContract) BatchDecrWithTimestamp(ctx contractapi.TransactionContextInterface, count uint64, currentTime int64) error
- func (s *SmartContract) BatchIncr(ctx contractapi.TransactionContextInterface, count uint64) error
- func (s *SmartContract) BatchIncrWithTimestamp(ctx contractapi.TransactionContextInterface, count uint64, currentTime int64) error
- func (s *SmartContract) Count(ctx contractapi.TransactionContextInterface) (uint64, error)
- func (s *SmartContract) Decr(ctx contractapi.TransactionContextInterface, count uint64) error
- func (s *SmartContract) GetIgnoredFunctions() []string
- func (s *SmartContract) Incr(ctx contractapi.TransactionContextInterface, count uint64) error
- func (s *SmartContract) Init(ctx contractapi.TransactionContextInterface) error
Constants ¶
View Source
const ( MsgIncr = "incr" MsgDecr = "decr" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmartContract ¶
type SmartContract struct {
contractapi.Contract
*batch.BatchContract
}
func NewSmartContract ¶
func NewSmartContract(batchcc *batch.BatchContract) *SmartContract
func (*SmartContract) BatchDecrWithTimestamp ¶
func (s *SmartContract) BatchDecrWithTimestamp(ctx contractapi.TransactionContextInterface, count uint64, currentTime int64) error
func (*SmartContract) BatchIncr ¶
func (s *SmartContract) BatchIncr(ctx contractapi.TransactionContextInterface, count uint64) error
func (*SmartContract) BatchIncrWithTimestamp ¶
func (s *SmartContract) BatchIncrWithTimestamp(ctx contractapi.TransactionContextInterface, count uint64, currentTime int64) error
func (*SmartContract) Count ¶
func (s *SmartContract) Count(ctx contractapi.TransactionContextInterface) (uint64, error)
func (*SmartContract) Decr ¶
func (s *SmartContract) Decr(ctx contractapi.TransactionContextInterface, count uint64) error
func (*SmartContract) GetIgnoredFunctions ¶
func (s *SmartContract) GetIgnoredFunctions() []string
func (*SmartContract) Incr ¶
func (s *SmartContract) Incr(ctx contractapi.TransactionContextInterface, count uint64) error
func (*SmartContract) Init ¶
func (s *SmartContract) Init(ctx contractapi.TransactionContextInterface) error
Click to show internal directories.
Click to hide internal directories.