Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2024 Changes in this version + const ErrIncorrectKey + const ErrIncorrectSwap + const SwapCompositeType + const SwapKeyEvent + func Answer(stub *cachestub.BatchCacheStub, swap *proto.Swap, robotSideTimeout int64) (r *proto.SwapResponse) + func Delete(stub shim.ChaincodeStubInterface, swapID string) error + func Load(stub shim.ChaincodeStubInterface, swapID string) (*proto.Swap, error) + func RobotDone(stub *cachestub.BatchCacheStub, swapID []byte, key string) (r *proto.SwapResponse) + func Save(stub shim.ChaincodeStubInterface, swapID string, s *proto.Swap) error + func UserDone(bci BaseContractInterface, swapID string, key string) peer.Response + type BaseContractInterface interface + AllowedBalanceAdd func(token string, address *types.Address, amount *big.Int, reason string) error + GetStub func() shim.ChaincodeStubInterface + TokenBalanceAdd func(address *types.Address, amount *big.Int, reason string) error