Documentation ¶
Overview ¶
Package contracts provides the smart contracts for Hyperledger/fabric 1.1.
Copyright Nobuyuki Matsui<nobuyuki.matsui>.
SPDX-License-Identifier: Apache-2.0
Package contracts provides the smart contracts for Hyperledger/fabric 1.1.
Copyright Nobuyuki Matsui<nobuyuki.matsui>.
SPDX-License-Identifier: Apache-2.0
Package contracts provides the smart contracts for Hyperledger/fabric 1.1.
Copyright Nobuyuki Matsui<nobuyuki.matsui>.
SPDX-License-Identifier: Apache-2.0
Index ¶
- type AccountContract
- func (ac *AccountContract) CreateAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ac *AccountContract) DeleteAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ac *AccountContract) ListAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ac *AccountContract) RetrieveAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ac *AccountContract) UpdateAccountName(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- type EventContract
- func (ec *EventContract) Deposit(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ec *EventContract) ListEvent(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ec *EventContract) Remit(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- func (ec *EventContract) Withdraw(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
- type HistoryContract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountContract ¶
type AccountContract struct { }
AccountContract : a struct to handle Account.
func (*AccountContract) CreateAccount ¶
func (ac *AccountContract) CreateAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
CreateAccount : create a new account.
func (*AccountContract) DeleteAccount ¶
func (ac *AccountContract) DeleteAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
DeleteAccount : delete an account.
func (*AccountContract) ListAccount ¶
func (ac *AccountContract) ListAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
ListAccount : return a list of all accounts.
func (*AccountContract) RetrieveAccount ¶
func (ac *AccountContract) RetrieveAccount(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
RetrieveAccount : return an account.
func (*AccountContract) UpdateAccountName ¶
func (ac *AccountContract) UpdateAccountName(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
UpdateAccountName : update the name of an account.
type EventContract ¶
type EventContract struct { }
EventContract : a struct to handle Event.
func (*EventContract) Deposit ¶
func (ec *EventContract) Deposit(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
Deposit : deposit to an account.
func (*EventContract) ListEvent ¶
func (ec *EventContract) ListEvent(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
ListEvent : return a list of events.
func (*EventContract) Remit ¶
func (ec *EventContract) Remit(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
Remit : remit from an account to another account
func (*EventContract) Withdraw ¶
func (ec *EventContract) Withdraw(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
Withdraw : withdraw from an account
type HistoryContract ¶
type HistoryContract struct { }
HistoryContract : a struct to query Histories
func (*HistoryContract) ListHistory ¶
func (hc *HistoryContract) ListHistory(APIstub shim.ChaincodeStubInterface, args []string) sc.Response
ListHistory : return all histories of a state object.