Versions in this module Expand all Collapse all v1 v1.0.1 Dec 21, 2021 v1.0.0 Dec 21, 2021 Changes in this version + type Asset struct + CId string + ID string + Price float64 + SL float64 + Side string + Size float64 + Sym string + TId string + TP float64 + TTs float64 + Ts int64 + type SmartContract struct + func (s *SmartContract) AssetExists(ctx contractapi.TransactionContextInterface, id string) (bool, error) + func (s *SmartContract) CreateAsset(ctx contractapi.TransactionContextInterface, id string, ts int64, sym string, ...) error + func (s *SmartContract) DeleteAsset(ctx contractapi.TransactionContextInterface, id string) error + func (s *SmartContract) GetAllAssets(ctx contractapi.TransactionContextInterface) ([]*Asset, error) + func (s *SmartContract) InitLedger(ctx contractapi.TransactionContextInterface) error + func (s *SmartContract) ReadAsset(ctx contractapi.TransactionContextInterface, id string) (*Asset, error) + func (s *SmartContract) UpdateAsset(ctx contractapi.TransactionContextInterface, id string, ts int64, sym string, ...) error