package
0.0.9
Repository: https://github.com/anoideaopen/foundation.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package routing defines the Router interface for managing smart contract method calls.
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddDocs adds documents to the ledger.
CheckSign exists fo backward compatibility.
DeleteDoc deletes document from the ledger.
DocumentsList returns list of documents.
Deprecated: added only for backward compatibility.
NewCC creates a new instance of ChainCode with the given contract interface and configurable options.
NewTaskExecutor initializes a new TaskExecutor.
OneOf checks if a given string s is present within a slice of strings ss.
TasksExecutorHandler executes multiple sub-transactions (tasks) within a single transaction in Hyperledger Fabric, using cached state between tasks to solve the MVCC problem.
WithConfigMapper is a ChaincodeOption that specifies the ConfigMapper for the ChainCode.
WithConfigMapperFunc is a ChaincodeOption that specifies the ConfigMapper for the ChainCode.
WithRouter returns a ChaincodeOption function that sets the router in the chaincode options.
WithRouters returns a ChaincodeOption function that sets the router in the chaincode options.
WithSrcFS is a ChaincodeOption that specifies the source file system to be used by the ChainCode.
WithTLS is a ChaincodeOption that specifies the TLS configuration for the ChainCode.
WithTLSFromFiles returns a ChaincodeOption that sets the TLS configuration for the ChainCode from provided file paths.

# Constants

BalanceAllowedLockedEvent - event on allowed balance locked.
BalanceAllowedUnlockedEvent - event on allowed balance unlocked.
BalanceTokenLockedEvent - event on token balance locked.
BalanceTokenUnlockedEvent - event on token balance unlocked.
No description provided by the author
No description provided by the author
CancelFrom - cancellation in the From.
No description provided by the author
No description provided by the author
CreateFrom - Channel transference creation From.
No description provided by the author
CreateTo - Channel transference creation To.
No description provided by the author
No description provided by the author
DocsKey is a key for documents.
ErrMethodNotImplemented is the error message for not implemented methods.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
hex: 2a.
No description provided by the author

# Variables

ErrAddressRequired - error on address required.
No description provided by the author
ErrAlreadyExist - error on already exist.
No description provided by the author
ErrAmountRequired - error on amount required.
ErrBigIntFromString - error on big int from string.
ErrEmptyLockID - error on empty lock id.
ErrInsufficientFunds - error on insufficient funds.
ErrLockNotExists - error on lock not exists.
No description provided by the author
ErrPlatformAdminOnly - error on platform admin only.
ErrReason - error on reason.
No description provided by the author
No description provided by the author
No description provided by the author
ErrTokenTickerRequired - error on token ticker required.
No description provided by the author

# Structs

BaseContract is a base contract for all contracts.
Chaincode defines the structure for a chaincode instance, with methods, configuration, and options for transaction processing.
Doc json struct.
No description provided by the author
TaskExecutor handles the execution of a group of tasks.
TLS holds the key and certificate data for TLS communication, as well as client CA certificates for peer verification if needed.
No description provided by the author
No description provided by the author

# Interfaces

BaseContractInterface represents BaseContract interface.

# Type aliases

ChaincodeOption represents a function that applies configuration options to a chaincodeOptions object.