Documentation
¶
Index ¶
- type ExtendedSimpleContract
- func (esc *ExtendedSimpleContract) Create(ctx utils.CustomTransactionContextInterface, key string) error
- func (esc *ExtendedSimpleContract) Read(ctx utils.CustomTransactionContextInterface, key string) (string, error)
- func (esc *ExtendedSimpleContract) Update(ctx utils.CustomTransactionContextInterface, key string, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedSimpleContract ¶
type ExtendedSimpleContract struct {
contractapi.Contract
}
ExtendedSimpleContract contract for handling writing and reading from the world state
func (*ExtendedSimpleContract) Create ¶
func (esc *ExtendedSimpleContract) Create(ctx utils.CustomTransactionContextInterface, key string) error
Create adds a new key with value to the world state
func (*ExtendedSimpleContract) Read ¶
func (esc *ExtendedSimpleContract) Read(ctx utils.CustomTransactionContextInterface, key string) (string, error)
Read returns the value at key in the world state
func (*ExtendedSimpleContract) Update ¶
func (esc *ExtendedSimpleContract) Update(ctx utils.CustomTransactionContextInterface, key string, value string) error
Update changes the value with key in the world state
Click to show internal directories.
Click to hide internal directories.