{"modulePath":"github.com/zm-stack/chaincode","version":"v0.0.0-20240909070853-fe33e5dba583","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\norigin\\_dairyfarm.go\n\nRepository Package follow the repository pattern [https://www.c-sharpcorner.com/UploadFile/b1df45/getting-started-with-repository-pattern-using-C-Sharp/](https://www.c-sharpcorner.com/UploadFile/b1df45/getting-started-with-repository-pattern-using-C-Sharp/) It provides a generic interface to interact with our entities\n\n  - Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. \\*\n  - Licensed under the Apache License, Version 2.0 (the \"License\");\n  - you may not use this file except in compliance with the License.\n  - You may obtain a copy of the License at\n  - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n  - Unless required by applicable law or agreed to in writing, software\n  - distributed under the License is distributed on an \"AS IS\" BASIS,\n  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  - See the License for the specific language governing permissions and\n  - limitations under the License. \\*\n\n### Define package name {#hdr-Define_package_name}\n\nPackage util provides generic CRUD methods for working with Hyperledger Fabric golang chaincode.\n\n\\*\n\n\t*\n\t* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.\n\t*\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\n\\*\n\n\t*\n\t* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.\n\t*\n\n\t*  Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved.\n\t*\n\t*  Licensed under the Apache License, Version 2.0 (the \"License\");\n\t*  you may not use this file except in compliance with the License.\n\t*  You may obtain a copy of the License at\n\t*     http://www.apache.org/licenses/LICENSE-2.0\n\t*  Unless required by applicable law or agreed to in writing, software\n\t*  distributed under the License is distributed on an \"AS IS\" BASIS,\n\t*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t*  See the License for the specific language governing permissions and\n\t*  limitations under the License.\n\t*\n\n\t*  Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved.\n\t*\n\t*  Licensed under the Apache License, Version 2.0 (the \"License\");\n\t*  you may not use this file except in compliance with the License.\n\t*  You may obtain a copy of the License at\n\t*     http://www.apache.org/licenses/LICENSE-2.0\n\t*  Unless required by applicable law or agreed to in writing, software\n\t*  distributed under the License is distributed on an \"AS IS\" BASIS,\n\t*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t*  See the License for the specific language governing permissions and\n\t*  limitations under the License.\n\t*\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-06-16 14:05 # @File : args.go # @Description : # @Attention :\n\norigin\\_salesterminal\n\n### The basic repository implementation use utility functions in akc-go-sdk {#hdr-The_basic_repository_implementation_use_utility_functions_in_akc_go_sdk}\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\n  - Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. \\*\n  - Licensed under the Apache License, Version 2.0 (the \"License\");\n  - you may not use this file except in compliance with the License.\n  - You may obtain a copy of the License at\n  - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n  - Unless required by applicable law or agreed to in writing, software\n  - distributed under the License is distributed on an \"AS IS\" BASIS,\n  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  - See the License for the specific language governing permissions and\n  - limitations under the License. \\*\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2019-12-14 13:05 # @File : fabric\\_base\\_facaded\\_service.go # @Description : 门面service的baseCC # @Attention :\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\n\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\n  - Código de smart contract correspondiente al proyecto de grado\n  - Álvaro Miguel Salinas Dockar\n  - Universidad Católica Boliviana \"San Pablo\"\n  - Ingeniería Mecatrónica\n  - La Paz - Bolivia, 2020 \\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\n///////////////////////////////////////////\n\n\tTHE BLOCKCHAIN PKI EXPERIMENT     ////\n\n/////////////////////////////////////////\n\n\tThis is the fabpki, a chaincode that implements a Public Key Infrastructure (PKI)\n\tfor measuring instruments. It runs in Hyperledger Fabric 1.4.\n\tHe was created as part of the PKI Experiment. You can invoke its methods\n\tto store measuring instruments public keys in the ledger, and also to verify\n\tdigital signatures that are supposed to come from these instruments.\n\n\t@author: Wilson S. Melo Jr.\n\t@date: Oct/2019\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nPackage mock provides mock methods to simulate how a peer node interact with CouchDB and simulate a transaction proposal. This does not requires a working Fabric Peer like FabricSDK but require connection to a remote CouchDB instance.\n\n### The workflow is as follow {#hdr-The_workflow_is_as_follow}\n\n1\\) Create a core.yaml follow similar template in test/contract/core.yaml, remember to change the configuration of the couchDB as you need\n\n2\\) Create a NewMockStubExtend object that point to the core.yaml and the smart contract object\n\n3\\) Process Indexes (if need)\n\n4\\) Perform MockInvokeTransaction\n\n### For more details, please find test example in the README file {#hdr-For_more_details__please_find_test_example_in_the_README_file}\n\n\\*\n\n  - Allows the managing of multiple tokens \\*\n  - Token1    x       0\n  - Token1    x       10\n  - Token2    y       5 \\* \\*\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\n  - Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. \\*\n  - Licensed under the Apache License, Version 2.0 (the \"License\");\n  - you may not use this file except in compliance with the License.\n  - You may obtain a copy of the License at\n  - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n  - Unless required by applicable law or agreed to in writing, software\n  - distributed under the License is distributed on an \"AS IS\" BASIS,\n  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  - See the License for the specific language governing permissions and\n  - limitations under the License. \\*\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\n  - Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. \\*\n  - Licensed under the Apache License, Version 2.0 (the \"License\");\n  - you may not use this file except in compliance with the License.\n  - You may obtain a copy of the License at\n  - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n  - Unless required by applicable law or agreed to in writing, software\n  - distributed under the License is distributed on an \"AS IS\" BASIS,\n  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  - See the License for the specific language governing permissions and\n  - limitations under the License. \\*\n\ntest contains the stubs required for counterfeiter to generate the mocks used for tests\n\nThe mocks are created by running \\`go generate ./...\\` as described in the counterfeiter readme\n\n\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\n  - Código de smart contract correspondiente al proyecto de grado\n\n  - Álvaro Miguel Salinas Dockar\n\n  - Universidad Católica Boliviana \"San Pablo\"\n\n  - Ingeniería Mecatrónica\n\n  - La Paz - Bolivia, 2020 \\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\n  - Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. \\*\n\n  - Licensed under the Apache License, Version 2.0 (the \"License\");\n\n  - you may not use this file except in compliance with the License.\n\n  - You may obtain a copy of the License at\n\n  - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\n  - Unless required by applicable law or agreed to in writing, software\n\n  - distributed under the License is distributed on an \"AS IS\" BASIS,\n\n  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\n  - See the License for the specific language governing permissions and\n\n  - limitations under the License. \\*\n\n  - Copyright (C) 2020 The poly network Authors\n\n  - This file is part of The poly network library. \\*\n\n  - The  poly network  is free software: you can redistribute it and/or modify\n\n  - it under the terms of the GNU Lesser General Public License as published by\n\n  - the Free Software Foundation, either version 3 of the License, or\n\n  - (at your option) any later version. \\*\n\n  - The  poly network  is distributed in the hope that it will be useful,\n\n  - but WITHOUT ANY WARRANTY; without even the implied warranty of\n\n  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\n  - GNU Lesser General Public License for more details.\n\n  - You should have received a copy of the GNU Lesser General Public License\n\n  - along with The poly network .  If not, see \\\u003c[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/)\u003e.\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\n\\*\n\n  - Allows the managing of multiple tokens \\*\n  - Token1    x       0\n  - Token1    x       10\n  - Token2    y       5 \\* \\*\n\n\\*\n\n  - Allows the managing of multiple tokens \\*\n  - Token1    x       0\n  - Token1    x       10\n  - Token2    y       5 \\* \\*\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\nmanage\\_assets is a chaincode that contains all the code related to asset management operations (e.g., Lock, Unlock, Claim) and any related utility functions\n\n///////////////////////////////////////////\n\n\tTHE BLOCKCHAIN PKI EXPERIMENT     ////\n\n/////////////////////////////////////////\n\n\tThis is the fabpki, a chaincode that implements a Public Key Infrastructure (PKI)\n\tfor measuring instruments. It runs in Hyperledger Fabric 1.4.\n\tHe was created as part of the PKI Experiment. You can invoke its methods\n\tto store measuring instruments public keys in the ledger, and also to verify\n\tdigital signatures that are supposed to come from these instruments.\n\n\t@author: Wilson S. Melo Jr.\n\t@date: Oct/2019\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\n\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\n  - Código de smart contract correspondiente al proyecto de grado\n  - Álvaro Miguel Salinas Dockar\n  - Universidad Católica Boliviana \"San Pablo\"\n  - Ingeniería Mecatrónica\n  - La Paz - Bolivia, 2020 \\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\nhandleExternalRequest contains the chaincode function to process an interop request coming from a remote network\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\nSPDX-FileCopyrightText: 2021 GSMA and all contributors. SPDX-License-Identifier: Apache-2.0\n\nChaincode POC\n\n  - hybrid approach\n\n  - offchain data storage\n\n  - hidden communication on chain (only partners can derive storage location)\n\n  - hlf composite keys for storage\n\n    Please see offchain\\_test.go for an example workflow with mocked rest interface.\n\n\\*\n\n  - This implements the ERC20 standard token\n  - [https://theethereum.wiki/w/index.php/ERC20\\_Token\\_Standard](https://theethereum.wiki/w/index.php/ERC20_Token_Standard)\n  - The ERC20 standard is used for defining tokens in Ethereum. This is an implementation\n  - of the same standard on Fabric. \\*\n\nmanage\\_assets is a chaincode that contains all the code related to asset management operations (e.g., Lock, Unlock, Claim) and any related utility functions\n\n\\*\n\n  - Unit test file for calc.go\n\n  - Demonstrates the use of MockStub for creating units tests\n\n  - Copyright (C) 2020 The poly network Authors\n\n  - This file is part of The poly network library. \\*\n\n  - The  poly network  is free software: you can redistribute it and/or modify\n\n  - it under the terms of the GNU Lesser General Public License as published by\n\n  - the Free Software Foundation, either version 3 of the License, or\n\n  - (at your option) any later version. \\*\n\n  - The  poly network  is distributed in the hope that it will be useful,\n\n  - but WITHOUT ANY WARRANTY; without even the implied warranty of\n\n  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\n  - GNU Lesser General Public License for more details.\n\n  - You should have received a copy of the GNU Lesser General Public License\n\n  - along with The poly network .  If not, see \\\u003c[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/)\u003e.\n\ntest contains the stubs required for counterfeiter to generate the mocks used for tests\n\nThe mocks are created by running \\`go generate ./...\\` as described in the counterfeiter readme\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\n\\*\n\n  - This implements the ERC20 standard token\n  - [https://theethereum.wiki/w/index.php/ERC20\\_Token\\_Standard](https://theethereum.wiki/w/index.php/ERC20_Token_Standard)\n  - The ERC20 standard is used for defining tokens in Ethereum. This is an implementation\n  - of the same standard on Fabric. \\*\n\n\\*\n\n  - This implements the ERC20 standard token\n  - [https://theethereum.wiki/w/index.php/ERC20\\_Token\\_Standard](https://theethereum.wiki/w/index.php/ERC20_Token_Standard)\n  - The ERC20 standard is used for defining tokens in Ethereum. This is an implementation\n  - of the same standard on Fabric. \\*\n\n\\*\n\n  - Unit test file for calc.go\n  - Demonstrates the use of MockStub for creating units tests\n\n\\*\n\n  - Unit test file for calc.go\n  - Demonstrates the use of MockStub for creating units tests\n\norigin\\_machining.go\n\nPackage shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.\n\n///////////////////////////////////////////\n\n\tTHE BLOCKCHAIN PKI EXPERIMENT     ////\n\n/////////////////////////////////////////\n\n\tThis is the fabpki, a chaincode that implements a Public Key Infrastructure (PKI)\n\tfor measuring instruments. It runs in Hyperledger Fabric 1.4.\n\tHe was created as part of the PKI Experiment. You can invoke its methods\n\tto store measuring instruments public keys in the ledger, and also to verify\n\tdigital signatures that are supposed to come from these instruments.\n\n\t@author: Wilson S. Melo Jr.\n\t@date: Oct/2019\n\nThis chaincode calls the token/v5 This is to JUST demonstrate the invoke mechanism This cc will act as a proxy\n\n///////////////////////////////////////////\n\n\tTHE BLOCKCHAIN PKI EXPERIMENT     ////\n\n/////////////////////////////////////////\n\n\tThis is the fabpki, a chaincode that implements a Public Key Infrastructure (PKI)\n\tfor measuring instruments. It runs in Hyperledger Fabric 1.4.\n\tHe was created as part of the PKI Experiment. You can invoke its methods\n\tto store measuring instruments public keys in the ledger, and also to verify\n\tdigital signatures that are supposed to come from these instruments.\n\n\t@author: Wilson S. Melo Jr.\n\t@date: Oct/2019\n\nPackage router provides base router for using in chaincode Invoke function\n\n  - Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. \\*\n  - Licensed under the Apache License, Version 2.0 (the \"License\");\n  - you may not use this file except in compliance with the License.\n  - You may obtain a copy of the License at\n  - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n  - Unless required by applicable law or agreed to in writing, software\n  - distributed under the License is distributed on an \"AS IS\" BASIS,\n  - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  - See the License for the specific language governing permissions and\n  - limitations under the License. \\*\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\n\\*\n\n\t*\n\t* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.\n\t*\n\n\\*\n\n\t*\n\t* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.\n\t*\n\n\t*  Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved.\n\t*\n\t*  Licensed under the Apache License, Version 2.0 (the \"License\");\n\t*  you may not use this file except in compliance with the License.\n\t*  You may obtain a copy of the License at\n\t*     http://www.apache.org/licenses/LICENSE-2.0\n\t*  Unless required by applicable law or agreed to in writing, software\n\t*  distributed under the License is distributed on an \"AS IS\" BASIS,\n\t*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t*  See the License for the specific language governing permissions and\n\t*  limitations under the License.\n\t*\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\n\\*\n\n\t*\n\t* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.\n\t*\n\n\\# -\\*- coding: utf-8 -\\*- # @Author : joker # @Time : 2020-03-26 13:23 # @File : demo\\_chaincode.go # @Description : # @Attention :\n\nThis chaincode calls the token/v5 This is to JUST demonstrate the invoke mechanism This cc will act as a proxy\n\nThis chaincode calls the token/v5 This is to JUST demonstrate the invoke mechanism This cc will act as a proxy\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nDeprecated: ShimTest will be  removed in a future release. Future development should make use of the ChaincodeStub Interface for generating mocks\n\n\\*\n\n  - Shows how the aggregattion functions may be implemented \\*\n\nPackage cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. The configuration transactions arrive from the ordering service to the committer who calls this chaincode. The chaincode also provides peer configuration services such as joining a chain or getting configuration data.\n\nPackage shimtest provides a mock of the ChaincodeStubInterface for unit testing chaincode.\n\nPackage kalpsdk provides a set of APIs for developing applications on the Kalptantra blockchain network. It aims to simplify the process of interacting with the blockchain network and offers a range of functionalities to enhance the development experience.\n\nThe kalpsdk package aims to provide developers with a streamlined and efficient development experience when building applications on the Kalptantra blockchain network. By offering a range of convenient functionalities and integrating with existing Hyperledger Fabric packages, it simplifies the implementation of smart contracts and interaction with the blockchain network.\n\nNote: This overview provides a high-level description of the kalpsdk package and its main components. For detailed information on specific types, methods, and usage examples, please refer to the package documentation and code comments.\n\nSPDX-FileCopyrightText: 2021 GSMA and all contributors. SPDX-License-Identifier: Apache-2.0\n\nChaincode POC\n\n  - hybrid approach\n\n  - offchain data storage\n\n  - hidden communication on chain (only partners can derive storage location)\n\n  - hlf composite keys for storage\n\n    Please see offchain\\_test.go for an example workflow with mocked rest interface.\n\nCopyright 2023 The Bestchains Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nmanage\\_assets is a chaincode that contains all the code related to asset management operations (e.g., Lock, Unlock, Claim) and any related utility functions\n\nSPDX-FileCopyrightText: 2021 GSMA and all contributors. SPDX-License-Identifier: Apache-2.0\n\nSPDX-FileCopyrightText: 2021 GSMA and all contributors. SPDX-License-Identifier: Apache-2.0\n\nmanage\\_assets is a chaincode that contains all the code related to asset management operations (e.g., Lock, Unlock, Claim) and any related utility functions\n\nhandleExternalRequest contains the chaincode function to process an interop request coming from a remote network\n\naccesscontrolcc contains all the code related to the AccessControlPolicy struct, including CRUD operations and any related verification functions\n\n\\* \\* \tCopyright CONUN KOREA. All Rights Reserved \\*\n\nSPDX-License-Identifier: MIT\n\nSPDX-License-Identifier: MIT\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nPackage contract provides a sample smart contract. it uses util package to interact with the state database it also uses mock package to quickly test the solution by connecting to a remote couchDB instance.\n\nmanage\\_assets is a chaincode that contains all the code related to asset management operations (e.g., Lock, Unlock, Claim) and any related utility functions\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\ntest contains the stubs required for counterfeiter to generate the mocks used for tests\n\nThe mocks are created by running \\`go generate ./...\\` as described in the counterfeiter readme\n\nPackage handler take request from the smart contract API and pass the DTO object to the service layer.\n\nSPDX-FileCopyrightText: 2021 GSMA and all contributors. SPDX-License-Identifier: Apache-2.0\n\nmanage\\_assets is a chaincode that contains all the code related to asset management operations (e.g., Lock, Unlock, Claim) and any related utility functions\n\nCopyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0\n\n## Constants\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tCODESUCCESS    string = \"200\"\n\tCODERROR       string = \"500\"\n\tCODEFATALERROR string = \"800\"\n)\n```\n\n```go\nconst (\n\n\t// INSTALL install command\n\tINSTALL = \"install\"\n\n\t// DEPLOY deploy command\n\tDEPLOY = \"deploy\"\n\n\t// UPGRADE upgrade chaincode\n\tUPGRADE = \"upgrade\"\n\n\t// CCEXISTS get chaincode\n\tCCEXISTS = \"getid\"\n\n\t// CHAINCODEEXISTS get chaincode alias\n\tCHAINCODEEXISTS = \"ChaincodeExists\"\n\n\t// GETDEPSPEC get ChaincodeDeploymentSpec\n\tGETDEPSPEC = \"getdepspec\"\n\n\t// GETDEPLOYMENTSPEC get ChaincodeDeploymentSpec alias\n\tGETDEPLOYMENTSPEC = \"GetDeploymentSpec\"\n\n\t// GETCCDATA get ChaincodeData\n\tGETCCDATA = \"getccdata\"\n\n\t// GETCHAINCODEDATA get ChaincodeData alias\n\tGETCHAINCODEDATA = \"GetChaincodeData\"\n\n\t// GETCHAINCODES gets the instantiated chaincodes on a channel\n\tGETCHAINCODES = \"getchaincodes\"\n\n\t// GETCHAINCODESALIAS gets the instantiated chaincodes on a channel\n\tGETCHAINCODESALIAS = \"GetChaincodes\"\n\n\t// GETINSTALLEDCHAINCODES gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODES = \"getinstalledchaincodes\"\n\n\t// GETINSTALLEDCHAINCODESALIAS gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODESALIAS = \"GetInstalledChaincodes\"\n\n\t// GETCOLLECTIONSCONFIG gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIG = \"GetCollectionsConfig\"\n\n\t// GETCOLLECTIONSCONFIGALIAS gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIGALIAS = \"getcollectionsconfig\"\n)\n```\n\n```go\nconst (\n\tPending  status = iota\n\tAccepted status = iota\n\tRejected status = iota\n)\n```\n\n```go\nconst (\n\tImporterBalance = \"ImporterBalance\"\n\tExporterBalance = \"ExporterBalance\"\n)\n```\n\n```go\nconst (\n\tGetInnerMetaMethod                   = \"getInnerMeta\"       // get last index of each source chain executing tx\n\tGetOutMetaMethod                     = \"getOuterMeta\"       // get last index of each receiving chain crosschain event\n\tGetCallbackMetaMethod                = \"getCallbackMeta\"    // get last index of each receiving chain callback tx\n\tGetDstRollbackMeta                   = \"getDstRollbackMeta\" // get last index of each receiving chain dst roll back tx\n\tGetLocalServices                     = \"getLocalServices\"\n\tGetChainId                           = \"getChainId\"\n\tGetInMessageMethod                   = \"getInMessage\"\n\tGetOutMessageMethod                  = \"getOutMessage\"\n\tPollingEventMethod                   = \"pollingEvent\"\n\tInvokeInterchainMethod               = \"invokeInterchain\"\n\tInvokeInterchainsMethod              = \"invokeInterchains\"\n\tInvokeReceiptMethod                  = \"invokeReceipt\"\n\tInvokeIndexUpdateMethod              = \"invokeIndexUpdate\"\n\tInvokeGetDirectTransactionMetaMethod = \"getDirectTransactionMeta\"\n\tInvokerGetAppchainInfoMethod         = \"getAppchainInfo\"\n\tFabricType                           = \"fabric\"\n)\n```\n\n```go\nconst (\n\n\t// INSTALL install command\n\tINSTALL = \"install\"\n\n\t// DEPLOY deploy command\n\tDEPLOY = \"deploy\"\n\n\t// UPGRADE upgrade chaincode\n\tUPGRADE = \"upgrade\"\n\n\t// CCEXISTS get chaincode\n\tCCEXISTS = \"getid\"\n\n\t// CHAINCODEEXISTS get chaincode alias\n\tCHAINCODEEXISTS = \"ChaincodeExists\"\n\n\t// GETDEPSPEC get ChaincodeDeploymentSpec\n\tGETDEPSPEC = \"getdepspec\"\n\n\t// GETDEPLOYMENTSPEC get ChaincodeDeploymentSpec alias\n\tGETDEPLOYMENTSPEC = \"GetDeploymentSpec\"\n\n\t// GETCCDATA get ChaincodeData\n\tGETCCDATA = \"getccdata\"\n\n\t// GETCHAINCODEDATA get ChaincodeData alias\n\tGETCHAINCODEDATA = \"GetChaincodeData\"\n\n\t// GETCHAINCODES gets the instantiated chaincodes on a channel\n\tGETCHAINCODES = \"getchaincodes\"\n\n\t// GETCHAINCODESALIAS gets the instantiated chaincodes on a channel\n\tGETCHAINCODESALIAS = \"GetChaincodes\"\n\n\t// GETINSTALLEDCHAINCODES gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODES = \"getinstalledchaincodes\"\n\n\t// GETINSTALLEDCHAINCODESALIAS gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODESALIAS = \"GetInstalledChaincodes\"\n\n\t// GETCOLLECTIONSCONFIG gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIG = \"GetCollectionsConfig\"\n\n\t// GETCOLLECTIONSCONFIGALIAS gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIGALIAS = \"getcollectionsconfig\"\n)\n```\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-MataKuliah with id '%s' already exists.\"\n\tER13        = \"ER13-MataKuliah with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tVersion          = \"v1.0.0\"\n\tNilFlag          = \"null\"\n\tCallTypeQuery    = \"0\"\n\tCallTypeInvoke   = \"1\"\n\tCallTypeGetBlock = \"2\"\n\n\tChannelKey         = \"channel\"\n\tCurrentIndexKey    = \"current_index\"\n\tIncrementKey       = \"increment\"\n\tRequestsKey        = \"request_%s\"          // %s: uid\n\tCallbackResultsKey = \"callback_results_%s\" // %s: uid\n)\n```\n\n```go\nconst (\n\tAESKeyLength = 32 // AESKeyLength is the default AES key length\n\tNonceSize    = 24 // NonceSize is the default NonceSize\n)\n```\n\n```go\nconst (\n\tVersion            = \"v1.0.0\"\n\tRevertFlag         = \"_revert\"\n\tSeparator          = \".\"\n\tNullFlag           = \"null\"\n\tSuccessFlag        = \"success\"\n\tXAStatusProcessing = \"processing\"\n\tXAStatusCommitted  = \"committed\"\n\tXAStatusRolledback = \"rolledback\"\n\n\tXATransactionListLenKey = \"XATransactionLen\"\n\tXATaskHeadKey           = \"XATransactionTaskHead\"\n\tChannelKey              = \"Channel\"\n\tLockContractKey         = \"Contract-%s\"           // %s: chaincode name\n\tXATransactionKey        = \"XATransaction-%s-info\" // %s: xa transaction id\n\tXATransactionTaskKey    = \"XATransaction-%d-task\" // %d: index\n)\n```\n\n```go\nconst (\n\tGetChainInfo       string = \"GetChainInfo\"\n\tGetBlockByNumber   string = \"GetBlockByNumber\"\n\tGetBlockByHash     string = \"GetBlockByHash\"\n\tGetTransactionByID string = \"GetTransactionByID\"\n\tGetBlockByTxID     string = \"GetBlockByTxID\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tVersion        = \"v1.0.0\"\n\tNilFlag        = \"null\"\n\tCallTypeQuery  = \"0\"\n\tCallTypeInvoke = \"1\"\n\n\tChannelKey         = \"channel\"\n\tCurrentIndexKey    = \"current_index\"\n\tIncrementKey       = \"increment\"\n\tRequestsKey        = \"request_%s\"          // %s: uid\n\tCallbackResultsKey = \"callback_results_%s\" // %s: uid\n)\n```\n\n```go\nconst (\n\tJoinChain            string = \"JoinChain\"\n\tJoinChainBySnapshot  string = \"JoinChainBySnapshot\"\n\tJoinBySnapshotStatus string = \"JoinBySnapshotStatus\"\n\tGetConfigBlock       string = \"GetConfigBlock\"\n\tGetChannelConfig     string = \"GetChannelConfig\"\n\tGetChannels          string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-Transkrip with id '%s' already exists.\"\n\tER13        = \"ER13-Transkrip with id '%s' doesn't exist.\"\n\tER14        = \"ER14-Transkrip with id '%s' no longer require approval.\"\n\tER15        = \"ER15-Transkrip with id '%s' already approved by PTK with id '%s'.\"\n\tER16        = \"ER16-Transkrip with id '%s' cannot be approved by PTK with id '%s' in this step.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER36        = \"ER36-Failed parsing string to float: %v.\"\n\tER37        = \"ER37-Failed to query another chaincode (%s): %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tAcademicChannel string = \"academicchannel\"\n\tSMSContract     string = \"smscontract\"\n)\n```\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// QueryApprovedChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query all approved chaincode definitions for the user's own org in a channel\n\tQueryApprovedChaincodeDefinitionsFuncName = \"QueryApprovedChaincodeDefinitions\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tFabricChainID             = \"poly_fabric_chain_id\"\n\tPolyConsensusPeersKey     = \"poly_consensus_peers\"\n\tPolyGenesisHeader         = \"poly_genesis_header\"\n\tCrossChainManagerDeployer = \"ccmdepolyer\"\n\tPolyEpochHeight           = \"poly_epoch_height\"\n\tToPolyTx                  = \"to_poly\"\n\tFromPolyTx                = \"from_poly\"\n\tCallerLimitKey            = \"ccm_caller_key\"\n)\n```\n\n```go\nconst (\n\tAESKeyLength = 32 // AESKeyLength is the default AES key length\n\tNonceSize    = 24 // NonceSize is the default NonceSize\n)\n```\n\n```go\nconst (\n\tJoinChain            string = \"JoinChain\"\n\tJoinChainBySnapshot  string = \"JoinChainBySnapshot\"\n\tJoinBySnapshotStatus string = \"JoinBySnapshotStatus\"\n\tGetConfigBlock       string = \"GetConfigBlock\"\n\tGetChannelConfig     string = \"GetChannelConfig\"\n\tGetChannels          string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tJoinChain            string = \"JoinChain\"\n\tJoinChainBySnapshot  string = \"JoinChainBySnapshot\"\n\tJoinBySnapshotStatus string = \"JoinBySnapshotStatus\"\n\tGetConfigBlock       string = \"GetConfigBlock\"\n\tGetChannelConfig     string = \"GetChannelConfig\"\n\tGetChannels          string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tJoinChain            string = \"JoinChain\"\n\tJoinChainBySnapshot  string = \"JoinChainBySnapshot\"\n\tJoinBySnapshotStatus string = \"JoinBySnapshotStatus\"\n\tGetConfigBlock       string = \"GetConfigBlock\"\n\tGetChannelConfig     string = \"GetChannelConfig\"\n\tGetChannels          string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tGetChainInfo       string = \"GetChainInfo\"\n\tGetBlockByNumber   string = \"GetBlockByNumber\"\n\tGetBlockByHash     string = \"GetBlockByHash\"\n\tGetTransactionByID string = \"GetTransactionByID\"\n\tGetBlockByTxID     string = \"GetBlockByTxID\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tTransferEventKey = \"transferEvent\"\n\tApprovalEventKey = \"approvalEvent\"\n)\n```\n\n```go\nconst (\n\tJoinChain      string = \"JoinChain\"\n\tGetConfigBlock string = \"GetConfigBlock\"\n\tGetChannels    string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tCPABE_PUBLIC_KEY = \"public_key\"\n\tCPABE_MASTER_KEY = \"master_key\"\n)\n```\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tChannel              = `my_channel`\n\tCarsChaincode        = `cars`\n\tCarsProxyChaincode   = `cars_proxy`\n\tTxIsolationChaincode = `tx_isolation`\n)\n```\n\n```go\nconst (\n\tAESKeyLength = 32 // AESKeyLength is the default AES key length\n\tNonceSize    = 24 // NonceSize is the default NonceSize\n)\n```\n\n```go\nconst (\n\tGetChainInfo       string = \"GetChainInfo\"\n\tGetBlockByNumber   string = \"GetBlockByNumber\"\n\tGetBlockByHash     string = \"GetBlockByHash\"\n\tGetTransactionByID string = \"GetTransactionByID\"\n\tGetBlockByTxID     string = \"GetBlockByTxID\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-MataKuliah with id '%s' already exists.\"\n\tER13        = \"ER13-MataKuliah with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tOK    = 200\n\tERROR = 500\n)\n```\nDefine Status codes for the response\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-SatuanPendidikan with id '%s' already exists.\"\n\tER13        = \"ER13-SatuanPendidikan with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-NilaiPesertaDidik with id '%s' already exists.\"\n\tER13        = \"ER13-NilaiPesertaDidik with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER36        = \"ER36-Failed parsing string to float: %v.\"\n\tER37        = \"ER37-Failed to query another chaincode (%s): %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tAcademicChannel string = \"academicchannel\"\n\tPDContract      string = \"pdcontract\"\n\tKLSContract     string = \"klscontract\"\n)\n```\n\n```go\nconst (\n\tNEXTSHOWID   = \"NEXT_SHOW_ID\"\n\tNEXTTICKETID = \"NEXT_TICKET_ID\"\n)\n```\nNextShowID and NextTicketId\n\n```go\nconst (\n\tSHOW   = \"SHOW\"\n\tTICKET = \"TICKET\"\n\tWINDOW = \"WINDOW\"\n\tSODA   = \"SODA\"\n)\n```\ndoctypes\n\n```go\nconst (\n\tInvokeFunction            = \"invoke\"\n\tQueryPublicParamsFunction = \"queryPublicParams\"\n\tAddCertifierFunction      = \"addCertifier\"\n\tQueryTokensFunctions      = \"queryTokens\"\n\tAreTokensSpent            = \"areTokensSpent\"\n\n\tPublicParamsPathVarEnv = \"PUBLIC_PARAMS_FILE_PATH\"\n)\n```\n\n```go\nconst (\n\tJoinChain      string = \"JoinChain\"\n\tGetConfigBlock string = \"GetConfigBlock\"\n\tGetChannels    string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-Transkrip with id '%s' already exists.\"\n\tER13        = \"ER13-Transkrip with id '%s' doesn't exist.\"\n\tER14        = \"ER14-Transkrip with id '%s' no longer require approval.\"\n\tER15        = \"ER15-Transkrip with id '%s' already approved by PTK with id '%s'.\"\n\tER16        = \"ER16-Transkrip with id '%s' cannot be approved by PTK with id '%s' in this step.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER36        = \"ER36-Failed parsing string to float: %v.\"\n\tER37        = \"ER37-Failed to query another chaincode (%s): %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tAcademicChannel string = \"academicchannel\"\n\tSMSContract     string = \"smscontract\"\n)\n```\n\n```go\nconst (\n\n\t// INSTALL install command\n\tINSTALL = \"install\"\n\n\t// DEPLOY deploy command\n\tDEPLOY = \"deploy\"\n\n\t// UPGRADE upgrade chaincode\n\tUPGRADE = \"upgrade\"\n\n\t// CCEXISTS get chaincode\n\tCCEXISTS = \"getid\"\n\n\t// CHAINCODEEXISTS get chaincode alias\n\tCHAINCODEEXISTS = \"ChaincodeExists\"\n\n\t// GETDEPSPEC get ChaincodeDeploymentSpec\n\tGETDEPSPEC = \"getdepspec\"\n\n\t// GETDEPLOYMENTSPEC get ChaincodeDeploymentSpec alias\n\tGETDEPLOYMENTSPEC = \"GetDeploymentSpec\"\n\n\t// GETCCDATA get ChaincodeData\n\tGETCCDATA = \"getccdata\"\n\n\t// GETCHAINCODEDATA get ChaincodeData alias\n\tGETCHAINCODEDATA = \"GetChaincodeData\"\n\n\t// GETCHAINCODES gets the instantiated chaincodes on a channel\n\tGETCHAINCODES = \"getchaincodes\"\n\n\t// GETCHAINCODESALIAS gets the instantiated chaincodes on a channel\n\tGETCHAINCODESALIAS = \"GetChaincodes\"\n\n\t// GETINSTALLEDCHAINCODES gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODES = \"getinstalledchaincodes\"\n\n\t// GETINSTALLEDCHAINCODESALIAS gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODESALIAS = \"GetInstalledChaincodes\"\n\n\t// GETCOLLECTIONSCONFIG gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIG = \"GetCollectionsConfig\"\n\n\t// GETCOLLECTIONSCONFIGALIAS gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIGALIAS = \"getcollectionsconfig\"\n)\n```\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tCREATE_USR                      string = \"CreateUser\"\n\tTRANSFER_NFT                    string = \"TransferNft\"\n\tCREATE_AUCTION_REQUEST          string = \"InitAuction\"\n\tOPEN_AUCTION                    string = \"OpenAuction\"\n\tCLOSE_AUCTION                   string = \"CloseAuction\"\n\tBUY_IT_NOW                      string = \"BuyItNow\"\n\tGET_INIT_AUCTION_REQUESTS       string = \"GetInitAuctionRequests\"\n\tGET_INIT_AUCTION_REQUESTS_BY_AH string = \"GetInitAuctionRequestsByAuctionHouse\"\n\tGET_OPEN_AUCTION_REQUESTS       string = \"GetOpenAuctionRequests\"\n\tGET_OPEN_AUCTION_REQUESTS_BY_AH string = \"GetOpenAuctionRequestsByAuctionHouse\"\n\tGET_AUCTION_ITEMS_BY_USER       string = \"GetAuctionItemsByUser\"\n\tPOST_BID                        string = \"PostBid\"\n\tGET_BIDS_BY_AUCTION_ID          string = \"GetBidsByAuctionID\"\n\tGET_HIGHEST_BID                 string = \"GetHighestBid\"\n\tGET_BID_BY_ID                   string = \"GetBidByID\"\n\t// GET_ITEM_BY_ID            string = \"GetItemByID\"\n\t// GET_NFT_BY_ID           string = \"GetNftByID\"\n\tGET_AUCTION_BY_ID       string = \"GetAuctionByID\"\n\tGET_ITEM_HISTORY        string = \"GetItemHistory\"\n\tGET_USER_DETAILS        string = \"GetUserDetails\"\n\tGET_NFT_LIST_BY_USER    string = \"GetNftListByUser\"\n\tGET_NFT_LIST_BY_ITEM_ID string = \"GetNftListByItemId\"\n\n\tQItemObject string = \"queryItemObject\"\n\tRItemObject string = \"recordItemObject\"\n\n\tQNftObject string = \"queryNftObject\"\n\t// RNftObject        string = \"recordNftObject\"\t\t\t// NFT object is internally created at the time of adding new item\n\t// UNftObject        string = \"updateNftObject\"\t\t\t// NFT object cannot be updated. It can only be transfered or deleted\n\tDNftObject        string = \"deleteNftObject\"\n\tQNftObjectL       string = \"queryNftObjectList\"\n\tQNftObjectHistory string = \"queryNftObjectHistory\"\n)\n```\n/////////////////////////////////////////////////// Constant for All function name that will be called from invoke ///////////////////////////////////////////////////\n\n```go\nconst (\n\tNameKey   = \"name\"\n\tSymbolKey = \"symbol\"\n\n\tURIKey = \"uri\"\n\n\tSupplyPrefix   = \"supply~id\"\n\tBalancePrefix  = \"balance~account~id\"\n\tApprovalPrefix = \"approval~account~operator\"\n)\n```\n\n```go\nconst (\n\t//默认\n\tCERTIFICATE_TYPE_0 int = 0\n\t//身份证\n\tCERTIFICATE_TYPE_1 int = 1\n\t//港澳台证\n\tCERTIFICATE_TYPE_2 int = 2\n\t//护照\n\tCERTIFICATE_TYPE_3 int = 3\n\t//军官证\n\tCERTIFICATE_TYPE_4 int = 4\n\t//统一社会信用代码\n\tCERTIFICATE_TYPE_5 int = 5\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-PesertaDidik with id '%s' already exists.\"\n\tER13        = \"ER13-PesertaDidik with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER36        = \"ER36-Failed parsing string to float: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tBELUMLULUS int = 0\n\tLULUS          = 1\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-PendidikTenagaKependidikan with id '%s' already exists.\"\n\tER13        = \"ER13-PendidikTenagaKependidikan with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tJoinChain      string = \"JoinChain\"\n\tGetConfigBlock string = \"GetConfigBlock\"\n\tGetChannels    string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\tJoinChain      string = \"JoinChain\"\n\tGetConfigBlock string = \"GetConfigBlock\"\n\tGetChannels    string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tGetChainInfo       string = \"GetChainInfo\"\n\tGetBlockByNumber   string = \"GetBlockByNumber\"\n\tGetBlockByHash     string = \"GetBlockByHash\"\n\tGetTransactionByID string = \"GetTransactionByID\"\n\tGetBlockByTxID     string = \"GetBlockByTxID\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\t// LifecycleNamespace is the namespace in the statedb where lifecycle\n\t// information is stored\n\tLifecycleNamespace = \"_lifecycle\"\n\n\t// InstallChaincodeFuncName is the chaincode function name used to install\n\t// a chaincode\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\t// QueryInstalledChaincodeFuncName is the chaincode function name used to\n\t// query an installed chaincode\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\t// QueryInstalledChaincodesFuncName is the chaincode function name used to\n\t// query all installed chaincodes\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\t// ApproveChaincodeDefinitionForMyOrgFuncName is the chaincode function name\n\t// used to approve a chaincode definition for execution by the user's own org\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\t// QueryApprovedChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a approved chaincode definition for the user's own org\n\tQueryApprovedChaincodeDefinitionFuncName = \"QueryApprovedChaincodeDefinition\"\n\n\t// CheckCommitReadinessFuncName is the chaincode function name used to check\n\t// a specified chaincode definition is ready to be committed. It returns the\n\t// approval status for a given definition over a given set of orgs\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\t// CommitChaincodeDefinitionFuncName is the chaincode function name used to\n\t// 'commit' (previously 'instantiate') a chaincode in a channel.\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionFuncName is the chaincode function name used to\n\t// query a committed chaincode definition in a channel.\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\t// QueryChaincodeDefinitionsFuncName is the chaincode function name used to\n\t// query the committed chaincode definitions in a channel.\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\t// KeyField attribute used in query response of key-value pairs\n\tKeyField = \"key\"\n\t// ValueField attribute used in query response of key-value pairs\n\tValueField = \"value\"\n\t// FabricStub is the name of flow property for passing chaincode stub to activities\n\tFabricStub = \"_chaincode_stub\"\n)\n```\n\n```go\nconst (\n\n\t// INSTALL install command\n\tINSTALL = \"install\"\n\n\t// DEPLOY deploy command\n\tDEPLOY = \"deploy\"\n\n\t// UPGRADE upgrade chaincode\n\tUPGRADE = \"upgrade\"\n\n\t// CCEXISTS get chaincode\n\tCCEXISTS = \"getid\"\n\n\t// CHAINCODEEXISTS get chaincode alias\n\tCHAINCODEEXISTS = \"ChaincodeExists\"\n\n\t// GETDEPSPEC get ChaincodeDeploymentSpec\n\tGETDEPSPEC = \"getdepspec\"\n\n\t// GETDEPLOYMENTSPEC get ChaincodeDeploymentSpec alias\n\tGETDEPLOYMENTSPEC = \"GetDeploymentSpec\"\n\n\t// GETCCDATA get ChaincodeData\n\tGETCCDATA = \"getccdata\"\n\n\t// GETCHAINCODEDATA get ChaincodeData alias\n\tGETCHAINCODEDATA = \"GetChaincodeData\"\n\n\t// GETCHAINCODES gets the instantiated chaincodes on a channel\n\tGETCHAINCODES = \"getchaincodes\"\n\n\t// GETCHAINCODESALIAS gets the instantiated chaincodes on a channel\n\tGETCHAINCODESALIAS = \"GetChaincodes\"\n\n\t// GETINSTALLEDCHAINCODES gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODES = \"getinstalledchaincodes\"\n\n\t// GETINSTALLEDCHAINCODESALIAS gets the installed chaincodes on a peer\n\tGETINSTALLEDCHAINCODESALIAS = \"GetInstalledChaincodes\"\n\n\t// GETCOLLECTIONSCONFIG gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIG = \"GetCollectionsConfig\"\n\n\t// GETCOLLECTIONSCONFIGALIAS gets the collections config for a chaincode\n\tGETCOLLECTIONSCONFIGALIAS = \"getcollectionsconfig\"\n)\n```\n\n```go\nconst (\n\tJoinChain      string = \"JoinChain\"\n\tGetConfigBlock string = \"GetConfigBlock\"\n\tGetChannels    string = \"GetChannels\"\n)\n```\nThese are function names from Invoke first parameter\n\n```go\nconst (\n\t// FnShowMaxLength limit to show fn name (args[0]) in debug and error messages\n\tFnShowMaxLength = 100\n\n\tPeerDefaultDialTimeout    = 5 * time.Second\n\tPeerDefaultEndorseTimeout = 5 * time.Second\n)\n```\n\n```go\nconst (\n\t//金融机构链码\n\tCHAINCODE_NAME_FINANCIAL_ORG string = \"financialCC\"\n\t//金融机构共管账户链码\n\tCHAINCODE_NAME_FINANCIAL_MANAGED_ACCOUNT string = \"financialManagedAccountCC\"\n\t//金融机构一般账户链码\n\tCHAINCODE_NAME_FINANCIAL_GENERAL_ACCOUNT string = \"financialGeneralAccountCC\"\n\t//下发机构链码\n\tCHAINCODE_NAME_ISSUE_ORG string = \"issueCC\"\n\t//分销商机构链码\n\tCHAINCODE_NAME_AGENCY_ORG string = \"agencyCC\"\n\t//零售商机构链码\n\tCHAINCODE_NAME_RETAILER_ORG string = \"retailerCC\"\n)\n```\n链码名称\n\n```go\nconst (\n\tPARKING_SLOT_STATUS_FREE uint32 = iota\n\tPARKING_SLOT_STATUS_OCCUPIED\n)\n```\n\n```go\nconst (\n\tSTATE_ON_SALE     = \"0000\"\n\tSTATE_OFF_SALE    = \"0001\"\n\tSTATE_BE_BAUGHT   = \"0002\"\n\tSTATE_BE_RETURNED = \"0003\"\n)\n```\n\n```go\nconst (\n\tSystemChannelType      = \"system\"\n\tOpsChannelType         = \"ops\"\n\tApplicationChannelType = \"application\"\n\tDisableChannelType     = \"disable\"\n)\n```\nChannel types\n\n```go\nconst (\n\t// client types\n\tTendermint  = exported.Tendermint\n\tSoloMachine = exported.Solomachine\n\tFabric      = fabrictypes.Fabric\n\n\t// Default params constants used to create a TM client\n\tTrustingPeriod     time.Duration = time.Hour * 24 * 7 * 2\n\tUnbondingPeriod    time.Duration = time.Hour * 24 * 7 * 3\n\tMaxClockDrift      time.Duration = time.Second * 10\n\tDefaultDelayPeriod uint64        = 0\n\n\tChannelTransferVersion = ibctransfertypes.Version\n\n\tConnectionIDPrefix = \"conn\"\n\tChannelIDPrefix    = \"chan\"\n\n\tTransferPort = ibctransfertypes.ModuleName\n\tMockPort     = mock.ModuleName\n)\n```\n\n```go\nconst (\n\tMsgIncr = \"incr\"\n\tMsgDecr = \"decr\"\n)\n```\n\n```go\nconst (\n\t// OK constant - status code less than 400, endorser will endorse it.\n\t// OK means init or invoke successfully.\n\tOK = 200\n\n\t// ERRORTHRESHOLD constant - status code greater than or equal to 400 will be considered an error and rejected by endorser.\n\tERRORTHRESHOLD = 400\n\n\t// ERROR constant - default error value\n\tERROR = 500\n)\n```\n\n```go\nconst (\n\tOwnableInitializedKey = \"owner~initialized\"\n\tOwnerKey              = \"owner~account\"\n)\n```\n\n```go\nconst (\n\tNFT_Ativo     = iota // 0\n\tNFT_Bloqueado        // 1\n)\n```\n\\-- inicio Definição do enum de status do NFT -- Constatnte utilizada para representar o status do NFT\n\n```go\nconst (\n\tProposed  = \"proposed\"\n\tApproved  = \"approved\"\n\tCommitted = \"committed\"\n)\n```\nStatus for Proposal\n\n```go\nconst (\n\tALL      = \"all\"\n\tMAJORITY = \"majority\"\n)\n```\nCriteria for moving the next task\n\n```go\nconst (\n\tNewProposalEvent         = \"newProposalEvent\"\n\tDeleteProposalEvent      = \"deleteProposalEvent\"\n\tNewVoteEvent             = \"newVoteEvent\"\n\tReadyToUpdateConfigEvent = \"readyToUpdateConfigEvent\"\n\tUpdateConfigEvent        = \"updateConfigEvent\"\n)\n```\nChaincode event names\n\n```go\nconst (\n\tUpdateAction   = \"update\"\n\tCreationAction = \"create\"\n)\n```\nAction types for channel operation\n\n```go\nconst (\n\tCOMMMODITY_STATE_ONSALE   = \"0001\" // 商品待售\n\tCOMMMODITY_STATE_OFFSATE  = \"0002\" // 商品下架\n\tCOMMMODITY_STATE_BEBOUGHT = \"0003\" // 已被购买\n\tCOMMMODITY_STATE_RETURNED = \"0004\" // 商品已被退回\n)\n```\n商品状态码\n\n```go\nconst (\n\tREMAKES_TRADE_BOUGHT = \"Be bought\"\n\tREMAKES_TRADE_RETURN = \"returned\"\n)\n```\nremarks for t\\_trade\n\n```go\nconst (\n\tPREFIX_ID_CUSTOMER      = \"0000\"\n\tPREFIX_ID_BUSSINIESSMAN = \"0001\"\n\tPREFIX_ID_COMMODITY     = \"0002\"\n\tPREFIX_ID_SUPERVISER    = \"0003\"\n\tPREFIX_ID_TRADE         = \"0004\"\n\tPREFIX_ID_ACCOUNT       = \"0005\"\n)\n```\nid prefix\n\n```go\nconst (\n\tACCOUNT_STATE_VALID   = true\n\tACCOUNT_STATE_INVALID = false\n)\n```\naccount state\n\n```go\nconst (\n\tERROR_CODE_MARSHAL        = \"E0001\"\n\tERROR_CODE_ILLEGALID      = \"E0002\" // 数据不合法\n\tERROR_CODE_GETCHAINFAILED = \"E0003\" // 查询链上数据失败\n\tERROR_CODE_EXISTINGDATA   = \"E0004\" // 链上已存在数据\n\tERROR_CODE_PUTCHAINFAILED = \"E0005\"\n\tERROR_CODE_USERINVALID    = \"E0006\" //用户不合法\n\tERROR_CODE_UNEXISTDATA    = \"E0007\" // 链上不存在数据\n)\n```\n错误码定义\n\n```go\nconst (\n\tKeyAssets        = \"assets\"\n\tKeyAuctions      = \"auctions\"\n\tKeyLastAuctionID = \"lastAuction\"\n)\n```\n\n```go\nconst (\n\tSuperAdminRole = \"super~admin~role\"\n\n\tRoleAdminPrefix = \"role~admin\"\n\tRolePrefix      = \"role~account\"\n)\n```\n\n```go\nconst (\n\t//默认\n\tCERTIFICATE_TYPE_0 int = 0\n\t//身份证\n\tCERTIFICATE_TYPE_1 int = 1\n\t//港澳台证\n\tCERTIFICATE_TYPE_2 int = 2\n\t//护照\n\tCERTIFICATE_TYPE_3 int = 3\n\t//军官证\n\tCERTIFICATE_TYPE_4 int = 4\n\t//统一社会信用代码\n\tCERTIFICATE_TYPE_5 int = 5\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-SatuanPendidikan with id '%s' already exists.\"\n\tER13        = \"ER13-SatuanPendidikan with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tApprovalPrefix = \"approval~account~spender\"\n\tBalancePrefix  = \"balance~account~id\"\n)\n```\nDefine objectType names for prefix\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-NilaiPesertaDidik with id '%s' already exists.\"\n\tER13        = \"ER13-NilaiPesertaDidik with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER36        = \"ER36-Failed parsing string to float: %v.\"\n\tER37        = \"ER37-Failed to query another chaincode (%s): %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tAcademicChannel string = \"academicchannel\"\n\tPDContract      string = \"pdcontract\"\n\tKLSContract     string = \"klscontract\"\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-PesertaDidik with id '%s' already exists.\"\n\tER13        = \"ER13-PesertaDidik with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER35        = \"ER35-Failed parsing string to integer: %v.\"\n\tER36        = \"ER36-Failed parsing string to float: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\tBELUMLULUS int = 0\n\tLULUS          = 1\n)\n```\n\n```go\nconst (\n\tER11 string = \"ER11-Incorrect number of arguments. Required %d arguments, but you have %d arguments.\"\n\tER12        = \"ER12-PendidikTenagaKependidikan with id '%s' already exists.\"\n\tER13        = \"ER13-PendidikTenagaKependidikan with id '%s' doesn't exist.\"\n\tER31        = \"ER31-Failed to change to world state: %v.\"\n\tER32        = \"ER32-Failed to read from world state: %v.\"\n\tER33        = \"ER33-Failed to get result from iterator: %v.\"\n\tER34        = \"ER34-Failed unmarshaling JSON: %v.\"\n\tER41        = \"ER41-Access is not permitted with MSDPID '%s'.\"\n\tER42        = \"ER42-Unknown MSPID: '%s'.\"\n)\n```\n\n```go\nconst (\n\t//默认\n\tCERTIFICATE_TYPE_0 int = 0\n\t//身份证\n\tCERTIFICATE_TYPE_1 int = 1\n\t//港澳台证\n\tCERTIFICATE_TYPE_2 int = 2\n\t//护照\n\tCERTIFICATE_TYPE_3 int = 3\n\t//军官证\n\tCERTIFICATE_TYPE_4 int = 4\n\t//统一社会信用代码\n\tCERTIFICATE_TYPE_5 int = 5\n)\n```\n\n```go\nconst (\n\tValidCert = iota\n\tInvalidCert\n\tUnauthedCert\n\tOutdatedCert\n\tRevokedCert\n\tOtherStatus\n)\n```\n\n```go\nconst (\n\tINDEXNAME_ACCOUNT_USER_YEAR_MONTH_ID = \"account~user~year~month~id\"\n\tINDEXNAME_ACCOUNT_USER_ID            = \"account~user~id\"\n)\n```\n\n```go\nconst (\n\t//金融机构链码\n\tCHAINCODE_NAME_FINANCIAL_ORG string = \"financialCC\"\n\t//金融机构共管账户链码\n\tCHAINCODE_NAME_FINANCIAL_MANAGED_ACCOUNT string = \"financialManagedAccountCC\"\n\t//金融机构一般账户链码\n\tCHAINCODE_NAME_FINANCIAL_GENERAL_ACCOUNT string = \"financialGeneralAccountCC\"\n\t//下发机构链码\n\tCHAINCODE_NAME_ISSUE_ORG string = \"issueCC\"\n\t//分销商机构链码\n\tCHAINCODE_NAME_AGENCY_ORG string = \"agencyCC\"\n\t//零售商机构链码\n\tCHAINCODE_NAME_RETAILER_ORG string = \"retailerCC\"\n)\n```\n链码名称\n\n```go\nconst ADMIN string = \"admin\"\n```\nADMIN 管理员 PowerPlant 发电方 PowerUser 用电方\n\n```go\nconst ASSET = \"ASSET\"\n```\n\n```go\nconst (\n\tBALANCE_ERROR = 1\n)\n```\n\n```go\nconst CHAINCODE_NAME = \"trace\"\n```\n\n```go\nconst CHAINCODE_NAME = \"trace\"\n```\n\n```go\nconst CHAINCODE_NAME = \"trace\"\n```\n\n```go\nconst CHAINCODE_NAME_ISSUE_ORG string = \"issueCC\"\n```\n链码名称\n\n```go\nconst CHAINCODE_NAME_ISSUE_ORG string = \"issueCC\"\n```\n链码名称\n\n```go\nconst CHAINCODE_NAME_ISSUE_ORG string = \"issueCC\"\n```\n\n```go\nconst CHANNEL_NAME string = \"mychannel\"\n```\n通道名称\n\n```go\nconst CHANNEL_NAME = \"channel123\"\n```\n\n```go\nconst CHANNEL_NAME string = \"mychannel\"\n```\n通道名称\n\n```go\nconst CHANNEL_NAME string = \"mychannel\"\n```\n通道名称\n\n```go\nconst CHANNEL_NAME string = \"mychannel\"\n```\n\n```go\nconst CHANNEL_NAME = \"channel123\"\n```\n\n```go\nconst CHANNEL_NAME string = \"mychannel\"\n```\n通道名称\n\n```go\nconst CHANNEL_NAME = \"channel123\"\n```\n\n```go\nconst COLLECTION_DISTRIBUTION_RECORD string = \"collectionDistributionRecord\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_DISTRIBUTION_RECORD string = \"collectionDistributionRecord\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_FINANCIAL string = \"collectionFinancial\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_FINANCIAL string = \"collectionFinancial\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_FINANCIAL_GENERAL_ACCOUNT string = \"collectionFinancialGeneralAccount\"\n```\n一般账户私有数据集名称\n\n```go\nconst COLLECTION_INDIVIDUAL string = \"collectionIndividual\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_INDIVIDUAL string = \"collectionIndividual\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_ISSUE string = \"collectionIssue\"\n```\n私有数据集名称\n\n```go\nconst COLLECTION_RETAILER string = \"collectionRetailer\"\n```\n私有数据集名称\n\n```go\nconst CONSENT_ID_1 = \"consent-1\"\n```\n\n```go\nconst CONSENT_ID_1 = \"consent-1\"\n```\n\n```go\nconst CONSENT_ID_2 = \"consent-2\"\n```\n\n```go\nconst CONSENT_ID_2 = \"consent-2\"\n```\n\n```go\nconst CONTRACT = \"contract_\"\n```\n\n```go\nconst CSOObjectType = \"CS-Operator\"\n```\nCSOObjectType for composite key\n\n```go\nconst (\n\tCURRENCY_RMB = \"0001\" // 人民币\n)\n```\n常量定义 币种\n\n```go\nconst ChaincodeName = \"tokenv2\"\n```\nChaincodeName - Create an instance of the Logger\n\n```go\nconst ChaincodeName = \"tokenv2\"\n```\nChaincodeName - Create an instance of the Logger\n\n```go\nconst ChaincodeName = \"tokenv2\"\n```\nChaincodeName - Create an instance of the Logger\n\n```go\nconst Channel = \"healthcarechannel\"\n```\nChannel Name \u0026 name of the chaincode that is to be called.\n\n```go\nconst Channel = \"airlinechannel\"\n```\nChannel Name\n\n```go\nconst Channel = \"airlinechannel\"\n```\nChannel Name\n\n```go\nconst Channel = \"airlinechannel\"\n```\nChannel Name\n\n```go\nconst (\n\tChannelObjectType = \"channel\"\n)\n```\nObject types\n\n```go\nconst CorporateMSP = \"Org2MSP\"\n```\n\n```go\nconst CreditsAuthorityMSP = \"Org1MSP\"\n```\n\n```go\nconst DOC_TYPE = \"eduObj\"\n```\n\n```go\nconst DefaultParam = `default`\n```\nDefaultParam default parameter name\n\n```go\nconst DepositPrefix = \"depostix~prefix\"\n```\n\n```go\nconst DocPrefix = \"SAMPLE\"\n```\nPrefix for key in stateDB\n\n```go\nconst DocType = \"VehicleAsset\"\n```\nDocType Represents the object type\n\n```go\nconst DocType = \"VehicleAsset\"\n```\nDocType Represents the object type\n\n```go\nconst DocType = \"VehicleAsset\"\n```\nDocType Represents the object type\n\n```go\nconst (\n\t// TODO: Genesis state should get from a gensis json.\n\t//  Wait for the `yui-relayer fabric chaincode init` command to be updated.\n\tERC20Admin = \"ae13dd3dbf43f5e55aafda0d539bfa3ce6a33d2147ffd11a0b39a2c55c42bd15\"\n)\n```\n\n```go\nconst (\n\t// TODO: Genesis state should get from a gensis json.\n\t//  Wait for the `yui-relayer fabric chaincode init` command to be updated.\n\tERC20Admin = \"ae13dd3dbf43f5e55aafda0d539bfa3ce6a33d2147ffd11a0b39a2c55c42bd15\"\n)\n```\n\n```go\nconst ERROR_ACCOUNT_ABNORMAL = \"{\\\"code\\\":303, \\\"reason\\\": \\\"abnormal account\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_ABNORMAL = \"{\\\"code\\\":303, \\\"reason\\\": \\\"abnormal account\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_ABNORMAL = \"{\\\"code\\\":303, \\\"reason\\\": \\\"abnormal account\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_ABNORMAL = \"{\\\"code\\\":303, \\\"reason\\\": \\\"abnormal account\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_ABNORMAL = \"{\\\"code\\\":303, \\\"reason\\\": \\\"abnormal account\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_ABNORMAL = \"{\\\"code\\\":303, \\\"reason\\\": \\\"abnormal account\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_EXISTING = \"{\\\"code\\\":302, \\\"reason\\\": \\\"account already exists\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_EXISTING = \"{\\\"code\\\":302, \\\"reason\\\": \\\"account already exists\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_EXISTING = \"{\\\"code\\\":302, \\\"reason\\\": \\\"account already exists\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_EXISTING = \"{\\\"code\\\":302, \\\"reason\\\": \\\"account already exists\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_EXISTING = \"{\\\"code\\\":302, \\\"reason\\\": \\\"account already exists\\\"}\"\n```\n\n```go\nconst ERROR_ACCOUNT_EXISTING = \"{\\\"code\\\":302, \\\"reason\\\": \\\"account already exists\\\"}\"\n```\n\n```go\nconst ERROR_MONEY_NOT_ENOUGH = \"{\\\"code\\\":304, \\\"reason\\\": \\\"account's money is not enough\\\"}\"\n```\n\n```go\nconst ERROR_MONEY_NOT_ENOUGH = \"{\\\"code\\\":304, \\\"reason\\\": \\\"account's money is not enough\\\"}\"\n```\n\n```go\nconst ERROR_MONEY_NOT_ENOUGH = \"{\\\"code\\\":304, \\\"reason\\\": \\\"account's money is not enough\\\"}\"\n```\n\n```go\nconst ERROR_MONEY_NOT_ENOUGH = \"{\\\"code\\\":304, \\\"reason\\\": \\\"account's money is not enough\\\"}\"\n```\n\n```go\nconst ERROR_MONEY_NOT_ENOUGH = \"{\\\"code\\\":304, \\\"reason\\\": \\\"account's money is not enough\\\"}\"\n```\n\n```go\nconst ERROR_MONEY_NOT_ENOUGH = \"{\\\"code\\\":304, \\\"reason\\\": \\\"account's money is not enough\\\"}\"\n```\n\n```go\nconst ERROR_PUT_STATE = \"Failed to put state\"\n```\n\n```go\nconst ERROR_PUT_STATE = \"Failed to put state\"\n```\n\n```go\nconst ERROR_PUT_STATE = \"Failed to put state\"\n```\n\n```go\nconst ERROR_SYSTEM = \"{\\\"code\\\":300, \\\"reason\\\": \\\"system error: %s\\\"}\"\n```\n\n```go\nconst ERROR_SYSTEM = \"{\\\"code\\\":300, \\\"reason\\\": \\\"system error: %s\\\"}\"\n```\n\n```go\nconst ERROR_SYSTEM = \"{\\\"code\\\":300, \\\"reason\\\": \\\"system error: %s\\\"}\"\n```\n\n```go\nconst ERROR_SYSTEM = \"{\\\"code\\\":300, \\\"reason\\\": \\\"system error: %s\\\"}\"\n```\n\n```go\nconst ERROR_SYSTEM = \"{\\\"code\\\":300, \\\"reason\\\": \\\"system error: %s\\\"}\"\n```\n\n```go\nconst ERROR_SYSTEM = \"{\\\"code\\\":300, \\\"reason\\\": \\\"system error: %s\\\"}\"\n```\n\n```go\nconst ERROR_SYSTEM = \"System exception\"\n```\n\n```go\nconst ERROR_SYSTEM = \"System exception\"\n```\n\n```go\nconst ERROR_SYSTEM = \"System exception\"\n```\n\n```go\nconst ERROR_UNKNOWN_FUNC = \"Unknown function\"\n```\n\n```go\nconst ERROR_UNKNOWN_FUNC = \"Unknown function\"\n```\n\n```go\nconst ERROR_UNKNOWN_FUNC = \"Unknown function\"\n```\n\n```go\nconst ERROR_WRONG_ARGS = \"Wrong arguments of function\"\n```\n\n```go\nconst ERROR_WRONG_ARGS = \"Wrong arguments of function\"\n```\n\n```go\nconst ERROR_WRONG_ARGS = \"Wrong arguments of function\"\n```\n\n```go\nconst ERROR_WRONG_FORMAT = \"{\\\"code\\\":301, \\\"reason\\\": \\\"command format is wrong\\\"}\"\n```\n\n```go\nconst ERROR_WRONG_FORMAT = \"{\\\"code\\\":301, \\\"reason\\\": \\\"command format is wrong\\\"}\"\n```\n\n```go\nconst ERROR_WRONG_FORMAT = \"{\\\"code\\\":301, \\\"reason\\\": \\\"command format is wrong\\\"}\"\n```\n\n```go\nconst ERROR_WRONG_FORMAT = \"{\\\"code\\\":301, \\\"reason\\\": \\\"command format is wrong\\\"}\"\n```\n\n```go\nconst ERROR_WRONG_FORMAT = \"{\\\"code\\\":301, \\\"reason\\\": \\\"command format is wrong\\\"}\"\n```\n\n```go\nconst ERROR_WRONG_FORMAT = \"{\\\"code\\\":301, \\\"reason\\\": \\\"command format is wrong\\\"}\"\n```\n\n```go\nconst ERR_NOT_FOUND = \"Could not find specified account\"\n```\n\n```go\nconst ERR_NOT_FOUND = \"Could not find specified Key\"\n```\n\n```go\nconst ERR_NOT_FOUND = \"Could not find specified account\"\n```\n\n```go\nconst EVObjectType = \"EV-Owner\"\n```\nEVObjectType for composite key\n\n```go\nconst EventChannelBufferSize = 100\n```\n\n```go\nconst GENESIS_MINT_AMOUNT = 100000000\n```\n\n```go\nconst INSIDE_INITIATED_CALL_PREFIX = \"Inside_initiated_call\"\n```\n\n```go\nconst IOP_HISTORY_PREFIX = \"Iop_History\"\n```\n\n```go\nconst InitialTokenValue = 100\n```\n\n```go\nconst MAX_VALUE_SIZE = 1 \u003c\u003c 16\n```\n\n```go\nconst MrEnclaveLength = 32\n```\n\n```go\nconst MultipleEvents = \"multiple_events\"\n```\n\n```go\nconst Name = \"cc-ticket\"\n```\n\n```go\nconst Name = \"cc-ticket\"\n```\n\n```go\nconst (\n\tNetworkUpdateEvent = \"networkUpdateEvent\"\n)\n```\nChaincodeEvents\n\n```go\nconst NgoMSP = \"Org3MSP\"\n```\n\n```go\nconst ORG1K8sNamespace = \"kube-system\"\n```\nORG1K8sNamespace - k8s Namespace for ORG1\n\n```go\nconst ORG2K8sNamespace = \"kube-system\"\n```\nORG2K8sNamespace - k8s Namespace for ORG2\n\n```go\nconst OUTSIDE_INTIATED_CALL_PREFIX = \"Outside_initiated_call\"\n```\n\n```go\nconst OWNER = \"OWNER\"\n```\n\n```go\nconst OwnerPrefix = \"owner.\"\n```\nOwnerPrefix is used for creating the key for balances\n\n```go\nconst OwnerPrefix = \"owner.\"\n```\nOwnerPrefix is used for creating the key for balances\n\n```go\nconst OwnerPrefix = \"owner.\"\n```\nOwnerPrefix is used for creating the key for balances\n\n```go\nconst PLAYER string = \"PLAYER\"\n```\n\n```go\nconst PermittedNetworkIdPrefix = \"PermittedNetwork\"\n```\n\n```go\nconst PowerPlant string = \"powerPlant\"\n```\n\n```go\nconst PowerUser string = \"powerUser\"\n```\n\n```go\nconst Prefix = \"Owner:\"\n```\n\n```go\nconst Prefix = \"Key: \"\n```\n\n```go\nconst PrometheusBaseURI = \"http://192.168.0.181:3080/api/v1/\"\n```\nPrometheusBaseURI - local peer Prometheus path\n\n```go\nconst (\n\tProposalObjectType = \"proposal\"\n)\n```\nObject types\n\n```go\nconst (\n\t// STransaction is the name of the handler setting entry for transaction name\n\tSTransaction = \"name\"\n)\n```\n\n```go\nconst (\n\t// STransaction is the name of the handler setting entry for transaction name\n\tSTransaction = \"name\"\n)\n```\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst SysCCVersion = \"syscc\"\n```\nSysCCVersion is a constant used for the version field of system chaincodes. Historically, the version of a system chaincode was implicitly tied to the exact build version of a peer, which does not work for collecting endorsements across sccs across peers.  Until there is a need for separate SCC versions, we use this constant here.\n\n```go\nconst (\n\t// SystemContractName the name of the system smart contract\n\tSystemContractName = \"org.hyperledger.fabric\"\n)\n```\n\n```go\nconst (\n\t// SystemContractName the name of the system smart contract\n\tSystemContractName = \"org.hyperledger.fabric\"\n)\n```\n\n```go\nconst TN = \"Token\"\n```\n\n```go\nconst TOKEN = \"TOKEN\"\n```\n\n```go\nconst TRANSACTION string = \"TRANS\"\n```\n\n```go\nconst TargetChaincode = \"token\"\n```\nChaincode to be invoked\n\n```go\nconst TargetChaincode = \"token\"\n```\nChaincode to be invoked\n\n```go\nconst TargetChaincode = \"token\"\n```\nChaincode to be invoked\n\n```go\nconst TokenContract = \"token\"\n```\n\n```go\nconst TxnPrvPrefix = \"TxnPrv\"\n```\n\n```go\nconst TxnPrvPrefix = \"TxnPrv\"\n```\n\n```go\nconst USER = \"user_\"\n```\n\n```go\nconst (\n\tWalletKey = \"wallet\"\n)\n```\n\n```go\nconst WithdrawPrefix = \"withdraw~prefix\"\n```\n\n## Variables\n\n```go\nvar (\n\tWarningLogger *log.Logger\n\tInfoLogger    *log.Logger\n\tErrorLogger   *log.Logger\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\n\t// NOTE these regular expressions should stay in sync with those defined in\n\t// core/chaincode/lifecycle/scc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\tErrPeerInvoke                   = errors.New(`invoke failed`)\n\tErrPeerQuery                    = errors.New(`query failed`)\n\tChaincodeSimulationErrorReponse = \u0026peer.Response{\n\t\tStatus: shim.ERROR, Message: `chaincode simulation produced error response`}\n)\n```\n\n```go\nvar (\n\tCOMMON_STRING_OR_STRING_ARRAY_KEY_GENERATOR = func(stub shim.ChaincodeStubInterface, objectType base.ObjectType, param ...interface{}) (string, error3.IBaseError) {\n\t\tswitch param[0].(type) {\n\t\tcase string:\n\t\t\treturn COMMON_STRING_KEY_GENERATOR(stub, objectType, param[0])\n\t\tcase []string:\n\t\t\treturn COMMON_STRING_ARRAY_KEY_GENERATOR(stub, objectType, param[0])\n\t\t}\n\t\treturn \"\", error4.NewChainCodeError(nil, \"找不到匹配的处理\")\n\t}\n\tCOMMON_STRING_ARRAY_KEY_GENERATOR = func(stub shim.ChaincodeStubInterface, objectType base.ObjectType, param ...interface{}) (string, error3.IBaseError) {\n\t\tstrings := param[0].([]string)\n\t\ts, e := stub.CreateCompositeKey(string(objectType), strings)\n\t\tif nil != e {\n\t\t\treturn \"\", error4.NewChainCodeError(e, \"创建组合键失败\")\n\t\t}\n\t\treturn s, nil\n\t}\n\n\tCOMMON_STRING_KEY_GENERATOR = func(stub shim.ChaincodeStubInterface, objectType base.ObjectType, param ...interface{}) (string, error3.IBaseError) {\n\t\tstrings := param[0].(string)\n\t\ts, e := stub.CreateCompositeKey(string(objectType), []string{strings})\n\t\tif nil != e {\n\t\t\treturn \"\", error4.NewChainCodeError(e, \"创建组合键失败\")\n\t\t}\n\t\treturn s, nil\n\t}\n)\n```\n\n```go\nvar (\n\n\t// NOTE these regular expressions should stay in sync with those defined in\n\t// core/chaincode/lifecycle/scc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\tErrPeerInvoke                   = errors.New(`invoke failed`)\n\tErrPeerQuery                    = errors.New(`query failed`)\n\tChaincodeSimulationErrorReponse = \u0026peer.Response{\n\t\tStatus: shim.ERROR, Message: `chaincode simulation produced error response`}\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// ErrChaincodeNotExists occurs when attempting to invoke a nonexostent external chaincode\n\tErrChaincodeNotExists = errors.New(`chaincode not exists`)\n\t// ErrUnknownFromArgsType occurs when attempting to set unknown args in From func\n\tErrUnknownFromArgsType = errors.New(`unknown args type to cckit.MockStub.From func`)\n\t// ErrKeyAlreadyExistsInTransientMap occurs when attempting to set existing key in transient map\n\tErrKeyAlreadyExistsInTransientMap = errors.New(`key already exists in transient map`)\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\n\t// NOTE these regular expressions should stay in sync with those defined in\n\t// core/chaincode/lifecycle/scc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\t// NOTE the chaincode name/version regular expressions should stay in sync\n\t// with those defined in core/scc/lscc/lscc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\n\t// NOTE these regular expressions should stay in sync with those defined in\n\t// core/chaincode/lifecycle/scc.go until LSCC has been removed.\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\tDefaultOpenInitVersion *connectiontypes.Version\n\tConnectionVersion      = connectiontypes.ExportedVersionsToProto(connectiontypes.GetCompatibleVersions())[0]\n\n\t// Default params variables used to create a TM client\n\tDefaultTrustLevel ibctmtypes.Fraction = ibctmtypes.DefaultTrustLevel\n\tTestHash                              = tmhash.Sum([]byte(\"TESTING HASH\"))\n\tTestCoin                              = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100))\n\n\tUpgradePath = []string{\"upgrade\", \"upgradedIBCState\"}\n)\n```\n\n```go\nvar (\n\tRepoKeyPrefix = \"repo\"\n\t// sofware~repoId~swid\n\tComponentKeyPrefix = \"component\"\n\tLicenseKeyPrefix   = \"license\"\n)\n```\n\n```go\nvar (\n\t// ErrProposalNotFound is returned when the requested object is not found.\n\tErrProposalNotFound = fmt.Errorf(\"proposal not found\")\n\t// ErrProposalIDAreadyInUse is returned when the requested proposal ID is already in use.\n\tErrProposalIDAreadyInUse = fmt.Errorf(\"proposalID already in use\")\n\t// ErrInconsistentChannelID is returned when the channel ID is inconsistent with the ID in the artifacts.\n\tErrInconsistentChannelID = fmt.Errorf(\"channel ID is inconsistent with the ID in the artifacts\")\n)\n```\n\n```go\nvar ALL_VALIDATION_MODE = \"all\"\n```\n\n```go\nvar (\n\tAuthority = ids[0]\n)\n```\n\n```go\nvar BALANCE int = 100000\n```\n\n```go\nvar Cert = x509.Certificate{\n\tRaw:                         nil,\n\tRawTBSCertificate:           nil,\n\tRawSubjectPublicKeyInfo:     nil,\n\tRawSubject:                  nil,\n\tRawIssuer:                   nil,\n\tSignature:                   nil,\n\tSignatureAlgorithm:          0,\n\tPublicKeyAlgorithm:          0,\n\tPublicKey:                   nil,\n\tVersion:                     0,\n\tSerialNumber:                nil,\n\tIssuer:                      pkix.Name{},\n\tSubject:                     pkix.Name{},\n\tNotBefore:                   time.Time{},\n\tNotAfter:                    time.Time{},\n\tKeyUsage:                    0,\n\tExtensions:                  nil,\n\tExtraExtensions:             nil,\n\tUnhandledCriticalExtensions: nil,\n\tExtKeyUsage:                 nil,\n\tUnknownExtKeyUsage:          nil,\n\tBasicConstraintsValid:       false,\n\tIsCA:                        false,\n\tMaxPathLen:                  0,\n\tMaxPathLenZero:              false,\n\tSubjectKeyId:                nil,\n\tAuthorityKeyId:              nil,\n\tOCSPServer:                  nil,\n\tIssuingCertificateURL:       nil,\n\tDNSNames:                    nil,\n\tEmailAddresses:              nil,\n\tIPAddresses:                 nil,\n\tURIs:                        nil,\n\tPermittedDNSDomainsCritical: false,\n\tPermittedDNSDomains:         nil,\n\tExcludedDNSDomains:          nil,\n\tPermittedIPRanges:           nil,\n\tExcludedIPRanges:            nil,\n\tPermittedEmailAddresses:     nil,\n\tExcludedEmailAddresses:      nil,\n\tPermittedURIDomains:         nil,\n\tExcludedURIDomains:          nil,\n\tCRLDistributionPoints:       nil,\n\tPolicyIdentifiers:           nil,\n}\n```\n\n```go\nvar DEVICE_VALIDATION_MODE = \"device\"\n```\n\n```go\nvar (\n\tDefaultNumberChecker = func(args []string) error3.IBaseError {\n\t\tif len(args) \u003c 1 {\n\t\t\treturn error3.NewArguError(nil, \"参数长度必须大于1\")\n\t\t}\n\t\treturn nil\n\t}\n)\n```\n\n```go\nvar ErrContractClosed = errors.New(\"contract closed\")\n```\n\n```go\nvar (\n\tErrEmptyChaincodeResponsePayload = errors.New(`empty chaincode response payload`)\n)\n```\n\n```go\nvar (\n\tErrInvalidMessageNonce = errors.New(\"nonce mistmatch\")\n)\n```\n\n```go\nvar ErrInvokeMethodNotAllowed = errors.New(`invoke method not allowed`)\n```\n\n```go\nvar ErrNotOwner = errors.New(\"not the owner\")\n```\nErrors\n\n```go\nvar (\n\t// ErrPemEncodedExpected pem format error\n\tErrPemEncodedExpected = errors.New(\"expecting a PEM-encoded X509 certificate; PEM block not found\")\n)\n```\n\n```go\nvar (\n\t// ErrPemEncodedExpected pem format error\n\tErrPemEncodedExpected = errors.New(\"expecting a PEM-encoded X509 certificate; PEM block not found\")\n)\n```\n\n```go\nvar (\n\tErrRoleNotFound = errors.New(\"role not found\")\n)\n```\n\n```go\nvar (\n\tErrStateNotFound = errors.New(\"State was not found\")\n)\n```\nTechnical state errors TODO: make errors constant\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Error = log.New(os.Stderr, \"ERROR: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar HE_divided big.Int\n```\n\n```go\nvar (\n\tHashedSuperAdminRole = sha3.Sum256([]byte(SuperAdminRole))\n)\n```\n\n```go\nvar IndexCounter = \"counter~key\"\n```\n\n```go\nvar IndexData = \"data~key\"\n```\n\n```go\nvar IndexID = \"id~key\"\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar Info = log.New(os.Stdout, \"INFO: \", log.Ldate|log.Ltime|log.Lshortfile)\n```\n\n```go\nvar LOG_MODE = \"test\"\n```\n\n```go\nvar LOG_MODE = \"test\"\n```\n\n```go\nvar MAX_ACCOUNTS int = 100000\n```\n\n```go\nvar N int // aggregate number\n\n```\n\n```go\nvar NextId int\n```\n\n```go\nvar TxIdSeed int = 0\n```\nChanged to Transaction id being generated uniquely for even test cases\n\n## Functions\n\n```go\nfunc AcceptServicing(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n志愿者接受服务\n\n```go\nfunc AdaptChainCode(yaCc yashim.Chaincode) fashim.Chaincode\n```\nAdaptChainCode convert abchain chaincode to fabric chaincode\n\n```go\nfunc AdaptChainCodeWithArgEncoded(yaCc yashim.Chaincode) fashim.Chaincode\n```\nAdaptChainCodeWithArgEncoded act as AdaptChainCode, with input arguments is encoded by base64\n\n```go\nfunc (pc *PalmOilContract) AddCollector(ctx contractapi.TransactionContextInterface, id string, name string, nib string, nik string, noHP string, email string, address string, capacity float64, partnersInput string) error\n```\nAddCollector adds a new collector to the ledger\n\n```go\nfunc AddData(stub shim.ChaincodeStubInterface, vin string, make, model string, year uint, owner, transfer string)\n```\nAddData adds a car asset to the chaincode asset database Structure is created and initialized then it is marshalled to JSON for storage using PutState\n\n```go\nfunc AddNumber(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nAddNumber adds the passed unsigned number to the token Takes 2 argumets = tokenName \u0026 a positive number Returns   true | false\n\n```go\nfunc AddPaginationMetadataToQueryResults(buffer *bytes.Buffer, responseMetadata *pb.QueryResponseMetadata) *bytes.Buffer\n```\n=========================================================================================== addPaginationMetadataToQueryResults adds QueryResponseMetadata, which contains pagination info, to the constructed query results ===========================================================================================\n\n```go\nfunc AddToken(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nAddToken adds a token to the state Otherwise returns -1 Takes 2 argumets = tokenName \u0026 a positive number Sets an event AddTokenEvent\n\n```go\nfunc AddressHelper(encodedAdr, client string) (bool, error)\n```\n\n```go\nfunc AfterTransaction(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc AnyCertificateRevoked(ctx contractapi.TransactionContextInterface, msp string, atTime time.Time, certificates ...*x509.Certificate) (bool, error)\n```\n\n```go\nfunc AnyCertificateRevokedFromPEM(ctx contractapi.TransactionContextInterface, msp string, atTime time.Time, pems ...[]byte) (bool, error)\n```\n\n```go\nfunc Argsort(src []float32) []int\n```\nArgsortNew allocates and returns an array of indexes into the source float array.\n\n```go\nfunc AssertManager(ctx contractapi.TransactionContextInterface, allowedMspIDs ...string) error\n```\nAssertAdmin Check if user is admin\n\n```go\nfunc BankBranchR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nBankBranchR reads state from blockchain\n\n```go\nfunc BankBranchW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nBankBranchW writes state to blockchain\n\n```go\nfunc BankR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nBankR reads state from blockchain\n\n```go\nfunc BankW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nBankW writes state to blockchain\n\n```go\nfunc BeforeTransaction(ctx common.TxCtxInterface) (err error)\n```\nBeforeTransaction is the before transaction handler\n\n```go\nfunc (c *EmbededContract) Bootstrap(\n\tctx common.TxCtxInterface,\n\treq *cc.BootstrapRequest,\n) (res *cc.BootstrapResponse, err error)\n```\n\n```go\nfunc BootstrapChaincodeServer(contract contractapi.ContractInterface)\n```\nBootstrapChaincodeServer performs start sequence of the Smart Contract handler.\n\n```go\nfunc Bridge(ctx contractapi.TransactionContextInterface, fcName, toWallet, amount, msg, signature, swapId string) (bool, error)\n```\n\n```go\nfunc BuildContract() *contractapi.ContractChaincode\n```\nBuildContract builds the roles contract\n\n```go\nfunc BuildPrivateKey(privateKeyStr string) (priKey *ecdsa.PrivateKey, e error)\n```\n解析私钥\n\n```go\nfunc BuildPublicKey(publicKeyStr string) (pubKey *ecdsa.PublicKey, e error)\n```\n解析公钥\n\n```go\nfunc BuyerR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nBuyerR reads state from blockchain\n\n```go\nfunc BuyerW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nBuyerW writes state to blockchain\n\n```go\nfunc (seq *Sequence) Bytes() []byte\n```\n\n```go\nfunc BytesToString(data []byte) string\n```\nByte to string\n\n```go\nfunc CalcularHash(transaccion Transaccion) string\n```\n\n```go\nfunc CalculateSimilarity(v1 []float32, v2 []float32) float32\n```\n\n```go\nfunc CalculationBrokerage(rateBasic float64, rate float64, amount int) (int, error)\n```\n\\*\n\n\t计算佣金收入\n\n```go\nfunc CallGetCampaignById(ctx contractapi.TransactionContextInterface, camId string) (*putils.Campaign, error)\n```\n\n```go\nfunc CanApproveAccount(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc CanApproveCheckout(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanDeleteSwID(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanInitiateCheckIn(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanOffboardAsset(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc CanOnboardAsset(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc CanProcessCheckIn(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanReportSwID(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanRequestAccount(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc CanRequestCheckout(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanUpdateAccountStatus(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanUploadATO(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc CanViewAssetPrivate(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc CanViewAssetPublic(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc CanViewAssets(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc ChainFromPEM(input []byte) ([]*x509.Certificate, error)\n```\n\n```go\nfunc ChaincodeID(ccName string) string\n```\nChaincodeID returns the chaincode ID of a system chaincode of a given name.\n\n```go\nfunc ChaincodeInvokeOrQuery(\n\tspec *pb.ChaincodeSpec,\n\tcID string,\n\ttxID string,\n\tinvoke bool,\n\tsigner identity.SignerSerializer,\n\tcertificate tls.Certificate,\n\tendorserClients []pb.EndorserClient,\n\tdeliverClients []pb.DeliverClient,\n\tbc common.BroadcastClient,\n) (*pb.ProposalResponse, error)\n```\nChaincodeInvokeOrQuery invokes or queries the chaincode. If successful, the INVOKE form prints the ProposalResponse to STDOUT, and the QUERY form prints the query result on STDOUT. A command-line flag (-r, --raw) determines whether the query result is output as raw bytes, or as a printable string. The printable form is optionally (-x, --hex) a hexadecimal representation of the query response. If the query response is NIL, nothing is output.\n\nNOTE - Query will likely go away as all interactions with the endorser are Proposal and ProposalResponses\n\n```go\nfunc ChangeInfo(stub shim.ChaincodeStubInterface, DocPrefix string, rowKey []string, data interface{}) error\n```\nChangeInfo overwrites a value in the state database by performing an insert with overwrite indicator\n\n```go\nfunc ChannelHoldingKey(id channel.ID, addr wallet.Address) string\n```\nChannelHoldingKey generates the key for storing holdings on the stub.\n\n```go\nfunc CheckAccessIfRelayClient(stub shim.ChaincodeStubInterface) (bool, error)\n```\nAccess guard for Weaver relay requests: return 'true' only if access should be permitted\n\n```go\nfunc CheckAffiliation(ctx contractapi.TransactionContextInterface, requiredAffiliations ...string) error\n```\nCheckAffiliation 检查用户是否具有访问特定资源的权限\n\n```go\nfunc CheckChaincodeFunctionCallWellFormedness(args []string, expected_arg_count int) error\n```\n\n```go\nfunc CheckIntermediates(intermediateCerts []*x509.Certificate) error\n```\n\n```go\nfunc CheckMspID(ctx contractapi.TransactionContextInterface, allowedMspIDs ...string) error\n```\nCheckMspID 检查用户是否属于指定的MSP。\n\n```go\nfunc CheckUser(userCert *x509.Certificate) error\n```\n\n```go\nfunc ClaimAsset(ctx contractapi.TransactionContextInterface, callerChaincodeID, assetAgreementBytesBase64, claimInfoBytesBase64 string) (string, error)\n```\nClaim Functions ClaimAsset cc is used to record claim of an asset on the ledger\n\n```go\nfunc ClaimAssetUsingContractId(ctx contractapi.TransactionContextInterface, contractId, claimInfoBytesBase64 string) error\n```\nClaimAsset cc is used to record claim of an asset on the ledger (this uses the contractId)\n\n```go\nfunc ClaimFungibleAsset(ctx contractapi.TransactionContextInterface, contractId, claimInfoBytesBase64 string) error\n```\nClaimFungibleAsset cc is used to record claim of a fungible asset on the ledger\n\n```go\nfunc ClaimRemoteAsset(ctx contractapi.TransactionContextInterface, pledgeId, remoteNetworkId, pledgeBytes64 string) ([]byte, error)\n```\nClaimRemoteAsset gets ownership of an asset transferred from a different ledger/network.\n\n```go\nfunc CloseServicing(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n取消服务\n\n```go\nfunc ConcurrentRequestToCreateVerifierCampaignCryptoParamsSocket(camId string, requestCreateVerifierCryptoURL string, cryptoParams *putils.CampaignCryptoParams, results chan putils.VerifierCryptoChannelResult, wg *sync.WaitGroup)\n```\n\n```go\nfunc ConstructQueryResponse(resultsIterator shim.StateQueryIteratorInterface, collection string, isCompositeKey bool, stub shim.ChaincodeStubInterface) ([]byte, error)\n```\nConstructQueryResponse iterate through query result to create array of key-value pairs, i.e. JSON string of format \\[{\"key\":\"mykey\", \"value\":{}}, ...]\n\n```go\nfunc ConstructQueryResponseFromIterator(resultsIterator shim.StateQueryIteratorInterface) (*bytes.Buffer, error)\n```\n=========================================================================================== constructQueryResponseFromIterator constructs a JSON array containing query results from a given result iterator ===========================================================================================\n\n```go\nfunc ContextWithStub(ctx sdk.Context, stub shim.ChaincodeStubInterface) sdk.Context\n```\n\n```go\nfunc ConvBytes2TransBaseTypeV2(bytes []byte) cc.TransBaseTypeV2\n```\n\n```go\nfunc ConvertirMoneda(monto float64, monedaOrigen string, monedaDestino string) float64\n```\nFunción para convertir moneda\n\n```go\nfunc Create(stub shim.ChaincodeStubInterface, args []string) (string, error)\n```\n\n```go\nfunc CreateCCEventBytes(ccevent *pb.ChaincodeEvent) ([]byte, error)\n```\n\n```go\nfunc CreateCampaign(camId string, name string, advertiser string, publisher string, startTime int64, endTime int64, verifierURLs []string, deviceIds []string) (*putils.Campaign, error)\n```\n\n```go\nfunc CreateCampaignSocket(camId string, name string, advertiser string, publisher string, startTime int64, endTime int64, verifierURLs []string, deviceIds []string) (*putils.Campaign, error)\n```\n\n```go\nfunc (c *EmbededContract) CreateCollection(\n\tctx common.TxCtxInterface,\n\treq *cc.CreateCollectionRequest,\n) (res *cc.CreateCollectionResponse, err error)\n```\n\n```go\nfunc CreateData(stub shim.ChaincodeStubInterface, DocPrefix string, rowKey []string, data interface{}) error\n```\nCreateData simply inserts a new key-value pair into the state database. It will fail if the key already exists. The pair is formatted as follows.\n\nKey: DocPrefix\\_rowKey\\[0]\\_rowKey\\[1]\\_...\\_rowKey\\[n]\\_randomId Value: JSON document parsed from the data object.\n\n```go\nfunc CreateServicing(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n老人发起服务\n\n```go\nfunc CrossChaincodeCall(ctx contractapi.TransactionContextInterface, chaincode, tx string, args ...string) ([]byte, error)\n```\nCrossChaincodeCall performs cross-chaincode call.\n\n```go\nfunc Date(year, month, day int) time.Time\n```\n\n```go\nfunc DefaultAuthenticator(ctx contractapi.TransactionContextInterface, msg Msg) error\n```\nDefaultAuthenticator ...\n\n```go\nfunc DefaultDeferHandler(err *error) func(error) bool\n```\n\n```go\nfunc DefaultGetPeerTime(stub shim.ChaincodeStubInterface) int64\n```\nDefaultGetPeerTime uses local clock in peer\n\n```go\nfunc Deferred(handler DeferHandler)\n```\n\n```go\nfunc DelLedger(stub shim.ChaincodeStubInterface, objectType string, keys []string) error\n```\nDelete asset from the ledger\n\n```go\nfunc Delete[T common.ItemInterface](ctx common.TxCtxInterface, obj T) (err error)\n```\n\n```go\nfunc DeleteStateByKey(stub shim.ChaincodeStubInterface, key string) (int, error)\n```\nhelper function to reset world state\n\n```go\nfunc DeleteTableRow(\n\tstub shim.ChaincodeStubInterface,\n\ttable_name string,\n\trow_keys []string,\n\told_row_value interface{},\n\tfailure_option GetTableRow_FailureOption,\n) (rowWasFound bool, err error)\n```\nIf old\\_row\\_value is not nil, then the table row will be unmarshaled into old\\_row\\_value before being deleted.\n\n```go\nfunc DeleteToken(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nDeleteToken deletes the token Returns true | false Takes an argumet = tokenName\n\n```go\nfunc DeploySysCC(sysCC SelfDescribingSysCC, chaincodeStreamHandler ChaincodeStreamHandler)\n```\nDeploySysCC is the hook for system chaincodes where system chaincodes are registered with the fabric. This call directly registers the chaincode with the chaincode handler and bypasses the other usercc constructs.\n\n```go\nfunc DoneServicing(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n结束服务状态\n\n```go\nfunc EmitApprovalEvent(stub shim.ChaincodeStubInterface, owner, spender string, allowance int) error\n```\n\n```go\nfunc EmitTransferEvent(stub shim.ChaincodeStubInterface, sender, spender string, amount int) error\n```\n\n```go\nfunc EstaSancionado(ctx contractapi.TransactionContextInterface, nombre string) bool\n```\nFunción para verificar si una entidad está sancionada\n\n```go\nfunc ExecuteRichQuery(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nExecuteRichQuery executes the passed query on the data Result count restricted by totalQueryLimit - DO NOT use for lage result sets\n\n```go\nfunc Exists[T common.ItemInterface](ctx common.TxCtxInterface, obj T) bool\n```\n\n```go\nfunc ExtractAlgorithmFromUserCert(input []byte) (*x509.SignatureAlgorithm, error)\n```\n\n```go\nfunc ExtractAndValidateDataFromView(view *common.View, b64ViewContentList []string) ([]byte, error)\n```\nExtract data (i.e., query response) from view TODO - Also take verification policy as parameter and determine if enough matching responses exist (current logic mandates unanimity among payloads)\n\n```go\nfunc ExtractCompositeKeys(stub shim.ChaincodeStubInterface, compositeKeyDefs string, keyValue string, value interface{}) []string\n```\nExtractCompositeKeys collects all valid composite-keys matching composite-key definitions using fields of a value object\n\n```go\nfunc ExtractMrEnclave(ccDef *lifecycle.QueryChaincodeDefinitionResult) (string, error)\n```\n\n```go\nfunc FilterRevokedRootCertificates(ctx contractapi.TransactionContextInterface, msp string, certsPEM []byte, atTime time.Time) ([]byte, error)\n```\n\n```go\nfunc Float32ToByte(float float32) []byte\n```\n\n```go\nfunc FromBytes(bb []byte, target interface{}) (result interface{}, err error)\n```\nFromBytes converts \\[]byte to target interface\n\n```go\nfunc FromBytesToStruct(bb []byte, target interface{}) (result interface{}, err error)\n```\nFromBytesToStruct converts \\[]byte to struct,array,slice depending on target type\n\n```go\nfunc FromResponse(response peer.Response, target interface{}) (result interface{}, err error)\n```\nFromResponse converts response.Payload to target\n\n```go\nfunc GenKeyPair() (privateKey string, publicKey string, e error)\n```\n\n```go\nfunc GenerateExampleCC(version, basePath string)\n```\nGenerateExampleCC Generate exmaple chain code\n\n```go\nfunc GenerateExampleCCV2(version, basePath string)\n```\nGenerateExampleCCV2 generates a sample chaincode for v2.2.x\n\n```go\nfunc Generatetable(stub shim.ChaincodeStubInterface, args []string) (string, error)\n```\ntable\n\n```go\nfunc Get[T common.ItemInterface](ctx common.TxCtxInterface, obj T) (err error)\n```\nGet returns the item from the ledger\n\n```go\nfunc GetAccountCompositeKey(stub shim.ChaincodeStubInterface, name string) (string, string)\n```\n\n```go\nfunc GetActivityInputSchema(ctx activity.Context, name string) (string, error)\n```\nGetActivityInputSchema returns schema of an activity input attribute\n\n```go\nfunc GetActivityOutputSchema(ctx activity.Context, name string) (string, error)\n```\nGetActivityOutputSchema returns schema of an activity output attribute\n\n```go\nfunc GetAll(stub shim.ChaincodeStubInterface, args []string) (string, error)\n```\n\n```go\nfunc GetAssetClaimStatus(ctx contractapi.TransactionContextInterface, pledgeId, recipientCert, pledger, pledgerNetworkId string, pledgeExpiryTimeSecs uint64, blankAssetJSON []byte) ([]byte, string, string, error)\n```\nGetAssetClaimStatus returns the asset claim status and present time (of invocation).\n\n```go\nfunc GetAssetPledgeDetails(ctx contractapi.TransactionContextInterface, pledgeId string) ([]byte, string, error)\n```\nGetAssetPledgeDetails returns the asset pledge details for local network.\n\n```go\nfunc GetAssetPledgeStatus(ctx contractapi.TransactionContextInterface, pledgeId, recipientNetworkId, recipientCert string, blankAssetJSON []byte) ([]byte, string, string, error)\n```\nGetAssetPledgeStatus returns the asset pledge status.\n\n```go\nfunc GetAveragesBetweenDates(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetAveragesBetweenDates returns the averages certian attributes between certain dates\n\n```go\nfunc GetBackwardTestSequence() []int\n```\n\n```go\nfunc GetBalance(stub shim.ChaincodeStubInterface, owner string, isZero bool) (*int, error)\n```\n\n```go\nfunc GetCallerID(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetCallerID ...\n\n```go\nfunc GetChaincodeDefinition(chaincodeId string, stub shim.ChaincodeStubInterface) (*lifecycle.QueryChaincodeDefinitionResult, error)\n```\n\n```go\nfunc GetChaincodeStub(ctx activity.Context) (shim.ChaincodeStubInterface, error)\n```\nGetChaincodeStub returns Fabric chaincode stub from the activity context\n\n```go\nfunc GetCollectionConfigFromFile(ccFile string) (*pb.CollectionConfigPackage, []byte, error)\n```\nGetCollectionConfigFromFile retrieves the collection configuration from the supplied file; the supplied file must contain a json-formatted array of collectionConfigJson elements\n\n```go\nfunc GetCollectionName(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc GetDataById(stub shim.ChaincodeStubInterface, ID string, DocPrefix string) (interface{}, error)\n```\nGetDataById get the state value of a key from the state database It returns a generic object.\n\n```go\nfunc GetDataByIdWithResponse(stub shim.ChaincodeStubInterface, DataID string, data interface{}, ModelTable string) peer.Response\n```\nGetDataByIdWithResponse returns the peer.Response object directly to the caller so that the caller does not have to format it into Fabric response.\n\n```go\nfunc GetDataByRowKeys(stub shim.ChaincodeStubInterface, rowKeys []string, DocPrefix string) (interface{}, error)\n```\nGetDataByRowKeys returns the state value of a key that is constructed with only document prefix and rowKeys. This is used for documents that we don't need random generated value in the key.\n\n```go\nfunc GetDataByRowKeysWithResponse(stub shim.ChaincodeStubInterface, rowKeys []string, data interface{}, ModelTable string) peer.Response\n```\nGetDataByRowKeysWithResponse returns the peer.Response directly to the caller so that the caller does not have to format it into Fabric response\n\n```go\nfunc GetDatesByPrice(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetDatesByPrice returns the data for the specified date Get the dates on which the prices of Cryptocurrency higher than the specified price\n\n```go\nfunc GetECertOfTxCreatorBase64(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc GetERC20Metadata(stub shim.ChaincodeStubInterface, tokenName string) (*model.ERC20Metadata, error)\n```\n\n```go\nfunc GetERC20TotalSupply(stub shim.ChaincodeStubInterface, tokenName string) (*uint64, error)\n```\n\n```go\nfunc GetExtractionPatternsMap() map[string]ExtractionPattern\n```\nGetExtractionPatternsMap simply returns a dictionary/map that contains the pre-defined extraction-patterns for the chaincode.\n\n```go\nfunc GetForwardTestSequence() []int\n```\n\n```go\nfunc GetFromKey[T common.ItemInterface](ctx common.TxCtxInterface, key string, obj T) (err error)\n```\nGetFromKey returns the item from the ledger\n\n```go\nfunc GetHTLCHash(ctx contractapi.TransactionContextInterface, callerChaincodeID, assetAgreementBytesBase64 string) (string, error)\n```\n\n```go\nfunc GetHTLCHashByContractId(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\n\n```go\nfunc GetHTLCHashPreImage(ctx contractapi.TransactionContextInterface, callerChaincodeID, assetAgreementBytesBase64 string) (string, error)\n```\n\n```go\nfunc GetHTLCHashPreImageByContractId(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\n\n```go\nfunc (cio *ContractCommon) GetHistory(ctx contractapi.TransactionContextInterface, request *lus.GetHistoryRequest) (lus.HistoryQueryResponse, error)\n```\n\n```go\nfunc GetInteropChaincodeIDKey() string\n```\n\n```go\nfunc GetInvokerIdentity(ctx contractapi.TransactionContextInterface) (string, string, error)\n```\nGetInvokerIdentity returns the current user's unique id and mspID\n\n```go\nfunc GetLastCertificateFromPEM(input []byte) (*x509.Certificate, error)\n```\n\n```go\nfunc GetLocalChaincodeID(stub shim.ChaincodeStubInterface) (string, error)\n```\nGetLocalChaincodeID extracts chaincode id from stub\n\n```go\nfunc GetLocalChaincodeIDKey() string\n```\n\n```go\nfunc GetLocalNetworkIDKey() string\n```\n\n```go\nfunc GetMSPID(ctx contractapi.TransactionContextInterface) string\n```\n\n```go\nfunc GetMonedaCliente(idCliente string) string\n```\nObtener el tipo de moneda del cliente\n\n```go\nfunc GetMrEnclave(chaincodeId string, stub shim.ChaincodeStubInterface) (string, error)\n```\n\n```go\nfunc GetOwnerID(ctx contractapi.TransactionContextInterface, Name string) (string, error)\n```\n\n```go\nfunc GetPartialKeyList[T common.ItemInterface](\n\tctx common.TxCtxInterface,\n\tobj T,\n\tnumAttr int,\n\tbookmark string,\n) (list []T, mk string, err error)\n```\nGetPartialKeyList returns a list of items of type T T must implement StateItem interface numAttr is the number of attributes in the key to search for\n\n```go\nfunc GetProduct(context contractapi.TransactionContextInterface, transactionID string) (string, error)\n```\n\n```go\nfunc GetQueryResultForQueryString(stub shim.ChaincodeStubInterface, queryString string) (shim.StateQueryIteratorInterface, error)\n```\n========================================================================================= getQueryResultForQueryString executes the passed in query string. Result set is built and returned as a byte array containing the JSON results. =========================================================================================\n\n```go\nfunc GetQueryResultForQueryStringWithPagination(ctx contractapi.TransactionContextInterface, queryString string, pageSize int32, bookmark string) ([]byte, error)\n```\n========================================================================================= getQueryResultForQueryStringWithPagination executes the passed in query string with pagination info. Result set is built and returned as a byte array containing the JSON results. =========================================================================================\n\n```go\nfunc GetRandomBytes(len int) ([]byte, error)\n```\n///////////////////////////////////////////////// GetRandomByt es returns len random looking bytes /////////////////////////////////////////////////\n\n```go\nfunc GetRequest(query string) (string, error)\n```\nGetRequest accepts query string and returns output string\n\n```go\nfunc GetResponse(status string, message string) []byte\n```\nPrepare the response\n\n```go\nfunc GetRole(clientAccountID string) string\n```\nGet role (OU) from clientAccountID\n\n```go\nfunc GetSaldo(ctx contractapi.TransactionContextInterface, idCliente string) (float64, error)\n```\nFunción para obtener el saldo del cliente\n\n```go\nfunc GetState(ctx contractapi.TransactionContextInterface, key string, v interface{}) (err error)\n```\nGetState is a function to get data from the World State that will return an error if the state does not exist and that will unmarshal to a specified empty interface if found\n\n```go\nfunc GetState0(ctx contractapi.TransactionContextInterface, key string) ([]byte, error)\n```\nGetState0 根据键查询,一般查询\t传入 ctx, 键值\n\n```go\nfunc GetState1(ctx contractapi.TransactionContextInterface, keyName string, key string) ([]byte, error)\n```\nGetState1 富查询数据,针对单一键查询\t传入 ctx, 查询json格式, 键值\n\n```go\nfunc GetStateByPartialCompositeKeys(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)\n```\nreturns all assets using their composite key attributes ( can be used to retrieve all assets of a particular type using a simple key: for example \"companyMat\" as argument to retrieve all companies)\n\n```go\nfunc GetStateByPartialCompositeKeys2(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)\n```\nretrieve all available drugs from the ledger, which are available\n\n```go\nfunc GetStateHistory(ctx contractapi.TransactionContextInterface, key string) (*bytes.Buffer, error)\n```\nGetStateHistory returns all different states a specific key has stored in the history of the blockchain\n\n```go\nfunc GetStringForSelctorMemberListFromString(future string) string\n```\nGetStringForSelctorMemberListFromString\n\n```go\nfunc GetTable(stub shim.ChaincodeStubInterface, args []string) (string, error)\n```\nQuerying table details by deal id\n\n```go\nfunc GetTableRow(\n\tstub shim.ChaincodeStubInterface,\n\ttable_name string,\n\trow_keys []string,\n\trow_value interface{},\n\tfailure_option GetTableRow_FailureOption,\n) (rowWasFound bool, err error)\n```\nIf row\\_value is nil, then don't bother unmarshaling the data.  Thus a check for the presence of a particular table row can be done by specifying nil for row\\_value.\n\n```go\nfunc GetTableRows(\n\tstub shim.ChaincodeStubInterface,\n\ttable_name string,\n\trow_keys []string,\n) (chan []byte, error)\n```\nIf row\\_value is nil, then don't bother unmarshaling the data.  Thus a check for the presence of a particular table row can be done by specifying nil for row\\_value.\n\n```go\nfunc GetTimestamp(ctx contractapi.TransactionContextInterface) (created time.Time, err error)\n```\nGetTimestamp ...\n\n```go\nfunc GetToken(stub shim.ChaincodeStubInterface) peer.Response\n```\nGetToken reads the value of the token from the database V5 Reurns the value or -1 in case MyToken doesn't exist\n\n```go\nfunc GetUId() (string, error)\n```\n\n```go\nfunc GetUpdateHistory(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印更新历史，输入名称以及id\n\n```go\nfunc GetVerifiedCertificate(ctx contractapi.TransactionContextInterface, msp string, rootPEM string, certChainPEM string, atTime time.Time) (*x509.Certificate, error)\n```\n\n```go\nfunc GetWorldState(ctx CustomTransactionContextInterface) error\n```\nGetWorldState : gets the world state and set it to ctc.data\n\n```go\nfunc GomockRexp(rexp string) gomock.Matcher\n```\nGomockRexp .\n\n```go\nfunc InString(slice []string, val string) (int, bool)\n```\n判断字符串是否在字符数组中\n\n```go\nfunc InheritAsset(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n继承工分\n\n```go\nfunc Init()\n```\n\n```go\nfunc InitCatalogNGAC(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc InitChaincode(t *testing.T) *shimtest.MockStub\n```\nInitChaicode creates the mock stub \u0026 initializes the chaincode 2.0 changed from shim to shimtest\n\n```go\nfunc InitContract() *model.SmartContract\n```\n\n```go\nfunc InitLedger() error\n```\n\n```go\nfunc InitializeCampaignCryptoParamsAsync(camId string, verifierURLs []string) error\n```\n\n```go\nfunc Insert[T common.ItemInterface](ctx common.TxCtxInterface, obj T) (err error)\n```\n\n```go\nfunc InsertTableRow(\n\tstub shim.ChaincodeStubInterface,\n\ttable_name string,\n\trow_keys []string,\n\tnew_row_value interface{},\n\tfailure_option InsertTableRow_FailureOption,\n\told_row_value interface{},\n) (rowWasFound bool, err error)\n```\nNOTE: This is the current abstraction to port old v0.6 style tables to current non-tables style ledger. Note that row\\_value must be json.Marshal-able. If old\\_row\\_value is not nil and the requested row is present, then the row will be unmarshaled into old\\_row\\_value before the new value (specified by row\\_value).  Note that if FAIL\\_BEFORE\\_OVERWRITE is triggered, then old\\_row\\_value will contain the row that existed already that triggered the failure. If an error is returned, then the table will not have been modified (TODO: Probably need to verify this).\n\n```go\nfunc IntToBytes(n int) []byte\n```\n\n```go\nfunc InterfaceIsNilOrIsZeroOfUnderlyingType(x interface{}) bool\n```\nTaken from [https://stackoverflow.com/questions/13901819/quick-way-to-detect-empty-values-via-reflection-in-go](https://stackoverflow.com/questions/13901819/quick-way-to-detect-empty-values-via-reflection-in-go)\n\n```go\nfunc IntermediateAndUserFromPEM(input []byte) ([]*x509.Certificate, *x509.Certificate, error)\n```\n\n```go\nfunc Invoke(stub shim.ChaincodeStubInterface, args []string) ([]byte, error)\n```\nInvoke processes debug methods\n\n```go\nfunc InvokeChaincode(\n\tstub shim.ChaincodeStubInterface, chaincodeName string, args []interface{},\n\tchannel string, target interface{}) (interface{}, error)\n```\nInvokeChaincode locally calls the specified chaincode and converts result into target data type\n\n```go\nfunc InvokeChaincodeOnChannel(stub shim.ChaincodeStubInterface, chanicodeName string, funcName string, payload string, channelID string) pb.Response\n```\nInvokeChaincodeOnChannel invokes a specified chaincode function on a different channel except the current channel\n\n```go\nfunc InvokeChaincodeParams(tx string, args ...string) [][]byte\n```\nInvokeChaincodeParams builds chaincode invoke params object.\n\n```go\nfunc IsAssetLocked(ctx contractapi.TransactionContextInterface, callerChaincodeID, assetAgreementBytesBase64 string) (bool, error)\n```\nIsLocked Query Functions IsAssetLocked cc is used to query the ledger and findout if an asset is locked or not\n\n```go\nfunc IsAssetLockedQueryUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\nIsAssetLocked cc is used to query the ledger and find out if an asset is locked or not (this uses the contractId)\n\n```go\nfunc IsCallerInteropChaincode(stub shim.ChaincodeStubInterface) (bool, error)\n```\nCheck if the caller is the Interop Chaincode\n\n```go\nfunc IsClientIINAgent(ctx contractapi.TransactionContextInterface) (bool, error)\n```\nCheck if the calling client has an IIN Agent attribute in its signing certificate\n\n```go\nfunc IsClientNetworkAdmin(ctx contractapi.TransactionContextInterface) (bool, error)\n```\nCheck if the calling client has an attribute in its signing certificate indicating that it is a privileged network administrator\n\n```go\nfunc IsClientRelay(stub shim.ChaincodeStubInterface) (bool, error)\n```\nCheck if the calling client has a relay attribute in its signing certificate\n\n```go\nfunc IsExist(ctx contractapi.TransactionContextInterface, key string) (bool, error)\n```\nIsExist 根据键查询,一般查询\t传入 ctx, 键值\n\n```go\nfunc IsFungibleAssetLocked(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\nIsFungibleAssetLocked cc is used to query the ledger and find out if a fungible asset is locked or not\n\n```go\nfunc Iterate(\n\titer shim.StateQueryIteratorInterface,\n\tfn func(key string, value []byte) error,\n)\n```\nIterate performs iteration over state query results calling \\`fn\\` for each record.\n\n```go\nfunc JSONFillMockPrvState(mock *shimtest.MockStub, collectionName string, keyValPairs ...interface{})\n```\nJSONFillMockPrvState .\n\n```go\nfunc JSONFillMockState(mock *shimtest.MockStub, keyValPairs ...interface{})\n```\nJSONFillMockState .\n\n```go\nfunc JSONUnmarshalPtr(bb []byte, to interface{}) (result interface{}, err error)\n```\nJsonUnmarshalPtr unmarshalls \\[]byte as json to pointer, and returns value pointed to\n\n```go\nfunc KeyExists(ctx common.TxCtxInterface, key string) bool\n```\nReturns true if the key exists in the ledger\n\n```go\nfunc KeyToSubKey(objKey *authpb.ItemKey, subType string) (subKey *authpb.ItemKey)\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) KontrakConfirm(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) KontrakCreate(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) KontrakFindAll(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) KontrakFindOne(ctx contractapi.TransactionContextInterface, idKontrak string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) KontrakFindOneHistory(ctx contractapi.TransactionContextInterface, idKontrak string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) KontrakUpdateKuantitas(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc LoanRatingR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nLoanRatingR reads state from blockchain\n\n```go\nfunc LoanRatingW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nLoanRatingW writes state to blockchain\n\n```go\nfunc LocalCall(ctx contractapi.TransactionContextInterface) bool\n```\nLocalCall checks wether this is a local call or not\n\n```go\nfunc LocalStoreAsset(ctx contractapi.TransactionContextInterface, id string, asset *Asset) error\n```\n\n```go\nfunc LocalStoreRoles(ctx contractapi.TransactionContextInterface, name string, result1 RoleResult2) error\n```\nstore role in blockchain\n\n```go\nfunc LockAsset(ctx contractapi.TransactionContextInterface, callerChaincodeID, assetAgreementBytesBase64, lockInfoBytesBase64 string) (string, error)\n```\nLock Functions LockAsset cc is used to record locking of an asset on the ledger\n\n```go\nfunc LockFungibleAsset(ctx contractapi.TransactionContextInterface, callerChaincodeID, fungibleAssetAgreementBytesBase64, lockInfoBytesBase64 string) (string, error)\n```\nLockFungibleAsset cc is used to record locking of a group of fungible assets of an asset-type on the ledger\n\n```go\nfunc LoggedError(err error, msg string) error\n```\nLoggedError wraps \\`err\\` error with \\`msg\\` message and logs it.\n\n```go\nfunc LoggedErrorf(err error, format string, args ...interface{}) error\n```\nLoggedErrorf wraps \\`err\\` error with formatted message and logs it.\n\n```go\nfunc MakeComposeKey(namespace string, attrs []string) (key string, err error)\n```\nMakeComposeKey creates a composite key from the given attributes\n\nBased on the \"github.com/hyperledger/fabric-chaincode-go/shim\" package's CreateCompositeKey so that we don't have to import the shim package in this package\n\n```go\nfunc MakeErrorRetval(error_message string, args ...interface{}) ([]byte, error)\n```\nPass through to Sprintf\n\n```go\nfunc MakeHiddenKey[T ItemInterface](obj T) (hiddenKey string, err error)\n```\n\n```go\nfunc MakeItemKeySuggestion(\n\tobjKey *authpb.ItemKey,\n\tsuggestionId string,\n) (suggestionKey string)\n```\n\n```go\nfunc MakeItemKeySuggestionKeyAttr(\n\tobjKey *authpb.ItemKey,\n\tsuggestionId string,\n) (attr []string)\n```\n\n```go\nfunc MakeJSONStateIterator(ctrl *gomock.Controller, namespace string,\n\tkeyValPairs ...interface{}) *MockStateQueryIteratorInterface\n```\nMakeJSONStateIterator .\n\n```go\nfunc MakeJSONStateIteratorFuncs(namespace string, keyValPairs ...interface{}) (interface{}, interface{})\n```\nMakeJSONStateIteratorFuncs .\n\n```go\nfunc MakeRefKeyAttrs(\n\tref *authpb.ReferenceKey,\n) (refKey1 []string, refKey2 []string, err error)\n```\n─────────────────────────────────────────────────────────────────────────────────\n\n```go\nfunc MakeRefKeys(\n\tref *authpb.ReferenceKey,\n) (refKey1 string, refKey2 string, err error)\n```\n\n```go\nfunc MakeStateKey(objKey *authpb.ItemKey) (key string)\n```\nMakeStateKey creates a composite key from the given attributes Key should be {\\\u003cITEM\\_TYPE\u003e}{COLLECTION\\_ID}{...ITEM\\_ID} Panics if ItemType or CollectionId is nil or an empty string\n\n```go\nfunc MakeSubItemKeyAtter(key *authpb.ItemKey) (attr []string)\n```\n\n```go\nfunc MakeSubKeyAtter[T ItemInterface](obj T) (attr []string)\n```\n\n```go\nfunc MakeSuggestionKeyAtter[T ItemInterface](\n\tobj T,\n\tsuggestionId string,\n) (attr []string)\n```\n\n```go\nfunc MakeSuggestionPrimaryKey[T ItemInterface](\n\tobj T,\n\tsuggestionId string,\n) (suggestionKey string, err error)\n```\nKey should be {\\\u003cSUGGESTION\u003e}{COLLECTION\\_ID}{ITEM\\_TYPE}{...ITEM\\_ID}{SuggestionId}\n\n```go\nfunc ManagerList(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印管理员信息\n\n```go\nfunc MockInit(stub *CouchDBMockStub, function string, args []byte) pb.Response\n```\n\n```go\nfunc MockInitTransaction(t *testing.T, stub *MockStubExtend, args [][]byte) string\n```\nMockIInit creates a mock invoke transaction using MockStubExtend\n\n```go\nfunc MockInvokeTransaction(t *testing.T, stub *MockStubExtend, args [][]byte) string\n```\nMockInvokeTransaction creates a mock invoke transaction using MockStubExtend\n\n```go\nfunc MockQueryTransaction(t *testing.T, stub *MockStubExtend, args [][]byte) string\n```\nMockQueryTransaction creates a mock query transaction using MockStubExtend\n\n```go\nfunc MoveToken(ctx contractapi.TransactionContextInterface, fromwallet, towallet, amount string) error\n```\ntransfer tokens helper\n\n```go\nfunc MustCreateCompositeKey(objectType string, attributes []string) string\n```\n\n```go\nfunc MyBSTExists(ctx contractapi.TransactionContextInterface, key string) (bool, error)\n```\n\n```go\nfunc NFTsFromStatusHelper(ctx contractapi.TransactionContextInterface, status string) ([][]string, error)\n```\nRetorna a lista de NFTs que possuirem o status de venda pesquisado na loja\n\n```go\nfunc NGORegistration(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n\n```go\nfunc New(ctx activity.InitContext) (activity.Activity, error)\n```\nNew creates a new Activity\n\n```go\nfunc NewAccountingService() *accountingService\n```\n\n```go\nfunc NewBaseToken() smartcontract.BasicToken\n```\n\n```go\nfunc NewChaincode(contracts ...contractapi.ContractInterface) *contractapi.ContractChaincode\n```\n\n```go\nfunc NewChaincodeClient(channelName, chaincodeName string, opts ...Opt) *chaincodeClient\n```\n\n```go\nfunc NewClientIdentity(stub shim.ChaincodeStubInterface) cid.ClientIdentity\n```\nNote:clientIdentityImpl has no public properties, so ToJson(cid.ClientIdentity) is empty\n\n```go\nfunc NewContext(stub shim.ChaincodeStubInterface, serializer serialize.Serializer, logger *zap.Logger) *context\n```\nNewContext creates new instance of router.Context\n\n```go\nfunc NewDebugPrivateQueryPutData(stub shim.ChaincodeStubInterface) shim.ChaincodeStubInterface\n```\nNewDebugPrivateQueryPutData notify places of passed empty keys with stacktrace.\n\n```go\nfunc NewFromGRPC(conn *grpc.ClientConn, identity msp.SigningIdentity, tlsCertHash []byte, logger *zap.Logger, endorseDefaultTimeout time.Duration) (api.Peer, error)\n```\nNewFromGRPC allows initializing peer from existing GRPC connection\n\n```go\nfunc NewHealthCheckService() *hcService\n```\n\n```go\nfunc NewIaoService() services.Iao\n```\n\n```go\nfunc NewLogger(name string) *zap.Logger\n```\nNewLogger creates new instance of shim.ChaincodeLogger\n\n```go\nfunc NewMockProvider() sysccprovider.SystemChaincodeProvider\n```\n\n```go\nfunc NewNFT() smartcontract.Erc721\n```\n\n```go\nfunc NewNonceContract() INonce\n```\n\n```go\nfunc NewPeer(dialCtx context.Context, c config.ConnectionConfig, identity msp.SigningIdentity, logger *zap.Logger) (api.Peer, error)\n```\nNewPeer returns new peer instance based on peer config\n\n```go\nfunc NewPrivateHistoryStubDecorator(collectionName string, histStrategy PrivateHistoryStrategy, stub shim.ChaincodeStubInterface) shim.ChaincodeStubInterface\n```\nNewPrivateHistoryStubDecorator decorates stub for using private data collection with history request.\n\n```go\nfunc NewProxy(carsChannel, carsChaincode string) *router.Chaincode\n```\nNewProxy created chaincode, related to cars chaincode\n\n```go\nfunc NewRepository() *repo\n```\n\n```go\nfunc NewSMC(t *testing.T, ccname string) (*MockChaincodeStubInterface, *shimtest.MockStub, *gomock.Controller)\n```\nNewSMC .\n\n```go\nfunc NewSequence(value uint64, tm int64) Sequence\n```\n\n```go\nfunc NewTokenService() *tokenService\n```\n\n```go\nfunc NewTxBurn() *txBurn\n```\n\n```go\nfunc NewTxExchange() *txExchange\n```\n\n```go\nfunc NewTxMint() *txMint\n```\n\n```go\nfunc NewTxReturn() *txReturn\n```\n\n```go\nfunc NewTxSideChainTransfer() *txSideChainTransfer\n```\n\n```go\nfunc NewTxTransfer() *txTransfer\n```\n\n```go\nfunc OrderedBy(less ...lessFunc) *multiSorter\n```\n\n```go\nfunc OrgList(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印组织信息\n\n```go\nfunc ParseCompositeKeyDefs(def string) (map[string][]string, error)\n```\nParseCompositeKeyDefs parses composite-key definition of format 'key1=field1,field2;key2=field3,field4'\n\n```go\nfunc ParseStringToFloat(s string) float64\n```\n\n```go\nfunc ParseStringToInt(s string) int\n```\n\n```go\nfunc PermissionsR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nPermissionsR reads state from blockchain\n\n```go\nfunc PermissionsW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nPermissionsW writes state to blockchain\n\n```go\nfunc PledgeAsset(ctx contractapi.TransactionContextInterface, assetJSON []byte, assetType, assetIdOrQuantity, remoteNetworkId, recipientCert string, expiryTimeSecs uint64) (string, error)\n```\nPledgeAsset locks an asset for transfer to a different ledger/network.\n\n```go\nfunc PostNodeToGraph(nodeData NodeData, url string)\n```\n\n```go\nfunc PostRelationshipToGraph(relationshipData RelationshipData, url string)\n```\n\n```go\nfunc PostToGraph(nodedata NodeData, url string)\n```\n\n```go\nfunc PrepMockStub() (*mocks.TransactionContext, *mocks.ChaincodeStub)\n```\n\n```go\nfunc ProcessApproveAccount(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc ProcessBidMatch(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc ProcessOffboardAsset(ctx contractapi.TransactionContextInterface, pvtCollName, assetID string) error\n```\n\n```go\nfunc ProcessOnboardAsset(ctx contractapi.TransactionContextInterface, pvtCollName, assetID string) error\n```\n\n```go\nfunc ProcessSetAccountActive(ctx contractapi.TransactionContextInterface, pvtCollName, account string, store policy.Store) error\n```\n\n```go\nfunc ProcessSetAccountInactive(ctx contractapi.TransactionContextInterface, pvtCollName, account string, store policy.Store) error\n```\n\n```go\nfunc ProcessSetAccountPending(ctx contractapi.TransactionContextInterface, pvtCollName, account string, store policy.Store) error\n```\n\n```go\nfunc PropertyR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nPropertyR reads state from blockchain\n\n```go\nfunc PropertyW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nPropertyW writes state to blockchain\n\n```go\nfunc ProtoUnmarshal(bb []byte, messageType proto.Message) (message proto.Message, err error)\n```\nProtoUnmarshal r unmarshalls \\[]byte as proto.Message to pointer, and returns value pointed to\n\n```go\nfunc PublicKeyDecodePEM(pemEncodedPub string) ecdsa.PublicKey\n```\nPublicKeyDecodePEM method decodes a PEM format public key. So the smart contract can lead with it, store in the blockchain, or even verify a signature. - pemEncodedPub - A PEM-format public key\n\n```go\nfunc Put[T common.ItemInterface](ctx common.TxCtxInterface, obj T) (err error)\n```\nPut puts the item into the ledger after json marshalling it\n\n```go\nfunc PutEdu(stub shim.ChaincodeStubInterface, edu Education) ([]byte, bool)\n```\n保存edu args: education\n\n```go\nfunc PutPrivacyData(stub shim.ChaincodeStubInterface, privacyData PrivacyData) ([]byte, bool)\n```\n\n```go\nfunc PutState(ctx contractapi.TransactionContextInterface, key string, v interface{}) (err error)\n```\nPutState takes care of marshalling the state value before storing it in the World State with the specified key\n\n```go\nfunc (pc *PalmOilContract) QueryAllCollectors(ctx contractapi.TransactionContextInterface) ([]*Collector, error)\n```\nQueryAllCollectors retrieves all collectors from the ledger\n\n```go\nfunc (pc *PalmOilContract) QueryAllCommodities(ctx contractapi.TransactionContextInterface) ([]*Commodity, error)\n```\nQueryAllCommodities retrieves all commodities from the ledger\n\n```go\nfunc (pc *PalmOilContract) QueryAllProcessedCommodities(ctx contractapi.TransactionContextInterface) ([]*ProcessedCommodity, error)\n```\nQueryAllProcessedCommodities retrieves all processed commodities from the ledger\n\n```go\nfunc (doc *DeliveryOrderContract) QueryAllRequestDetails(ctx contractapi.TransactionContextInterface) ([]*RequestDetails, error)\n```\n\n```go\nfunc QueryByKey(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\n\n```go\nfunc QueryByTxID(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\n\n```go\nfunc (pc *PalmOilContract) QueryCollectorByID(ctx contractapi.TransactionContextInterface, id string) (*Collector, error)\n```\nQueryCollectorByID retrieves a collector by its ID from the ledger\n\n```go\nfunc (pc *PalmOilContract) QueryCommodityByID(ctx contractapi.TransactionContextInterface, commodityID string) (*Commodity, error)\n```\n\n```go\nfunc QueryCouchDB(ctx contractapi.TransactionContextInterface, query string) (queryResult *bytes.Buffer, err error)\n```\nQueryCouchDB lets you execute rich CouchDB queries\n\n```go\nfunc QueryCouchDBWithPagination(ctx contractapi.TransactionContextInterface, query string, pageSize int32, bookmark string) (*bytes.Buffer, error)\n```\nQueryCouchDB lets you execute rich CouchDB queries with pagination\n\n```go\nfunc QueryEnclaveCredentials(stub shim.ChaincodeStubInterface, channelId, chaincodeId, enclaveId string) (*protos.Credentials, error)\n```\n\n```go\nfunc QueryPrivateData(ctx contractapi.TransactionContextInterface, collection string, query string) (queryResult *bytes.Buffer, err error)\n```\nQueryPrivateData lets you execute rich private data queries\n\n```go\nfunc (doc *DeliveryOrderContract) QueryRequestDetailByID(ctx contractapi.TransactionContextInterface, id string) (*RequestDetails, error)\n```\n\n```go\nfunc QueryServiceTrade(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印服务记录，可打印所有服务记录以及指定服务记录 输入交易id、交易双方id和交易id，即可查询两人间的所有服务记录\n\n```go\nfunc QueryServicingStatus(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印服务状态，可打印所有服务状态以及指定服务状态 输入老人id以及服务类型id，即可查询指定服务状态\n\n```go\nfunc ReadBidMatch(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc ReadCsv(filename string) ([][]string, error)\n```\nreads CSV\n\n```go\nfunc ReadOrder(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc ReadPayment(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc ReadPaymentDetail(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc ReadPlatformContract(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc ReadUserProfile(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc RechargeAsset(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n充值工分\n\n```go\nfunc RechargeList(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n充值查询,可根据txid查询指定记录，也可以查询所有记录\n\n```go\nfunc ReclaimAsset(ctx contractapi.TransactionContextInterface, pledgeId, recipientCert, remoteNetworkId, claimStatusBytes64 string) ([]byte, []byte, error)\n```\nReclaimAsset gets back the ownership of an asset pledged for transfer to a different ledger/network.\n\n```go\nfunc RecordPayment(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc RegisterOrder(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc Remove(slice []string, val string) ([]string, error)\n```\n删除index位置的字符串\n\n```go\nfunc RequestCampaignCryptoParamsSocket(camId string) (*putils.CampaignCryptoParams, error)\n```\n\n```go\nfunc (doc *DeliveryOrderContract) RequestDO(ctx contractapi.TransactionContextInterface, requestDetailsJSON string) error\n```\n\n```go\nfunc RequestToCreateVerifierCampaignCryptoParamsHandler(camId string, url string, cryptoParams *putils.CampaignCryptoParams) (*putils.VerifierCryptoParams, error)\n```\n\n```go\nfunc RequestToCreateVerifierCampaignCryptoParamsSocket(camId string, url string, cryptoParams *putils.CampaignCryptoParams) (*putils.VerifierCryptoParams, error)\n```\n\n```go\nfunc RequestVerification(camId string, r string, url string) (*string, error)\n```\n\n```go\nfunc RequestVerificationAsync(camId string, r string, url string, results chan putils.VerifierCommitmentChannelResult, wg *sync.WaitGroup)\n```\n\n```go\nfunc ResolveFlowData(toResolve string, context activity.Context) (value interface{}, err error)\n```\nResolveFlowData resolves and returns data from the flow's context, unmarshals JSON string to map\\[string]interface{}. The name to Resolve is a valid output attribute of a flogo activity, e.g., \\`activity\\[app\\_16].value\\` or \\`$.content\\`, which is shown in normal flogo mapper as, e.g., \"$.content\"\n\n```go\nfunc ResponseErrorSubstr(response peer.Response, errorSubstr ...interface{}) peer.Response\n```\nvariant of ResponseError that accepts substring, not just a prefix\n\n```go\nfunc Role2String(e Role) string\n```\n\n```go\nfunc RoleToJSON(role Role) ([]byte, error)\n```\nRoleToJSON : Converts Role Object to JSON\n\n```go\nfunc RollDice(seed *rand.Rand, max int) int\n```\n\n```go\nfunc RollDiceWithoutSeed(max int) int\n```\nkeep random all the same in different chaincode\n\n```go\nfunc Run(stub shim.ChaincodeStubInterface) ([]byte, errors.ICCError)\n```\nRun defines the rules of transaction execution for the chaincode.\n\n```go\nfunc SaveBalance(stub shim.ChaincodeStubInterface, owner, balance string) error\n```\n\n```go\nfunc SaveCompany(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\n\n```go\nfunc SaveERC20Metadata(stub shim.ChaincodeStubInterface, tokenName, symbol, owner string, amountUint uint) error\n```\n\n```go\nfunc SavePolicy(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\n\n```go\nfunc SaveService(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\n\n```go\nfunc SaveUpdate(ctx utils.RoleBasedTransactionContextInterface, product *Product) error\n```\nSaveUpdate saves a product to the ledger.\n\n```go\nfunc SellerR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nSellerR reads state from blockchain\n\n```go\nfunc SellerW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nSellerW writes state to blockchain\n\n```go\nfunc ServiceList(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印所有可选择服务\n\n```go\nfunc SetJSONNV(attr, value string) string\n```\nSetJSONNV returns a name value pair in JSON format\n\n```go\nfunc SetMockStubCCId(chaincodeStub *mocks.ChaincodeStub, ccName string)\n```\n\n```go\nfunc SetToken(stub shim.ChaincodeStubInterface) peer.Response\n```\nSetToken inrements the value of the token by 10 V5 Returns true if successful\n\n```go\nfunc SetupArgsArray(funcName string, args ...string) [][]byte\n```\nSetupArgsArray sets up the args arrays based on passed args\n\n```go\nfunc SetupCC() error\n```\n\n```go\nfunc Sign(content string, privateKeyStr string) (signature string, e error)\n```\n签名\n\n```go\nfunc SignPlatformContract(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc SliceIndex(limit int, predicate func(i int) bool) int\n```\n\n```go\nfunc SpecialTradeList(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n特殊交易查询\n\n```go\nfunc Start(cc Chaincode) error\n```\nStart chaincodes\n\n```go\nfunc StartContract(ctx contractapi.TransactionContextInterface, contractname string, departmentname string, signature string, contractcontent string) error\n```\n新增 输入信息为部门名，私钥签名，合同文本\n\n```go\nfunc StartInProc(chaincodename string, stream ClientStream, cc Chaincode) error\n```\nStartInProc is an entry point for system chaincodes bootstrap. It is not an API for chaincodes.\n\n```go\nfunc StateIteratorToMap(itr StateIterator) (map[string][]byte, error)\n```\nStateIteratorToMap takes an iterator, and iterates over the entire thing, encoding the KVs into a map, and then closes it.\n\n```go\nfunc StateRegKey(id channel.ID) string\n```\nStateRegKey generates the key for storing the channel state on the stub.\n\n```go\nfunc Status(current string, Fcolumn string) string\n```\npush data to buffer for additional tab table\n\n```go\nfunc StubFromContext(ctx sdk.Context) shim.ChaincodeStubInterface\n```\n\n```go\nfunc SubstractToken(ctx contractapi.TransactionContextInterface, amount, wallet string) error\n```\nsub Tokens\n\n```go\nfunc TempConstructQueryResponseFromIterator(resultsIterator shim.StateQueryIteratorInterface) (*bytes.Buffer, error)\n```\n\n```go\nfunc TempGetQueryResultForQueryString(ctx contractapi.TransactionContextInterface, queryString string) ([]byte, error)\n```\n\n```go\nfunc Test(t *testing.T)\n```\n\n```go\nfunc TestAPI(url string)\n```\n\n```go\nfunc TestAbac_Init(t *testing.T)\n```\n\n```go\nfunc TestAbac_Invoke(t *testing.T)\n```\n\n```go\nfunc TestAbac_Query(t *testing.T)\n```\n\n```go\nfunc TestAcknowledge(t *testing.T)\n```\n\n```go\nfunc TestAcknowledgeWhenChaincodeToChaincodeCallFails(t *testing.T)\n```\n\n```go\nfunc TestAcknowledgeWhenGetProposalFails(t *testing.T)\n```\n\n```go\nfunc TestAcknowledgeWhenPutHistoryFails(t *testing.T)\n```\n\n```go\nfunc TestAcknowledgeWhenPutProposalFails(t *testing.T)\n```\n\n```go\nfunc TestAcknowledgeWithInvalidInputParameters(t *testing.T)\n```\n\n```go\nfunc TestActionWrite(t *testing.T)\n```\n\n```go\nfunc TestAddEmojiTopic(t *testing.T)\n```\n\n```go\nfunc TestAgreeToTransferBadInput(t *testing.T)\n```\n\n```go\nfunc TestAgreeToTransferSuccessful(t *testing.T)\n```\n\n```go\nfunc TestAllowance(t *testing.T)\n```\n\n```go\nfunc TestApprove(t *testing.T)\n```\n\n```go\nfunc TestAssetExists(t *testing.T)\n```\n\n```go\nfunc TestAssetTransferQueries(t *testing.T)\n```\n\n```go\nfunc TestBankBranchContract(t *testing.T)\n```\n\n```go\nfunc TestBankBranchWR(t *testing.T)\n```\n\n```go\nfunc TestBranchConfigContract(t *testing.T)\n```\n\n```go\nfunc TestBuy(t *testing.T)\n```\n\n```go\nfunc TestBuyPacks(t *testing.T)\n```\n\n```go\nfunc TestBuyerContract(t *testing.T)\n```\n\n```go\nfunc TestCCFramework(t *testing.T)\n```\n\n```go\nfunc TestCalculator(t *testing.T)\n```\n\n```go\nfunc TestChaincode(t *testing.T)\n```\n\n```go\nfunc TestChaincodeInit(t *testing.T)\n```\n\n```go\nfunc TestChaincodeInvokeChaincode(t *testing.T)\n```\nTest the execution of a chaincode that invokes another chaincode.\n\n```go\nfunc TestChaincodeInvokeChaincodeErrorCase(t *testing.T)\n```\nTest the execution of a chaincode that invokes another chaincode with wrong parameters. Should receive error from from the called chaincode\n\n```go\nfunc TestChaincodeServerStart(t *testing.T)\n```\n\n```go\nfunc TestChaincodeStubAccessors(t *testing.T)\n```\n\n```go\nfunc TestChaincodeStubGetTxTimestamp(t *testing.T)\n```\n\n```go\nfunc TestChaincodeStubHandlers(t *testing.T)\n```\n\n```go\nfunc TestChaincodeStubSetEvent(t *testing.T)\n```\n\n```go\nfunc TestCheckChaincodeName(t *testing.T)\n```\n\n```go\nfunc TestCheckChaincodeVersion(t *testing.T)\n```\n\n```go\nfunc TestCheckCollectionMemberPolicy(t *testing.T)\n```\n\n```go\nfunc TestClaimRemoteAsset(t *testing.T)\n```\n\n```go\nfunc TestConfigerInit(t *testing.T)\n```\n\n```go\nfunc TestConfigerInvokeGetChannelConfig(t *testing.T)\n```\n\n```go\nfunc TestConfigerInvokeInvalidParameters(t *testing.T)\n```\n\n```go\nfunc TestConfigerInvokeJoinChainBySnapshot(t *testing.T)\n```\n\n```go\nfunc TestConfigerInvokeJoinChainCorrectParams(t *testing.T)\n```\n\n```go\nfunc TestConfigerInvokeJoinChainMissingParams(t *testing.T)\n```\n\n```go\nfunc TestConfigerInvokeJoinChainWrongParams(t *testing.T)\n```\n\n```go\nfunc TestConsentExists(t *testing.T)\n```\n\n```go\nfunc TestControllerMethods(t *testing.T)\n```\n\n```go\nfunc TestCountDownloads(t *testing.T)\n```\n\n```go\nfunc TestCreatFile(t *testing.T)\n```\ntest ============\n\n```go\nfunc TestCreateAsset(t *testing.T)\n```\n\n```go\nfunc TestCreateAssetBadInput(t *testing.T)\n```\n\n```go\nfunc TestCreateAssetForFailure(t *testing.T)\n```\n\n```go\nfunc TestCreateAssetSuccessful(t *testing.T)\n```\n\n```go\nfunc TestCreateCharacter(t *testing.T)\n```\n\n```go\nfunc TestCreateConsent(t *testing.T)\n```\n\n```go\nfunc TestCreatePlayer1(t *testing.T)\n```\n\n```go\nfunc TestCreatePlayer2(t *testing.T)\n```\n\n```go\nfunc TestCreateRecord(t *testing.T)\n```\n\n```go\nfunc TestCreateRecordWithEP(t *testing.T)\n```\n\n```go\nfunc TestCreateSample(t *testing.T)\n```\n\n```go\nfunc TestCreateTopic(t *testing.T)\n```\n\n```go\nfunc TestDefineInterface(t *testing.T)\n```\n\n```go\nfunc TestDeleteAsset(t *testing.T)\n```\n\n```go\nfunc TestDeleteConsent(t *testing.T)\n```\n\n```go\nfunc TestDeleteDefaultAsset(t *testing.T)\n```\n\n```go\nfunc TestDeleteTopic(t *testing.T)\n```\n\n```go\nfunc TestDeleteUser(t *testing.T)\n```\n\n```go\nfunc TestDemoChaincode(t *testing.T)\n```\n\n```go\nfunc TestDeploy(t *testing.T)\n```\n\n```go\nfunc TestDislikeContent(t *testing.T)\n```\n\n```go\nfunc TestDispatch(t *testing.T)\n```\n\n```go\nfunc TestDownvoteTopic(t *testing.T)\n```\n\n```go\nfunc TestErrors(t *testing.T)\n```\n\n```go\nfunc TestExample00_Invoke(t *testing.T)\n```\n\n```go\nfunc TestExample01_Invoke(t *testing.T)\n```\n\n```go\nfunc TestExchangeBondAssetWithTokenAsset(t *testing.T)\n```\ntest case for \"asset exchange\" happy path\n\n```go\nfunc TestExecuteInstall(t *testing.T)\n```\n\n```go\nfunc TestExecuteTimeout(t *testing.T)\n```\n\n```go\nfunc TestExtractDataAttributes(t *testing.T)\n```\n\n```go\nfunc TestFailingAccessControl(t *testing.T)\n```\n\n```go\nfunc TestFailingCC2CC(t *testing.T)\n```\n\n```go\nfunc TestFailureCases(t *testing.T)\n```\n\n```go\nfunc TestFunctionsWithAliases(t *testing.T)\n```\n\n```go\nfunc TestGetActionById(t *testing.T)\n```\n\n```go\nfunc TestGetAllAssets(t *testing.T)\n```\n\n```go\nfunc TestGetAllProposals(t *testing.T)\n```\n\n```go\nfunc TestGetAllTopics(t *testing.T)\n```\n\n```go\nfunc TestGetAllUsers(t *testing.T)\n```\n\n```go\nfunc TestGetByKey(t *testing.T)\n```\n\n```go\nfunc TestGetByKey2(t *testing.T)\n```\n\n```go\nfunc TestGetByKeyOnly(t *testing.T)\n```\n\n```go\nfunc TestGetByOpenRange(t *testing.T)\n```\n\n```go\nfunc TestGetByPartialKey(t *testing.T)\n```\n\n```go\nfunc TestGetByPartialKey2(t *testing.T)\n```\n\n```go\nfunc TestGetByQuery(t *testing.T)\n```\n\n```go\nfunc TestGetByRange(t *testing.T)\n```\n\n```go\nfunc TestGetChaincodeCollectionData(t *testing.T)\n```\n\n```go\nfunc TestGetChaincodeData(t *testing.T)\n```\n\n```go\nfunc TestGetChaincodes(t *testing.T)\n```\n\n```go\nfunc TestGetChaincodesFilter(t *testing.T)\n```\n\n```go\nfunc TestGetClientIdentity(t *testing.T)\n```\n\n```go\nfunc TestGetHistories(t *testing.T)\n```\n\n```go\nfunc TestGetHistory(t *testing.T)\n```\n\n```go\nfunc TestGetInstalledChaincodes(t *testing.T)\n```\n\n```go\nfunc TestGetMSPID(t *testing.T)\n```\n\n```go\nfunc TestGetMyAssets(t *testing.T)\n```\n\n```go\nfunc TestGetProposal(t *testing.T)\n```\n\n```go\nfunc TestGetStateByPartialCompositeKey(t *testing.T)\n```\n\n```go\nfunc TestGetStateByPartialCompositeKeyCollision(t *testing.T)\n```\n\n```go\nfunc TestGetStub(t *testing.T)\n```\n\n```go\nfunc TestGetTxContextFromHandler(t *testing.T)\n```\n\n```go\nfunc TestGetTxTimestamp(t *testing.T)\n```\n\n```go\nfunc TestGetUser(t *testing.T)\n```\n\n```go\nfunc TestGetVotingConfig(t *testing.T)\n```\n\n```go\nfunc TestHandleExternalRequest(t *testing.T)\n```\n\n```go\nfunc TestInitBondAssetLedger(t *testing.T)\n```\n\n```go\nfunc TestInitChaincode(t *testing.T)\n```\n\n```go\nfunc TestInitLedger(t *testing.T)\n```\nTestInitLedger tests the InitLedger function for success\n\n```go\nfunc TestInitNGAC(t *testing.T)\n```\n\n```go\nfunc TestInstall(t *testing.T)\n```\nTestInstall tests the install function with various inputs\n\n```go\nfunc TestIssue(t *testing.T)\n```\n\n```go\nfunc TestLifecycle(t *testing.T)\n```\n\n```go\nfunc TestLifecycleChaincodeRegularExpressionsMatch(t *testing.T)\n```\n\n```go\nfunc TestLikeContent(t *testing.T)\n```\n\n```go\nfunc TestListDungeon(t *testing.T)\n```\n\n```go\nfunc TestLoadBase64EncodedConfig(t *testing.T)\n```\n\n```go\nfunc TestLoadPEMEncodedConfig(t *testing.T)\n```\n\n```go\nfunc TestLoanContract(t *testing.T)\n```\n\n```go\nfunc TestLoanMarketShareWR(t *testing.T)\n```\n\n```go\nfunc TestLoanRatingContract(t *testing.T)\n```\n\n```go\nfunc TestLoanWR(t *testing.T)\n```\n\n```go\nfunc TestLockerLock(t *testing.T)\n```\n\n```go\nfunc TestLockerLockFail(t *testing.T)\n```\n\n```go\nfunc TestLockerUnlock(t *testing.T)\n```\n\n```go\nfunc TestLockerUnlockFail(t *testing.T)\n```\n\n```go\nfunc TestLscc(t *testing.T)\n```\n\n```go\nfunc TestMain(m *testing.M)\n```\n\n```go\nfunc TestMakeDungeon(t *testing.T)\n```\n\n```go\nfunc TestMaxDuration(t *testing.T)\n```\n\n```go\nfunc TestMockLedger(t *testing.T)\n```\n\n```go\nfunc TestMockMock(t *testing.T)\n```\nTestMockMock clearly cheating for coverage... but not. Mock should be tucked away under common/mocks package which is not included for coverage. Moving mockstub to another package will cause upheaval in other code best dealt with separately For now, call all the methods to get mock covered in this package\n\n```go\nfunc TestMockStateRangeQueryIterator(t *testing.T)\n```\n\n```go\nfunc TestMockStateRangeQueryIterator_openEnded(t *testing.T)\n```\nTestMockStateRangeQueryIterator\\_openEnded tests running an open-ended query for all keys on the MockStateRangeQueryIterator\n\n```go\nfunc TestMockstub(t *testing.T)\n```\n\n```go\nfunc TestMultiply(t *testing.T)\n```\nThis is a dummy test function - left as a exercise\n\n```go\nfunc TestNewChaincode(t *testing.T)\n```\n\n```go\nfunc TestNewChaincodeStub(t *testing.T)\n```\n\n```go\nfunc TestNewLifeCycleSysCC(t *testing.T)\n```\n\n```go\nfunc TestNewLifecycleEnabled(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResult(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultFailure(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultToCreateAppChannel(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultToUpdateOrgsInSystemChannel(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultToUpdateOrgsWhenTheConsortiumGroupIsMissing(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultWhenGetProposalFails(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultWhenPutHistoryFails(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultWhenPutProposalFails(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultWhenSetEventFails(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitResultWhenTaskIsFailure(t *testing.T)\n```\n\n```go\nfunc TestNotifyCommitWithInvalidInputParameters(t *testing.T)\n```\n\n```go\nfunc TestOpenAllPacks(t *testing.T)\n```\n\n```go\nfunc TestPeerConfiger_SubmittingOrdererGenesis(t *testing.T)\n```\n\n```go\nfunc TestPinBatch(t *testing.T)\n```\n\n```go\nfunc TestPing(t *testing.T)\n```\n\n```go\nfunc TestPledgeAsset(t *testing.T)\n```\n\n```go\nfunc TestPrepareQueryStatement(t *testing.T)\n```\n\n```go\nfunc TestPrivateData(t *testing.T)\n```\n\n```go\nfunc TestPutChaincodeCollectionData(t *testing.T)\n```\n\n```go\nfunc TestPutCompositeKey(t *testing.T)\n```\n\n```go\nfunc TestPutCompositeKey2(t *testing.T)\n```\n\n```go\nfunc TestPutCreateOnly(t *testing.T)\n```\n\n```go\nfunc TestPutData(t *testing.T)\n```\n\n```go\nfunc TestPutData2(t *testing.T)\n```\n\n```go\nfunc TestPutEmptyState(t *testing.T)\n```\nTestPutEmptyState confirms that setting a key value to empty or nil in the mock state deletes the key instead of storing an empty key.\n\n```go\nfunc TestQueries(t *testing.T)\n```\nTest the invocation of a transaction.\n\n```go\nfunc TestQueryAsset1(t *testing.T)\n```\n\n```go\nfunc TestQueryGeneratedBlock(t *testing.T)\n```\nTestQueryGeneratedBlock tests various queries for a newly generated block that contains two transactions\n\n```go\nfunc TestQueryGetBlockByHash(t *testing.T)\n```\n\n```go\nfunc TestQueryGetBlockByNumber(t *testing.T)\n```\n\n```go\nfunc TestQueryGetBlockByTxID(t *testing.T)\n```\n\n```go\nfunc TestQueryGetChainInfo(t *testing.T)\n```\n\n```go\nfunc TestQueryGetTransactionByID(t *testing.T)\n```\n\n```go\nfunc TestQueryLedgerAfterInit(t *testing.T)\n```\n\n```go\nfunc TestQueryNonexistentFunction(t *testing.T)\n```\n\n```go\nfunc TestQueryTopicsByCategory(t *testing.T)\n```\n\n```go\nfunc TestQueryTopicsByCreator(t *testing.T)\n```\n\n```go\nfunc TestQueryTopicsByTag(t *testing.T)\n```\n\n```go\nfunc TestQueryTopicsByTitle(t *testing.T)\n```\n\n```go\nfunc TestQueryUnknownAsset(t *testing.T)\n```\n\n```go\nfunc TestQueryUpdatedAsset1(t *testing.T)\n```\n\n```go\nfunc TestReadAsset(t *testing.T)\n```\n\n```go\nfunc TestReadConsent(t *testing.T)\n```\n\n```go\nfunc TestReadTopic(t *testing.T)\n```\n\n```go\nfunc TestReclaimAsset(t *testing.T)\n```\n\n```go\nfunc TestRedeem(t *testing.T)\n```\n\n```go\nfunc TestRegisterApi(t *testing.T)\n```\n\n```go\nfunc TestRegisterUser(t *testing.T)\n```\n\n```go\nfunc TestRemoveEmojiTopic(t *testing.T)\n```\n\n```go\nfunc TestReplayReadWrites(t *testing.T)\n```\n\n```go\nfunc TestRequestProposal(t *testing.T)\n```\n\n```go\nfunc TestResponseSerializer(t *testing.T)\n```\n\n```go\nfunc TestRoleContract(t *testing.T)\n```\n\n```go\nfunc TestRoleWR(t *testing.T)\n```\n\n```go\nfunc TestRouter(t *testing.T)\n```\n\n```go\nfunc TestScoreDungeon(t *testing.T)\n```\n\n```go\nfunc TestSellerContract(t *testing.T)\n```\n\n```go\nfunc TestSellerWR(t *testing.T)\n```\n\n```go\nfunc TestSetClientIdentity(t *testing.T)\n```\n\n```go\nfunc TestSetEvent(t *testing.T)\n```\n\n```go\nfunc TestSetMaxMaliciousOrgsInVotes(t *testing.T)\n```\n\n```go\nfunc TestSetStub(t *testing.T)\n```\n\n```go\nfunc TestSignature(t *testing.T)\n```\n\n```go\nfunc TestStart(t *testing.T)\n```\n\n```go\nfunc TestStartAndWaitLaunchError(t *testing.T)\n```\ntest container return error\n\n```go\nfunc TestStartAndWaitSuccess(t *testing.T)\n```\nsuccess case\n\n```go\nfunc TestStartAndWaitTimeout(t *testing.T)\n```\ntest timeout error\n\n```go\nfunc TestStartDungeon(t *testing.T)\n```\n\n```go\nfunc TestStoreAsset1(t *testing.T)\n```\n\n```go\nfunc TestTLSClientWithChaincodeServer(t *testing.T)\n```\n\n```go\nfunc TestThrottle(t *testing.T)\n```\n\n```go\nfunc TestThrottledChaincode(t *testing.T)\n```\n\n```go\nfunc TestTransactionsWR(t *testing.T)\n```\n\n```go\nfunc TestTransfer(t *testing.T)\n```\nTestTransfer tests the transfer function of the ERC20 token.\n\n```go\nfunc TestTransferAsset(t *testing.T)\n```\n\n```go\nfunc TestTransferAssetBadInput(t *testing.T)\n```\n\n```go\nfunc TestTransferAssetByNonOwner(t *testing.T)\n```\n\n```go\nfunc TestTransferAssetNonMatchingAppraisalValue(t *testing.T)\n```\n\n```go\nfunc TestTransferAssetSuccessful(t *testing.T)\n```\n\n```go\nfunc TestTransferAssetWithoutAnAgreement(t *testing.T)\n```\n\n```go\nfunc TestTransferInsufficientBalance(t *testing.T)\n```\nTestTransferInsufficientBalance tests the transfer function with insufficient balance.\n\n```go\nfunc TestUnsetMaxMaliciousOrgsInVotes(t *testing.T)\n```\n\n```go\nfunc TestUpdateAsset(t *testing.T)\n```\n\n```go\nfunc TestUpdateAsset1(t *testing.T)\n```\n\n```go\nfunc TestUpdateConsent(t *testing.T)\n```\n\n```go\nfunc TestUpdateFaceValue(t *testing.T)\n```\n\n```go\nfunc TestUpdateMaturityDate(t *testing.T)\n```\n\n```go\nfunc TestUpdateOwner(t *testing.T)\n```\n\n```go\nfunc TestUpdateTopic(t *testing.T)\n```\n\n```go\nfunc TestUpgrade(t *testing.T)\n```\nTestUpgrade tests the upgrade function with various inputs for basic use cases\n\n```go\nfunc TestUploadFolderRaw()\n```\n\n```go\nfunc TestUpvoteTopic(t *testing.T)\n```\n\n```go\nfunc TestUserCategoryContract(t *testing.T)\n```\n\n```go\nfunc TestValidate(t *testing.T)\n```\n\n```go\nfunc TestVote(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenChaincodeToChaincodeCallFails(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenGetProposalFails(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenPutHistoryFails(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenPutProposalFails(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenRejected(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenSetEventErrorOccurs(t *testing.T)\n```\n\n```go\nfunc TestVoteWhenTryingUpdate(t *testing.T)\n```\n\n```go\nfunc TestVoteWithInvalidInputParameters(t *testing.T)\n```\n\n```go\nfunc TestWithdrawProposal(t *testing.T)\n```\n\n```go\nfunc TestWithdrawProposalFails(t *testing.T)\n```\n\n```go\nfunc Test_CountLikes_Should_Return_Number_Of_Likes_Same_As_Set_By_Creating_LikeCountEntry(t *testing.T)\n```\n\n```go\nfunc Test_Coupon_Exchanged(t *testing.T)\n```\n\n```go\nfunc Test_CreateDataCall_Should_Create_Datacall_when_Datacall_Does_not_Exists(t *testing.T)\n```\nTest for CreateDataCall This function tests whether it returns error for empty Id. This function tests whether it returns 200 for Success. This function tests whether it creates CreateDataCall.\n\n```go\nfunc Test_Create_Show(t *testing.T)\n```\n\n```go\nfunc Test_GetDataCallByIdAndVersion_Should_Return_Datacall_With_Input_Datacall_ID_And_Version(t *testing.T)\n```\nTest for GetDataCallByIdAndVersion This function tests whether it returns error for empty Id. This function tests whether it retrives DataCall for paricular ID and version\n\n```go\nfunc Test_GetDataCallVersionsById_Should_Return_All_Versions_Of_Input_Datacall_Id(t *testing.T)\n```\nTest for GetDataCallVersionsById This function tests whether it returns error for empty Id. This function tests whether it retrives all the different versions of a DataCall.\n\n```go\nfunc Test_GetLikeByDataCallAndOrganization_Should_Return_Like_Based_On_Input_Organization(t *testing.T)\n```\n\n```go\nfunc Test_Init(t *testing.T)\n```\n\n```go\nfunc Test_IssueDataCall_Should_Issue_A_Datacall(t *testing.T)\n```\nTest for IssueDataCall This function tests whether it returns error for empty Id. This function tests whether it returns 200 for Success. This function tests whether it sets status to ISSUED.\n\n```go\nfunc Test_Issue_Coupon(t *testing.T)\n```\n\n```go\nfunc Test_ListDataCallsByCriteria_Should_Return_Datacalls_Based_On_Input_Criterion(t *testing.T)\n```\nTest for ListDataCallsByCriteria This function tests whether it returns error for empty Status.\n\n```go\nfunc Test_ListLikesByDataCall_Should_Return_List_Of_Likes_Based_On_Input_Criteria(t *testing.T)\n```\n\n```go\nfunc Test_MockWrongOrderOperation(t *testing.T)\n```\n\n```go\nfunc Test_MockWrongQuery(t *testing.T)\n```\n\n```go\nfunc Test_Purchase_Ticket(t *testing.T)\n```\n\n```go\nfunc Test_Register_Theatre(t *testing.T)\n```\n\n```go\nfunc Test_SaveNewDraft_Should_Save_An_Existing_Datacall_With_New_Version(t *testing.T)\n```\nTest for SaveNewDraft This function tests whether it returns error for empty Id. This function tests whether it returns 200 for Success. This function tests whether it creates new version of Datacall.\n\n```go\nfunc Test_ToggleLike_Should_Create_New_Like_For_A_Datacall_When_Like_Does_Not_Exists(t *testing.T)\n```\n\n```go\nfunc Test_ToggleLike_Should_Not_Create_New_Like_When_Datacall_Does_Not_Exists(t *testing.T)\n```\n\n```go\nfunc Test_ToggleLike_Should_Not_Update_Like_When_Like_Exists_With_Same_Status(t *testing.T)\n```\n\n```go\nfunc Test_ToggleLike_Should_Update_Like_When_Like_Exists_With_Different_Status(t *testing.T)\n```\n\n```go\nfunc Test_UpdateDataCall_Should_Update_An_Existing_Datacall(t *testing.T)\n```\nTest for UpdateDataCall This function tests whether it returns error for empty Id. This function tests whether it returns 200 for Success. This function tests whether it  updates status.\n\n```go\nfunc Test_houseSale(t *testing.T)\n```\n\n```go\nfunc ToChaincodeArgs(args ...string) [][]byte\n```\n\n```go\nfunc ToDeliveryOrderResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, deliveryOrder *domain.DeliveryOrder) *web.DeliveryOrderResponse\n```\n\n```go\nfunc ToKebunResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, kebun *domain.Kebun) *web.KebunResponse\n```\n\n```go\nfunc ToKontrakResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, kontrak *domain.Kontrak) *web.KontrakResponse\n```\n\n```go\nfunc ToPembayaranResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, pembayaran *domain.Pembayaran) *web.PembayaranResponse\n```\n\n```go\nfunc ToPenerimaanResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, penerimaan *domain.Penerimaan) *web.PenerimaanResponse\n```\n\n```go\nfunc ToPengirimanResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, pengiriman *domain.Pengiriman) *web.PengirimanResponse\n```\n\n```go\nfunc ToTransaksiItemResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, transaksiItem *domain.TransaksiItem) *web.TransaksiItemResponse\n```\n\n```go\nfunc ToTransaksiResponse(ctx contractapi.TransactionContextInterface, keyModification *queryresult.KeyModification, transaksi *domain.Transaksi) *web.TransaksiResponse\n```\n\n```go\nfunc ToWebResponse(status int, data interface{}, err error) *web.WebResponse\n```\n\n```go\nfunc TokenExists(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nTokenExists returns true if the token exists\n\n```go\nfunc TransactionR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nTransactionR reads state from blockchain\n\n```go\nfunc TransactionW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nTransactionW writes state to blockchain\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiConfirm(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiCreate(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiFindAll(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiFindOne(ctx contractapi.TransactionContextInterface, idTransaksi string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiItemCreate(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiItemFindAll(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc (c *RantaiPasokChaincodeImpl) TransaksiUpdateStatus(ctx contractapi.TransactionContextInterface, payload string) *web.WebResponse\n```\n\n```go\nfunc TransferAsset(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n转移工分\n\n```go\nfunc TransferGeneralAsset(ctx contractapi.TransactionContextInterface, generalCardNo string, voucherAmount int) error\n```\n\n```go\nfunc TransferGeneralVoucherAsset(ctx contractapi.TransactionContextInterface, generalCardNo string, amount int) error\n```\n\n```go\nfunc TransferManagedVoucherAsset(ctx contractapi.TransactionContextInterface, managedCardNo string, voucherAmount int) (string, error)\n```\n\\*\n\n\t共管账户票据交易\n\n```go\nfunc TransferVoucherAssetAgency(ctx contractapi.TransactionContextInterface, managedCardNo string, generalCardNo string, amount int) (string, error)\n```\n\\*\n\n\t票据交易\n\n派发时增加分销商的票据\n\n```go\nfunc TransferVoucherAssetIndividual(ctx contractapi.TransactionContextInterface, managedCardNo string, generalCardNo string, amount int) (string, error)\n```\n\\*\n\n\t票据交易\n\n派发时增加个体的票据\n\n```go\nfunc TransferVoucherAssetIssue(ctx contractapi.TransactionContextInterface, managedCardNo string, generalCardNo string, amount int) (string, error)\n```\n\\*\n\n\t票据交易\n\n派发时增加下发机构的票据\n\n```go\nfunc TryGetURL(url string)\n```\n\n```go\nfunc TryListingFiles(baseURL string)\n```\n\n```go\nfunc UnknownTransactionHandler(ctx CustomTransactionContextInterface) error\n```\nUnknownTransactionHandler logs details of a bad transaction request and returns a shim error\n\n```go\nfunc UnlockAsset(ctx contractapi.TransactionContextInterface, callerChaincodeID, assetAgreementBytesBase64 string) (string, error)\n```\nUnlock Functions UnlockAsset cc is used to record unlocking of an asset on the ledger\n\n```go\nfunc UnlockAssetUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) error\n```\nUnlockAssetUsingContractId cc is used to record unlocking of an asset on the ledger (this uses the contractId)\n\n```go\nfunc UnlockFungibleAsset(ctx contractapi.TransactionContextInterface, contractId string) error\n```\nUnlockFungibleAsset cc is used to record unlocking of a fungible asset on the ledger\n\n```go\nfunc Update(stub shim.ChaincodeStubInterface, args []string) (string, error)\n```\n\n```go\nfunc UpdateAccountStatusEvent(ctx contractapi.TransactionContextInterface, accountName, pvtColl string, status model.Status) error\n```\n\n```go\nfunc (pc *PalmOilContract) UpdateCollector(ctx contractapi.TransactionContextInterface, id string, name string, nib string, nik string, noHP string, email string, address string, capacity float64, partnersInput string) error\n```\nUpdateCollector updates an existing collector on the ledger\n\n```go\nfunc (doc *DeliveryOrderContract) UpdateDO(ctx contractapi.TransactionContextInterface, requestDetailsJSON string) error\n```\n\n```go\nfunc UpdateEmissionsWithToken(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n\n```go\nfunc UpdateExistingData(stub shim.ChaincodeStubInterface, DocPrefix string, rowKey []string, data interface{}) error\n```\nUpdateExistingData works similar to ChangeInfo function. However, it does not check if the document is already existed This is useful if we already query out the row before and do not want to query again.\n\n```go\nfunc UpdateServiceInfo(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n更新服务信息\n\n```go\nfunc UpdateTableRow(\n\tstub shim.ChaincodeStubInterface,\n\ttable_name string,\n\trow_keys []string,\n\tnew_row_value interface{},\n) (err error)\n```\nUpdateTableRow is similar to InsertTableRow without re-checking if the row is already exist\n\n```go\nfunc UpdateUserInfo(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n更新用户信息\n\n```go\nfunc UpdateUserProfile(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc UserCategoryR(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nUserCategoryR reads state from blockchain\n\n```go\nfunc UserCategoryW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nUserCategoryW writes state to blockchain\n\n```go\nfunc UserList(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\n打印用户信息\n\n```go\nfunc VerifyCommitmentSocketAsync(campaign *putils.Campaign, proof *putils.Proof) (bool, error)\n```\n\n```go\nfunc VerifySign(content string, signature string, publicKeyStr string) bool\n```\n验签  内容 签名，公钥\n\n```go\nfunc WrapShimMockDelPrivState(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockDelPrivState .\n\n```go\nfunc WrapShimMockDelState(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockDelState .\n\n```go\nfunc WrapShimMockGetPrivState(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockGetPrivState .\n\n```go\nfunc WrapShimMockGetState(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockGetState .\n\n```go\nfunc WrapShimMockPutPrivState(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockPutPrivState .\n\n```go\nfunc WrapShimMockPutState(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockPutState .\n\n```go\nfunc WrapShimMockTxID(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockTxID .\n\n```go\nfunc WrapShimMockTxStamp(mock *shimtest.MockStub) interface{}\n```\nWrapShimMockTxStamp .\n\n```go\nfunc Write(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n============================================================================================================================ write() - genric write variable into ledger\n\nShows Off PutState() - writting a key/value into the ledger\n\nInputs - Array of strings\n\n\t  0   ,    1\n\t key  ,  value\n\t\"abc\" , \"test\"\n\n============================================================================================================================\n\n```go\nfunc WriteLedger(ctx contractapi.TransactionContextInterface, obj interface{}, key string) error\n```\nWriteLedger 写入账本\t传入 ctx, 结构体, 键值\n\n```go\nfunc WriteUsageSliceToState(ctx contractapi.TransactionContextInterface, slice UsageSlice) error\n```\nWriteUsageSliceToState writes a UsageSlice to the state\n\n```go\nfunc WriteWalletStore(\n\tctx contractapi.TransactionContextInterface,\n\tws WalletStore,\n) error\n```\n\n## Types\n\n```go\ntype ABstore struct {\n\tcontractapi.Contract\n}\n```\nABstore Chaincode implementation\n\n```go\nfunc (t *ABstore) Delete(ctx contractapi.TransactionContextInterface, A string) error\n```\nDelete  an entity from state\n\n```go\nfunc (t *ABstore) Init(ctx contractapi.TransactionContextInterface, A string, Aval int, B string, Bval int) error\n```\n\n```go\nfunc (t *ABstore) Invoke(ctx contractapi.TransactionContextInterface, A, B string, X int) error\n```\nTransaction makes payment of X units from A to B\n\n```go\nfunc (t *ABstore) Query(ctx contractapi.TransactionContextInterface, A string) (string, error)\n```\nQuery callback representing the query of a chaincode\n\n```go\ntype AIModelType struct {\n\tType             string   `json:\"type\"`\n\tName             string   `json:\"name\"`\n\tLanguage         string   `json:\"language\"`\n\tPrice            uint32   `json:\"price\"`\n\tOwner            string   `json:\"owner\"`\n\tScore            uint32   `json:\"score\"`\n\tDownloaded       uint32   `json:\"downloaded\"`\n\tDescription      string   `json:\"description\"`\n\tVerificationOrgs []string `json:\"verification_orgs\"`\n\tContents         string   `json:\"contents`\n\tTimestamp        string   `json:\"timestamp\"`\n}\n```\nAIModelType ...\n\n```go\ntype APKList struct {\n\tHash string `json:\"Hash\"`\n\tAPK1 string `json:\"APK1\"`\n\tAPK2 string `json:\"APK2\"`\n}\n```\nAsset describes basic details of what makes up a simple asset\n\n```go\ntype AccessControlContract struct {\n\tcontractapi.Contract\n\tIOwnable\n}\n```\nAccessControlContract implements IAccessControl\n\n```go\nfunc NewAccessControlContract(ownable IOwnable) *AccessControlContract\n```\n\n```go\nfunc (accessControl *AccessControlContract) GetRoleAdmin(ctx context.ContextInterface, role []byte) ([]byte, error)\n```\nGetRoleAdmin returns role's admin role\n\n```go\nfunc (accessControl *AccessControlContract) GrantRole(ctx context.ContextInterface, role []byte, account string) error\n```\nGrantRole grants \\`role\\` to \\`account\\` only when operator has \\`role\\`'s admin role - emit event \\`RoleGranted\\` if succ\n\n```go\nfunc (accessControl *AccessControlContract) HasRole(ctx context.ContextInterface, role []byte, account string) (bool, error)\n```\nHasRole returns if account has been granted \\`role\\`\n\n```go\nfunc (accessControl *AccessControlContract) Initialize(ctx context.ContextInterface) error\n```\n\n```go\nfunc (accessControl *AccessControlContract) RenounceRole(ctx context.ContextInterface, msg context.Message, role []byte, account string) error\n```\nRenounceRole by account itself\n\n```go\nfunc (accessControl *AccessControlContract) RevokeRole(ctx context.ContextInterface, role []byte, account string) error\n```\nRevoke grants \\`role\\` to \\`account\\` only when operator has \\`role\\`'s admin role - emit event \\`RoleRevoked\\` if succ\n\n```go\nfunc (accessControl *AccessControlContract) SetRoleAdmin(ctx context.ContextInterface, role []byte, adminRole []byte) error\n```\nSetRoleAdmin only when operator is the owner - only default role - emit event \\`RoleAdminChanged\\`\n\n```go\ntype AccessControlTable struct {\n\tAccessTable map[string]SubjectAttribute `json:\"accessTable\"`\n\tExpiredTime int                         `json:\"expiredTime\"`\n\tPolicy      string                      `json:\"policy\"`\n}\n```\nk: resourceId v: {sid, subject} expiredTime: 30s\n\n```go\ntype AccessRecord struct {\n\tSubject string `json:\"subject\"`\n\tObject  string `json:\"object\"`\n\tTime    string `json:\"time\"`\n\tResult  string `json:\"result\"`\n}\n```\nAccess Record structure\n\n```go\ntype AccessResponse struct {\n\tEffect string `json:\"effect\"`\n\tToken  string `json:\"token\"`\n}\n```\nAccess Respones structure\n\n```go\ntype Account struct {\n\tId      string `json:\"Id\"`      // 账目id号\n\tUserId  string `json:\"userId\"`  // 该账目所属用户id号\n\tMonth   string `json:\"month\"`   // 月份\n\tYear    string `json:\"year\"`    // 年份\n\tIncome  int64  `json:\"income\"`  // 收入\n\tOutcome int64  `json:\"outcome\"` // 支出\n\tTotal   int64  `json:\"total\"`   // 总计\n}\n```\n记账 核算\n\n```go\nfunc GetAccount(stub shim.ChaincodeStubInterface, name string) (*Account, error)\n```\n\n```go\nfunc NewAccount(info Account) Account\n```\n\n```go\ntype AccountContract struct {\n}\n```\n\n```go\ntype AccountInterface interface {\n\t// RequestAccount allows accounts to request an account in the Blossom system. The name of the account is the\n\t// MSPID of the requesting user's member. Only users with the system_owner attribute can call this function\n\t// for their organization. Account names cannot be deleted because each account has their own private data collection\n\t// and they cannot be deleted.\n\tRequestAccount(ctx contractapi.TransactionContextInterface) error\n\n\t// ApproveAccount initializes the account's NGAC graph in the account's PDC, with the user invoking this function\n\t// being the admin in the graph.  The status of the account will be Pending after execution.  The admin user can\n\t// call UpdateAccountStatus to update the status of the account.\n\tApproveAccount(ctx contractapi.TransactionContextInterface, account string) error\n\n\t// UploadATO updates the ATO field of the Account with the given name. This is just the ATO attestation not a full ATO.\n\t// TRANSIENT MAP: export ATO=$(echo -n \"{\\\"ato\\\":\\\"\\\"}\" | base64 | tr -d \\\\n)\n\tUploadATO(ctx contractapi.TransactionContextInterface) error\n\n\t// UpdateAccountStatus updates the status of an account in Blossom. The status is one of:\n\t//\t\t\"PENDING_APPROVAL\",\n\t//\t\t\"PENDING_ATO\",\n\t//\t\t\"AUTHORIZED\",\n\t//\t\t\"UNAUTHORIZED_DENIED\",\n\t//\t\t\"UNAUTHORIZED_ATO\",\n\t//\t\t\"UNAUTHORIZED_OPTOUT\",\n\t//\t\t\"UNAUTHORIZED_SECURITY_RISK\",\n\t//\t\t\"UNAUTHORIZED_ROB\"\n\t// Updating the status to Authorized allows the account to read and write to blossom.\n\t// Updating the status to Pending allows the account to read write only account related information such as ATOs.\n\t// Updating the status to Inactive provides the same NGAC consequences as Pending\n\tUpdateAccountStatus(ctx contractapi.TransactionContextInterface, account string, status string) error\n\n\t// GetAccounts returns the public info of all accounts that are registered with Blossom.\n\tGetAccounts(ctx contractapi.TransactionContextInterface) ([]*model.AccountPublic, error)\n\n\t// GetAccount returns the account information of the account with the provided name.  Any fields of any account the user\n\t// does not have access to will not be returned.\n\tGetAccount(ctx contractapi.TransactionContextInterface, account string) (*model.Account, error)\n\n\t// GetHistory returns the transaction history of the account.\n\tGetHistory(ctx contractapi.TransactionContextInterface, account string) ([]model.HistorySnapshot, error)\n}\n```\nAccountInterface provides the functions to interact with Accounts in blossom.\n\n```go\nfunc NewAccountContract() AccountInterface\n```\n\n```go\ntype AccountingHandler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAccountingHandler() AccountingHandler\n```\n\n```go\nfunc (a *AccountingHandler) CalculateBalance(ctx contractapi.TransactionContextInterface, accountingBalance token.AccountingBalance) error\n```\nCalculateBalance calculate balance of list transaction from client.\n\n```go\nfunc (a *AccountingHandler) GetAccountingTx(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\nGetAccountingTx return limit 10 transaction have status pending to accounting balance.\n\n```go\ntype Activity struct {\n}\n```\nActivity is a stub for executing Hyperledger Fabric put operations\n\n```go\nfunc (a *Activity) Eval(ctx activity.Context) (done bool, err error)\n```\nEval implements activity.Activity.Eval\n\n```go\nfunc (a *Activity) Metadata() *activity.Metadata\n```\nMetadata implements activity.Activity.Metadata\n\n```go\nfunc (a *Activity) String() string\n```\n\n```go\ntype Actors struct {\n\tManufacturerId string `json:\"ManufacturerId\"`\n\tDistributorId  string `json:\"DistributorId\"`\n\tRetailerId     string `json:\"RetailerId\"`\n}\n```\n\n```go\ntype Additional struct {\n\tKey    string `json:\"Key\"`\n\tValue1 string `json:\"Value1\"`\n\tValue2 string `json:\"Value2\"`\n\tValue3 string `json:\"Value3\"`\n\tValue4 string `json:\"Value4\"`\n}\n```\nadditional tab\n\n```go\ntype Adjudicator struct {\n\tcontractapi.Contract\n}\n```\nAdjudicator is the chaincode that implements the adjudicator.\n\n```go\nfunc (a *Adjudicator) BurnToken(ctx contractapi.TransactionContextInterface,\n\tamountStr string) error\n```\nBurnToken unmarshalls the given argument to forward the burning request. The callee is derived from the transaction context.\n\n```go\nfunc (a *Adjudicator) Deposit(ctx contractapi.TransactionContextInterface,\n\tchID channel.ID, partStr string, amountStr string) error\n```\nDeposit unmarshalls the given arguments to forward the deposit request.\n\n```go\nfunc (a *Adjudicator) Holding(ctx contractapi.TransactionContextInterface,\n\tid channel.ID, partStr string) (string, error)\n```\nHolding unmarshalls the given arguments to forward the holding request. It returns the holding amount as a marshalled (string) \\*big.Int.\n\n```go\nfunc (a *Adjudicator) MintToken(ctx contractapi.TransactionContextInterface,\n\tamountStr string) error\n```\nMintToken unmarshalls the given argument to forward the minting request. The callee is derived from the transaction context.\n\n```go\nfunc (a *Adjudicator) Register(ctx contractapi.TransactionContextInterface,\n\tchStr string) error\n```\nRegister unmarshalls the given argument to forward the register request.\n\n```go\nfunc (a *Adjudicator) StateReg(ctx contractapi.TransactionContextInterface,\n\tid channel.ID) (string, error)\n```\nStateReg unmarshalls the given argument to forward the state reg request. It returns the retrieved state reg marshalled as string.\n\n```go\nfunc (a *Adjudicator) TokenBalance(ctx contractapi.TransactionContextInterface,\n\tid string) (string, error)\n```\nTokenBalance unmarshalls the given argument to forward the token balance request. It returns the balance as a marshalled (string) \\*big.Int.\n\n```go\nfunc (a *Adjudicator) TotalHolding(ctx contractapi.TransactionContextInterface,\n\tid channel.ID, partsStr string) (string, error)\n```\nTotalHolding unmarshalls the given arguments to forward the total holding request. It returns the sum of all holding amount of the given participants as a marshalled (string) \\*big.Int.\n\n```go\nfunc (a *Adjudicator) TransferToken(ctx contractapi.TransactionContextInterface,\n\treceiverStr string, amountStr string) error\n```\nTransferToken unmarshalls the given arguments to forward the token transfer request. The sender of the tokens is derived from the transaction context.\n\n```go\nfunc (a *Adjudicator) Withdraw(ctx contractapi.TransactionContextInterface,\n\treqStr string) (string, error)\n```\nWithdraw unmarshalls the given argument to forward the withdrawal request. It returns the withdrawal amount as a marshalled (string) \\*big.Int.\n\n```go\ntype AdminContractContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *AdminContractContract) CreateCapitalAccount(ctx contractapi.TransactionContextInterface, fundId string, investorId string) error\n```\n\n```go\nfunc (s *AdminContractContract) CreateCapitalAccountAction(ctx contractapi.TransactionContextInterface, type_ string, amount string, full bool, date string, period int) error\n```\n\n```go\nfunc (s *AdminContractContract) CreateFund(ctx contractapi.TransactionContextInterface, fundId string, name string, inceptionDate string) error\n```\n\n```go\nfunc (s *AdminContractContract) CreateInvestor(ctx contractapi.TransactionContextInterface, name string) error\n```\n\n```go\nfunc (s *AdminContractContract) CreatePortfolio(ctx contractapi.TransactionContextInterface, fundId, name string) error\n```\n\n```go\nfunc (s *AdminContractContract) CreatePortfolioAction(ctx contractapi.TransactionContextInterface, fundId string, portfolioId string, type_ string, date string, period int, name string, cusip string, amount string, currency string) error\n```\n\n```go\nfunc (s *AdminContractContract) QueryCapitalAccountActionsByAccountPeriod(ctx contractapi.TransactionContextInterface, fundId string, capitalAccountId string, period int) ([]*CapitalAccountAction, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryCapitalAccountActionsByFund(ctx contractapi.TransactionContextInterface, fundId string) ([]*CapitalAccountAction, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryCapitalAccountsByFund(ctx contractapi.TransactionContextInterface, fundId string) ([]*CapitalAccount, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryCapitalAccountsByInvestor(ctx contractapi.TransactionContextInterface, fundId string, investorId string) ([]*CapitalAccount, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryFundById(ctx contractapi.TransactionContextInterface, fundId string) (*Fund, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryFundByName(ctx contractapi.TransactionContextInterface, name string) (*Fund, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryInvestorById(ctx contractapi.TransactionContextInterface, investorId string) (*Investor, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryInvestorByName(ctx contractapi.TransactionContextInterface, name string) (*Investor, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryPortfolioByFund(ctx contractapi.TransactionContextInterface, fundId string) (*Portfolio, error)\n```\n\n```go\nfunc (s *AdminContractContract) QueryPortfolioByName(ctx contractapi.TransactionContextInterface, fundId string, name string) (*Portfolio, error)\n```\n\n```go\ntype AdvancedTypesContract struct {\n\tcontractapi.Contract\n}\n```\nAdvancedTypesContract a contract for managing non-string types in the chaincode\n\n```go\nfunc (atc *AdvancedTypesContract) CallAndResponseArray(sent []string) []string\n```\nCallAndResponseArray returns sent bool array\n\n```go\nfunc (atc *AdvancedTypesContract) CallAndResponseBasicAsset(sent BasicAsset) BasicAsset\n```\nCallAndResponseBasicAsset returns sent basic asset\n\n```go\nfunc (atc *AdvancedTypesContract) CallAndResponseBool(sent bool) bool\n```\nCallAndResponseBool returns sent bool\n\n```go\nfunc (atc *AdvancedTypesContract) CallAndResponseComplexAsset(sent ComplexAsset) ComplexAsset\n```\nCallAndResponseComplexAsset returns sent complex asset\n\n```go\nfunc (atc *AdvancedTypesContract) CallAndResponseFloat(sent float64) float64\n```\nCallAndResponseFloat returns sent float\n\n```go\nfunc (atc *AdvancedTypesContract) CallAndResponseInt(sent int) int\n```\nCallAndResponseInt returns sent int\n\n```go\nfunc (atc *AdvancedTypesContract) GetArray() []int\n```\nGetArray returns int array 1,2,3\n\n```go\nfunc (atc *AdvancedTypesContract) GetBasicAsset() BasicAsset\n```\nGetBasicAsset returns a basic asset with id \"OBJECT\\_1\" and value 100\n\n```go\nfunc (atc *AdvancedTypesContract) GetBool() bool\n```\nGetBool returns true\n\n```go\nfunc (atc *AdvancedTypesContract) GetComplexAsset() ComplexAsset\n```\nGetComplexAsset returns a basic asset with id \"OBJECT\\_1\" and value 100\n\n```go\nfunc (atc *AdvancedTypesContract) GetFloat() float64\n```\nGetFloat returns 1.1\n\n```go\nfunc (atc *AdvancedTypesContract) GetInt() int\n```\nGetInt returns 1\n\n```go\ntype AgencyOrg struct {\n\tID     string `json:\"id\"`     //分销商机构ID\n\tName   string `json:\"name\"`   //分销商机构名称\n\tStatus int    `json:\"status\"` //分销商机构状态(启用/禁用)\n}\n```\n\\*\n\n\t分销商机构属性\n\n```go\ntype AgencyOrgFinancialAccountPrivateData struct {\n\tID                    string `json:\"id\"`                    //零售商机构账户ID\n\tAgencyOrgID           string `json:\"agencyOrgID\"`           //分销商机构ID AgencyOrg.ID\n\tFinancialCode         string `json:\"financialCode\"`         //金融机构代码\n\tFinancialCardNo       string `json:\"financialCardNo\"`       //金融机构分销商机构账号\n\tCurrentBalance        int    `json:\"currentBalance\"`        //金融机构共管账户余额(现金)\n\tVoucherCurrentBalance int    `json:\"voucherCurrentBalance\"` //金融机构分销商机构账户凭证(token)余额\n\tAccStatus             int    `json:\"accStatus\"`             //系统账户状态(正常/冻结/禁用)\n}\n```\n\\*\n\n\t分销商机构金融账户私有数据属性\n\n```go\ntype AgencyOrgPrivateData struct {\n\tID        string  `json:\"id\"`        //分销商机构ID\n\tRateBasic float64 `json:\"rateBasic\"` //分销商机构基础费率\n}\n```\n\\*\n\n\t分销商机构私有数据属性\n\n```go\ntype Agent interface {\n\tEmitKey(val float32, event ...string)\n}\n```\n\n```go\ntype Agreement struct {\n\tID      string `json:\"asset_id\"`\n\tPrice   int    `json:\"price\"`\n\tTradeID string `json:\"trade_id\"`\n}\n```\n\n```go\ntype Aircraft struct {\n\tNationality  string `json:\"nationality\"`  // 航空器国籍\n\tType         string `json:\"type\"`         // 型别\n\tNumber       int    `json:\"number\"`       // 架数\n\tCallSign     int    `json:\"callsign\"`     // 呼号\n\tRegistration int    `json:\"registration\"` // 注册号\n}\n```\n\n```go\ntype Alumno struct {\n\tNombre     string `json:\"nombre\"`\n\tApellido   string `json:\"apellido\"`\n\tPadron     int    `json:\"padron\"`\n\tMateria    string `json:\"materia\"`\n\tAsistencia bool   `json:\"asistencia\"`\n}\n```\n\n```go\ntype AnnotatedBuffer struct {\n\tType string\n\tData []int\n}\n```\n\n```go\ntype AnonymizedKGSmartContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\ntype AnteHandlerProvider func(\n\tibcKeeper ibckeeper.Keeper,\n\tsigGasConsumer ante.SignatureVerificationGasConsumer,\n) sdk.AnteHandler\n```\nAnteHandlerProvider provides an anteHandler\n\n```go\ntype Appchain struct {\n\tId        string `json:\"id\"`\n\tBroker    string `json:\"broker\"`\n\tTrustRoot string `json:\"trustRoot\"`\n\tRuleAddr  string `json:\"ruleAddr\"`\n\tStatus    uint64 `json:\"status\"`\n\tExist     bool   `json:\"exist\"`\n}\n```\n\n```go\ntype Application struct {\n\tID     string `json:\"id\"`\n\tStatus string `json:\"status\"`\n\tAmount string `json:\"amount\"`\n\tGoal   string `json:\"goal\"`\n}\n```\nApplication describes basic details of what makes up a loan application\n\n```go\ntype Appointment struct {\n\tAppointmentID   string `json:\"appointmentID\"`\n\tPatientID       string `json:\"patientID\"`\n\tDoctorID        string `json:\"doctorID\"`\n\tAppointmentDate string `json:\"appointmentDate\"`\n\tAppointmentTime string `json:\"AppointmentTime\"`\n\tStatus          string `json:\"status\"`\n}\n```\n\n```go\ntype AppointmentContract struct {\n\tcontractapi.Contract\n\tAppointmentCount int\n}\n```\n\n```go\nfunc (ac *AppointmentContract) BookAppointment(ctx contractapi.TransactionContextInterface, doctorID string,\n\tpatientID string, appointmentDate string, appointmentTime string) error\n```\nBookAppointment books an appointment for a patient with a doctor\n\n```go\nfunc (ac *AppointmentContract) CancelAppointment(ctx contractapi.TransactionContextInterface, appointmentID string) error\n```\nCancelAppointment cancels an existing appointment\n\n```go\nfunc (ac *AppointmentContract) ChangeAppointment(ctx contractapi.TransactionContextInterface, appointmentID string,\n\tnewAppointmentDate string, newAppointmentTime string) error\n```\nChangeAppointment modifies the appointment time\n\n```go\nfunc (ac *AppointmentContract) GetAllAppointment(ctx contractapi.TransactionContextInterface) ([]map[string]interface{}, error)\n```\nGetAllAppointment retrieves all appointments with patient information\n\n```go\nfunc (ac *AppointmentContract) GetDoctorAvailability(ctx contractapi.TransactionContextInterface, doctorID string) (map[string][]string, error)\n```\nGetDoctorAvailability retrieve doctor's available\n\n```go\nfunc (ac *AppointmentContract) GetPatientNameByID(ctx contractapi.TransactionContextInterface, patientID string) (string, error)\n```\nGetPatientNameByID retrieves patient's name by patient ID\n\n```go\nfunc (ac *AppointmentContract) InitPatients(ctx contractapi.TransactionContextInterface) error\n```\nInitPatients initiates a few patients information\n\n```go\nfunc (ac *AppointmentContract) SetDoctorAvailability(ctx contractapi.TransactionContextInterface, doctorID string) error\n```\nSetDoctorAvailability set doctor availability time\n\n```go\nfunc (ac *AppointmentContract) UpdateAppointmentStatus(ctx contractapi.TransactionContextInterface,\n\tappointmentID string, status string) error\n```\nUpdateAppointmentStatus updates the status of an appointment\n\n```go\nfunc (ac *AppointmentContract) UpdateDoctorAvailability(ctx contractapi.TransactionContextInterface, doctorID string, availability map[string][]string) error\n```\nUpdateDoctorAvailability updates the availability of a doctor in the ledger\n\n```go\ntype ApprovalForAll struct {\n\tOwner    string `json:\"owner\"`\n\tOperator string `json:\"operator\"`\n\tApproved bool   `json:\"approved\"`\n}\n```\nApprovalForAll MUST emit when approval for a second party/operator address to manage all tokens for an owner address is enabled or disabled (absence of an event assumes disabled).\n\n```go\ntype ArgeChecker func(name base.MethodName) (interface{}, error2.IBaseError)\n```\n\n```go\ntype Args struct {\n\tUUIDs      string   `json:\"uuids\"`\n\tBatchHash  string   `json:\"batchHash\"`\n\tPayloadRef string   `json:\"payloadRef\"`\n\tContexts   []string `json:\"contexts\"`\n}\n```\n\n```go\ntype ArgsChecker = func(args []string) error3.IBaseError\n```\n\n```go\ntype ArgsConverter = func(args []string) (interface{}, error3.IBaseError)\n```\n\n```go\ntype ArgsDecrypter = func(data interface{}, version string) (interface{}, error3.IBaseError)\n```\n\n```go\ntype ArgsParameter struct {\n\tArgsChecker   ArgsChecker\n\tArgsConverter ArgsConverter\n}\n```\n\n```go\nfunc NewDefaultCheckerParameter(ArgsConverter ArgsConverter) ArgsParameter\n```\n\n```go\ntype AriesAgent struct {\n\tAgentID     string `json:\"agentID\"`\n\tAgentType   string `json:\"agentType\"`\n\tAgentStatus string `json:\"status\"`\n}\n```\n\n```go\ntype Artifacts struct {\n\t// ConfigUpdate contains the base64 string representation of the common.ConfigUpdate\n\tConfigUpdate string `json:\"configUpdate\"`\n\n\t// Signatures contains a map of signatures: mspID -\u003e base64 string representation of common.ConfigSignature\n\tSignatures map[string]string `json:\"signatures,omitempty\" metadata:\",optional\"`\n}\n```\nArtifacts contains artifacts for a channel update proposal\n\n```go\ntype Artwork struct {\n\tArtID         string  `json:\"artID\"`\n\tTitle         string  `json:\"title\"`\n\tDescription   string  `json:\"description\"`\n\tArtist        string  `json:\"artist\"`\n\tMinBid        float64 `json:\"minBid\"`\n\tReservePrice  float64 `json:\"reservePrice\"`\n\tStartTime     int64   `json:\"startTime\"`\n\tBiddingPeriod int64   `json:\"biddingPeriod\"`\n\tRevealPeriod  int64   `json:\"revealPeriod\"`\n\tAuctionEnd    int64   `json:\"auctionEnd\"`\n\tHighestBid    float64 `json:\"highestBid\"`\n\tHighestBidder string  `json:\"highestBidder\"`\n\tStatus        string  `json:\"status\"`\n}\n```\n\n```go\ntype Asset struct {\n\t//Type  string `json:\"objectType\"` //Type is used to distinguish the various types of objects in state database\n\tID  string `json:\"ID\"`\n\tRep int    `json:\"rep\"`\n\t//Size  int    `json:\"size\"`\n\tOwner string `json:\"owner\"`\n}\n```\nAsset describes main asset details that are visible to all organizations\n\n```go\nfunc NewAsset(ctx ...contractapi.TransactionContextInterface) *Asset\n```\n\n```go\ntype Asset2 struct {\n\tID          string `json:\"ID\"`\n\tReadFlag    bool   `json:\"ReadFlag\"`\n\tConsentFlag bool   `json:\"ConsentFlag\"`\n\tOwner       string `json:\"owner\"`\n}\n```\n\n```go\ntype AssetConsent struct {\n\tID          string `json:\"ID\"`\n\tConsentFlag bool   `json:\"ConsentFlag\"`\n\tBlockedFlag bool   `json:\"BlockedFlag\"`\n}\n```\n\n```go\ntype AssetContract struct {\n\tcontractapi.Contract\n}\n```\nAssetContract contract for managing CRUD for Asset\n\n```go\nfunc (c *AssetContract) AssetExists(ctx contractapi.TransactionContextInterface, assetID string) (bool, error)\n```\nAssetExists returns true when asset with given ID exists in world state\n\n```go\nfunc (c *AssetContract) CreateAsset(ctx contractapi.TransactionContextInterface, assetID string, name string, price int) error\n```\nCreateAsset creates a new instance of Asset\n\n```go\nfunc (c *AssetContract) DeleteAsset(ctx contractapi.TransactionContextInterface, assetID string) error\n```\nDeleteAsset deletes an instance of Asset from the world state\n\n```go\nfunc (c *AssetContract) ReadAsset(ctx contractapi.TransactionContextInterface, assetID string) (*Asset, error)\n```\nReadAsset retrieves an instance of Asset from the world state\n\n```go\nfunc (c *AssetContract) UpdateAsset(ctx contractapi.TransactionContextInterface, assetID string, newName string, newPrice int) error\n```\nUpdateAsset retrieves an instance of Asset from the world state and updates its name and price\n\n```go\ntype AssetExchangeAgreement struct {\n\tAssetType string `json:\"type\"`\n\tId        string `json:\"id\"`\n\tLocker    string `json:\"locker\"`\n\tRecipient string `json:\"recipient\"`\n}\n```\n\n```go\ntype AssetExchangeChainCode struct {\n}\n```\n\n```go\nfunc (t *AssetExchangeChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (t *AssetExchangeChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype AssetHistory struct {\n\tAssetID        string `json:\"asset_id\"`\n\tOriginOwnerID  string `json:\"origin_owner_id\"`\n\tCurrentOwnerID string `json:\"current_owner_id\"`\n}\n```\nAssetHistory 资产变更记录\n\n```go\ntype AssetHistoryEntry struct {\n\tTxID      string    `json:\"TxID\"`\n\tTimestamp time.Time `json:\"Timestamp\"`\n}\n```\nAssetHistoryEntry describes an entry in the asset transaction history\n\n```go\ntype AssetInfo struct {\n\tDocumentID  string `json:\"DocumentID\"`\n\tOwner       string `json:\"Owner\"`\n\tDocumentCID string `json:\"DocumentCID\"`\n\tTimestamp   string `json:\"Timestamp\"`\n}\n```\n\n```go\ntype AssetInfoOwner struct {\n\tDocumentID  string   `json:\"DocumentID\"`\n\tOwner       string   `json:\"Owner\"`\n\tDocumentCID string   `json:\"DocumentCID\"`\n\tAccessList  []string `json:\"AccessList\"`\n\tTimestamp   string   `json:\"Timestamp\"`\n}\n```\n\n```go\ntype AssetInterface interface {\n\t// OnboardAsset adds a new software asset to Blossom.  This will create a new asset object on the ledger and in the\n\t// NGAC graph. Assets are identified by the ID field. The user performing the request will need to\n\t// have permission to add an asset to the ledger. The asset will be an object attribute in NGAC and the\n\t// asset licenses will be objects that are assigned to the asset.\n\t// TRANSIENT MAP: export ATO=$(echo -n \"{\\\"licenses\\\":\\\"\\\"}\" | base64 | tr -d \\\\n)\n\tOnboardAsset(ctx contractapi.TransactionContextInterface, id string, name string, onboardDate string, expiration string) error\n\n\t// OffboardAsset removes an existing asset in Blossom.  This will remove the license from the ledger\n\t// and from NGAC. An error will be returned if there are any accounts that have checked out the asset\n\t// and the licenses are not returned\n\tOffboardAsset(ctx contractapi.TransactionContextInterface, id string) error\n\n\t// GetAssets returns all software assets in Blossom. This information includes which accounts have licenses for each\n\t// asset.\n\tGetAssets(ctx contractapi.TransactionContextInterface) ([]*model.AssetPublic, error)\n\n\t// GetAsset returns the info for the asset with the given asset ID.\n\tGetAsset(ctx contractapi.TransactionContextInterface, id string) (*model.Asset, error)\n\n\t// RequestCheckout requests software licenses for an account.  The requesting user must have permission to request\n\t// (i.e. System Administrator). The amount parameter is the amount of software licenses the account is requesting.\n\t// This number is subtracted from the total available for the asset. Returns the set of licenses that are now assigned to\n\t// the account.\n\t// TRANSIENT MAP: export CHECKOUT=$(echo -n \"{\\\"asset_id\\\":\\\"\\\", \\\"amount\\\":}\" | base64 | tr -d \\\\n)\n\tRequestCheckout(ctx contractapi.TransactionContextInterface) error\n\n\t// GetCheckoutRequests returns an array of checkout requests made by the account.\n\tGetCheckoutRequests(ctx contractapi.TransactionContextInterface, account string) ([]CheckoutRequest, error)\n\n\t// ApproveCheckout approves a checkout request made by an account.  The requested licenses for the asset will be\n\t// added to the account's private data collection. A user on the account can then call Licenses to get the approved\n\t// license keys.\n\t// TRANSIENT MAP: export CHECKOUT=$(echo -n \"{\\\"account\\\":\\\"\\\", \\\"asset_id\\\":\\\"\\\"}\" | base64 | tr -d \\\\n)\n\tApproveCheckout(ctx contractapi.TransactionContextInterface) error\n\n\t// GetLicenses get the license keys for an asset that an account has access to in their private data collection.\n\t// The account is extracted from the requesting identity.\n\tGetLicenses(ctx contractapi.TransactionContextInterface, account, assetID string) (map[string]string, error)\n\n\t// InitiateCheckin starts the process of returning licenses to Blossom. This is serves as a request to the blossom\n\t// admin to process the return of the licenses. This is because only the blossom admin can write to the licenses\n\t// private data collection to return the licenses to the available pool.\n\t// TRANSIENT MAP: export CHECKIN=$(echo -n \"{\\\"asset_id\\\":\\\"\\\", \\\"licenses\\\":[]}\" | base64 | tr -d \\\\n)\n\tInitiateCheckin(ctx contractapi.TransactionContextInterface) error\n\n\t// GetInitiatedCheckins returns the list of checkins initiated by the given account.\n\tGetInitiatedCheckins(ctx contractapi.TransactionContextInterface, account string) ([]CheckinRequest, error)\n\n\t// ProcessCheckin processes an account's checkin request (from InitiateCheckin) and returns the licenses to the\n\t// available pool in the licenses private data collection.\n\t// TRANSIENT MAP: export CHECKIN=$(echo -n \"{\\\"asset_id\\\":\\\"\\\", \\\"account\\\":\\\"\\\"}\" | base64 | tr -d \\\\n)\n\tProcessCheckin(ctx contractapi.TransactionContextInterface) error\n}\n```\nAssetInterface provides the functions to interact with Assets in fabric.\n\n```go\ntype AssetManagement struct {\n\tshim.Chaincode\n\t// contains filtered or unexported fields\n}\n```\nAssetManagement provides functions to manage asset locks by calling suitable functions in the interop contract\n\n```go\nfunc (am *AssetManagement) ClaimAsset(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement, claimInfo *common.AssetClaim) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) ClaimAssetUsingContractId(stub shim.ChaincodeStubInterface, contractId string, claimInfo *common.AssetClaim) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) ClaimFungibleAsset(stub shim.ChaincodeStubInterface, contractId string, claimInfo *common.AssetClaim) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) Configure(interopChaincodeId string)\n```\nUtility functions\n\n```go\nfunc (am *AssetManagement) GetAllAssetsLockedUntil(stub shim.ChaincodeStubInterface, lockExpiryTimeSecs uint64) ([]string, error)\n```\nAssumption is that the caller is either the recipient or the locker in each element in the list, but we will let the interop CC take care of it\n\n```go\nfunc (am *AssetManagement) GetAllFungibleLockedAssets(stub shim.ChaincodeStubInterface, lockRecipient string, locker string) ([]string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetAllLockedAssets(stub shim.ChaincodeStubInterface, lockRecipient string, locker string) ([]string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetAllLockedAssetsFunc(stub shim.ChaincodeStubInterface, funcName string, lockRecipient string, locker string) ([]string, error)\n```\n'lockRecipient': if blank, assume caller 'locker': if blank, assume caller\n\n```go\nfunc (am *AssetManagement) GetAllNonFungibleLockedAssets(stub shim.ChaincodeStubInterface, lockRecipient string, locker string) ([]string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetAssetTimeToRelease(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement) (uint64, error)\n```\n'lockRecipient': if blank, assume caller 'locker': if blank, assume caller\n\n```go\nfunc (am *AssetManagement) GetFungibleAssetTimeToRelease(stub shim.ChaincodeStubInterface, assetAgreement *common.FungibleAssetExchangeAgreement) (uint64, error)\n```\n'lockRecipient': if blank, assume caller 'locker': if blank, assume caller\n\n```go\nfunc (am *AssetManagement) GetHTLCHash(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement) (string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetHTLCHashByContractId(stub shim.ChaincodeStubInterface, contractId string) (string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetHTLCHashPreImage(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement) (string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetHTLCHashPreImageByContractId(stub shim.ChaincodeStubInterface, contractId string) (string, error)\n```\n\n```go\nfunc (am *AssetManagement) GetTotalFungibleLockedAssets(stub shim.ChaincodeStubInterface, assetType string) (uint64, error)\n```\n\n```go\nfunc (am *AssetManagement) IsAssetLocked(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement) (bool, error)\n```\nIf 'assetAgreement.Locker' or 'assetAgreement.Recipient' is blank, assume it's the caller\n\n```go\nfunc (am *AssetManagement) IsAssetLockedQueryUsingContractId(stub shim.ChaincodeStubInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) IsFungibleAssetLocked(stub shim.ChaincodeStubInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) LockAsset(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement, lockInfo *common.AssetLock) (string, error)\n```\n\n```go\nfunc (am *AssetManagement) LockFungibleAsset(stub shim.ChaincodeStubInterface, assetAgreement *common.FungibleAssetExchangeAgreement, lockInfo *common.AssetLock) (string, error)\n```\n\n```go\nfunc (am *AssetManagement) UnlockAsset(stub shim.ChaincodeStubInterface, assetAgreement *common.AssetExchangeAgreement) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) UnlockAssetUsingContractId(stub shim.ChaincodeStubInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (am *AssetManagement) UnlockFungibleAsset(stub shim.ChaincodeStubInterface, contractId string) (bool, error)\n```\n\n```go\ntype AssetManagementContract struct {\n\tcontractapi.Contract\n\t// contains filtered or unexported fields\n}\n```\nAssetManagementContract implements asset locking and claiming chaincode operations that can be inherited by another contract\n\n```go\nfunc (amc *AssetManagementContract) ClaimAsset(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string, claimInfoSerializedProto64 string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) ClaimAssetUsingContractId(ctx contractapi.TransactionContextInterface, contractId, claimInfoSerializedProto64 string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) ClaimFungibleAsset(ctx contractapi.TransactionContextInterface, contractId, claimInfoSerializedProto64 string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) Configure(interopChaincodeId string)\n```\nUtility functions\n\n```go\nfunc (amc *AssetManagementContract) ContractIdAssetsLookupMap(ctx contractapi.TransactionContextInterface, assetType, assetId, contractId string) error\n```\nwrite to the ledger the details needed at the time of unlock/claim\n\n```go\nfunc (amc *AssetManagementContract) ContractIdFungibleAssetsLookupMap(ctx contractapi.TransactionContextInterface, assetType string, numUnits uint64, contractId string) error\n```\nwrite to the ledger the details needed at the time of unlock/claim\n\n```go\nfunc (amc *AssetManagementContract) DeleteAssetLookupMaps(ctx contractapi.TransactionContextInterface, assetType, assetId string) error\n```\n\n```go\nfunc (amc *AssetManagementContract) DeleteAssetLookupMapsOnlyUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) error\n```\n\n```go\nfunc (amc *AssetManagementContract) DeleteAssetLookupMapsUsingContractId(ctx contractapi.TransactionContextInterface, assetType, assetId, contractId string) error\n```\n\n```go\nfunc (amc *AssetManagementContract) DeleteFungibleAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) error\n```\n\n```go\nfunc (amc *AssetManagementContract) FetchFromContractIdAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) (string, string, error)\n```\nFetch the contracted bond asset type and id from the ledger\n\n```go\nfunc (amc *AssetManagementContract) FetchFromContractIdFungibleAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) (string, uint64, error)\n```\nFetch the contracted fungible asset type and numUnits from the ledger\n\n```go\nfunc (amc *AssetManagementContract) GetAllAssetsLockedUntil(ctx contractapi.TransactionContextInterface, lockExpiryTimeSecs uint64) ([]string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetAllFungibleLockedAssets(ctx contractapi.TransactionContextInterface, lockRecipient string, locker string) ([]string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetAllLockedAssets(ctx contractapi.TransactionContextInterface, lockRecipient string, locker string) ([]string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetAllNonFungibleLockedAssets(ctx contractapi.TransactionContextInterface, lockRecipient string, locker string) ([]string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetAssetTimeToRelease(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string) (uint64, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetFungibleAssetTimeToRelease(ctx contractapi.TransactionContextInterface, fungibleAssetExchangeAgreementSerializedProto64 string) (uint64, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetHTLCHash(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string) (string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetHTLCHashByContractId(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetHTLCHashPreImage(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string) (string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetHTLCHashPreImageByContractId(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) GetTotalFungibleLockedAssets(ctx contractapi.TransactionContextInterface, assetType string) (uint64, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) IsAssetLocked(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) IsAssetLockedQueryUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) IsFungibleAssetLocked(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) LockAsset(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string, lockInfoSerializedProto64 string) (string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) LockFungibleAsset(ctx contractapi.TransactionContextInterface, fungibleAssetExchangeAgreementSerializedProto64 string, lockInfoSerializedProto64 string) (string, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) UnlockAsset(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) UnlockAssetUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) UnlockFungibleAsset(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) ValidateAndExtractAssetAgreement(assetAgreementSerializedProto64 string) (*common.AssetExchangeAgreement, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) ValidateAndExtractClaimInfo(claimInfoSerializedProto64 string) (*common.AssetClaim, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) ValidateAndExtractFungibleAssetAgreement(fungibleAssetExchangeAgreementSerializedProto64 string) (*common.FungibleAssetExchangeAgreement, error)\n```\n\n```go\nfunc (amc *AssetManagementContract) ValidateAndExtractLockInfo(lockInfoSerializedProto64 string) (*common.AssetLock, error)\n```\n\n```go\ntype AssetPledgeMap struct {\n\tPledgeID        string `json:\"pledgeid\"`\n\tRemoteNetworkID string `json:\"remotenetworkid\"`\n\tRecipient       string `json:\"recipient\"`\n}\n```\n\n```go\ntype AssetPrivateDetails struct {\n\tID       string `json:\"ID\"`\n\tName     string `json:\"name\"`\n\tEmail    string `json:\"email\"`\n\tSalt     string `json:\"salt\"`\n\tSCounter int    `json:\"sCounter\"`\n\tSSum     int    `json:\"sSum\"`\n}\n```\nAssetPrivateDetails describes details that are private to owners\n\n```go\ntype AssetPublicDetails struct {\n\tID     string `json:\"assetID\"`\n\tINECLV string `json:\"ineClv\"`\n\tEmail  string `json:\"email\"`\n\tOwner  string `json:\"owner\"`\n}\n```\nAssetPublicDetails describes main asset details that are visible to all organizations\n\n```go\ntype AssetRoute struct {\n\tID        string `json:\"ID\"`\n\tRouteData string `json:\"routeData\"`\n}\n```\n\n```go\ntype AssetSRB struct {\n\tDocType string `json:\"docType\"` //docType is used to distinguish the various types of objects in state database\n\tID      string `json:\"ID\"`      //the field tags are needed to keep case from bouncing around\n\tGroup   string `json:\"group\"`\n\tInPSB   string `json:\"inPSB\"`\n}\n```\n\n```go\ntype AssetWaste struct {\n\tID        string `json:\"ID\"`\n\tWasteData string `json:\"wasteData\"`\n}\n```\n\n```go\ntype Asset_Pointer struct {\n\tID       string\n\tRound_No int\n}\n```\n\n```go\ntype AssetsContract struct {\n\tcontractapi.Contract\n}\n```\nAssetsContract implements assets-managing Smart Contract transaction handlers.\n\n```go\nfunc NewAssetsContact() *AssetsContract\n```\nNewAssetsContact constructs new AssetsContract instance.\n\n```go\nfunc (ac *AssetsContract) All(ctx contractapi.TransactionContextInterface) ([]*models.Asset, error)\n```\nAll retrieves all models.Asset records from blockchain ledger.\n\n```go\nfunc (ac *AssetsContract) Exists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nExists determines whether the models.Asset exists in the blockchain ledger.\n\n```go\nfunc (ac *AssetsContract) Query(\n\tctx contractapi.TransactionContextInterface,\n\tqueryPayload string,\n) (*response.AssetsResponse, error)\n```\nQuery performs rich query against blockchain ledger in search of specific models.Asset records.\n\nTo support pagination it returns results wrapped in response.AssetsResponse, where 'scroll\\_id' will contain special key for continuing from where the previous request ended.\n\n```go\nfunc (ac *AssetsContract) QueryRaw(\n\tctx contractapi.TransactionContextInterface,\n\tqueryPayload string,\n) ([]*models.Asset, error)\n```\nQueryRaw performs rich query against blockchain ledger in search of specific models.Asset records. This transaction handler will ignore 'limit' and 'scroll\\_id' props of the requests.AssetsQuery, so as not supports pagination presenting.\n\n```go\nfunc (ac *AssetsContract) Remove(ctx contractapi.TransactionContextInterface, id string) error\n```\nRemove removes models.Asset from the blockchain ledger.\n\n```go\nfunc (ac *AssetsContract) RemoveAll(ctx contractapi.TransactionContextInterface) error\n```\nRemoveAll removes all assets from the blockchain ledger. !! This method is for development use only and it must be removed when all dev phases will be completed.\n\n```go\nfunc (ac *AssetsContract) Retrieve(ctx contractapi.TransactionContextInterface, id string) (*models.Asset, error)\n```\nRetrieve retrieves single models.Asset record from blockchain ledger by a given \\`id\\`.\n\n```go\nfunc (ac *AssetsContract) Transfer(ctx contractapi.TransactionContextInterface, id string, holder string) error\n```\nTransfer changes holder of the specific models.Asset.\n\n```go\nfunc (ac *AssetsContract) Upsert(ctx contractapi.TransactionContextInterface, data string) (string, error)\n```\nUpsert inserts new models.Asset record into the blockchain ledger or updates existing one.\n\n```go\ntype AttributeValue struct {\n\tValue     string\n\tIsDefined bool\n}\n```\nAttributeValue defines structure for attributes.\n\n```go\ntype Auction struct {\n\tAuctionID    string             `json:\"auctionID\"`\n\tItemSold     string             `json:\"item\"`\n\tSeller       string             `json:\"seller\"`\n\tQuantity     int                `json:\"quantity\"`\n\tOrgs         []string           `json:\"organizations\"`\n\tPrivateBids  map[string]BidHash `json:\"privateBids\"`\n\tRevealedBids map[string]FullBid `json:\"revealedBids\"`\n\tWinners      []Winners          `json:\"winners\"`\n\tPrice        int                `json:\"price\"`\n\tStatus       string             `json:\"status\"`\n\tAuditor      bool               `json:\"auditor\"`\n\tReservePrice int                `json:\"reservePrice\"`\n\tStartTime    string             `json:\"startTime\"`\n\tEndTime      string             `json:\"endTime\"`\n}\n```\nAuction data\n\n```go\ntype AuctionContract struct {\n\tcontractapi.Contract\n}\n```\nAuctionContract is the contract that is used to manage auctions.\n\n```go\nfunc (c *AuctionContract) CloseAuction(ctx contractapi.TransactionContextInterface, auctionID string) error\n```\nCloseAuction can be used by the seller to close the auction. This prevents bids from being added to the auction, and allows users to reveal their bid.\n\n```go\nfunc (c *AuctionContract) CreateAuction(ctx contractapi.TransactionContextInterface, auctionID string, itemsold string) error\n```\nCreateAuction creates on auction on the public channel. The identity that submits the transaction becomes the seller of the auction.\n\n```go\nfunc (c *AuctionContract) CreateBid(ctx contractapi.TransactionContextInterface, auctionID string) (string, error)\n```\nBid is used to add a user's bid to the auction. The bid is stored in the private data collection on the peer of the bidder's organization. The function returns the transaction ID so that users can identify and query their bid.\n\n```go\nfunc (c *AuctionContract) EndAuction(ctx contractapi.TransactionContextInterface, auctionID string) error\n```\nEndAuction both changes the auction status to closed, and reveals the winning bid of the auction.\n\n```go\nfunc (s *AuctionContract) GetSubmittingClientIdentity(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *AuctionContract) QueryAuction(ctx contractapi.TransactionContextInterface, auctionID string) (*Auction, error)\n```\nQueryAuction allows all members of the channel to read a public auction.\n\n```go\nfunc (c *AuctionContract) QueryBid(ctx contractapi.TransactionContextInterface, auctionID string, txID string) (*FullBid, error)\n```\nQueryBid allows the submitter of the bid to query their bid from public state.\n\n```go\nfunc (c *AuctionContract) RevealBid(ctx contractapi.TransactionContextInterface, auctionID string, txID string) error\n```\nRevealBid is used by a bidder to reveal their bid after the auction is closed.\n\n```go\nfunc (c *AuctionContract) SubmitBid(ctx contractapi.TransactionContextInterface, auctionID string, txID string) error\n```\nSubmitBid is used by the bidder to add the hash of that bid stored in private data to the auction. Note that this function alters the auction in private state, and needs to meet the auction endorsement policy. Transaction ID is used identify the bid.\n\n```go\ntype AuditInfo struct {\n\tAuditKey     string `json:\"AuditKey\"`\n\tCriticalList []string\n}\n```\n\n```go\ntype AuthService struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAuthService(stub shim.ChaincodeStubInterface) *AuthService\n```\n\n```go\nfunc (service *AuthService) GetUser() (*model.User, error)\n```\n\n```go\ntype Authenticator func(ctx contractapi.TransactionContextInterface, msg Msg) error\n```\nAuthenticator defines an authenticator that authenticates a given msg with a transaction context\n\n```go\ntype Backup struct {\n\tBackupID     string   `json:\"backupID\"`\n\tDeviceID     string   `json:\"deviceID\"`\n\tHash         string   `json:\"hash\"`\n\tPreviousHash string   `json:\"previousHash\"`\n\tTimestamp    int64    `json:\"timestamp\"`\n\tIsValid      bool     `json:\"isValid\"`\n\tSignature    string   `json:\"signature\"`\n\tPaths        []string `json:\"paths\"`\n\tSize         int      `json:\"size\"`\n}\n```\n\n```go\ntype BadChaincode struct{}\n```\n\n```go\nfunc (t *BadChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (t BadChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype Banco struct {\n\tBancoID string `json:\"bancoId\"`\n\tNome    string `json:\"nome\"`\n\tCnpj    string `json:\"cnpj\"`\n}\n```\n\n```go\ntype Bank struct {\n\tBankName       string  `json:\"bankName\"`\n\tAddress        string  `json:\"address\"`\n\tTotalAmount    float64 `json:\"totalAmount\"`\n\tUserList       []User  `json:\"userList\"`\n\tAccountCounter int     `json:\"accountCounter\"`\n\tVersion        int     `json:\"version\"`\n}\n```\n\n```go\nfunc (t *Bank) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit is called during chaincode instantiation to initialize any data. Note that chaincode upgrade also calls this function to reset or to migrate data.\n\n```go\nfunc (t *Bank) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke is called per transaction on the chaincode.\n\n```go\ntype BankBranch struct {\n\tObjectType string         `json:\"docType\"` // default is 'BNKBRA'\n\tBranchID   string         `json:\"branchID\"`\n\tData       BankBranchBase `json:\"data\"` // composition\n}\n```\nBankBranch struct for chain state\n\n```go\nfunc (asset *BankBranch) GetState(stub shim.ChaincodeStubInterface) pb.Response\n```\nGetState Read asset state from the ledger\n\n```go\nfunc (asset *BankBranch) PutState(stub shim.ChaincodeStubInterface) pb.Response\n```\nPutState Write asset state to ledger\n\n```go\ntype BankBranchBase struct {\n\tBranchID            int       `json:\"branchID\"`\n\tBankID              int       `json:\"bankID\"`\n\tBranchName          string    `json:\"branchname\"`\n\tBranchManagerUserID int       `json:\"branchmanageruserID\"`\n\tBranchManagerRoleID int       `json:\"branchmanagerroleID\"`\n\tLocation            string    `json:\"location\"`\n\tLocationLat         string    `json:\"locationlat\"`\n\tLocationLong        string    `json:\"locationlong\"`\n\tCreated             time.Time `json:\"created\"`\n\tCreatedby           string    `json:\"createdby\"`\n}\n```\nBankBranchBase data structure\n\n```go\ntype BankContract struct {\n\tcontractapi.Contract\n}\n```\nBankContract for handling writing and reading from the world state\n\n```go\nfunc (sc *BankContract) Get(ctx contractapi.TransactionContextInterface, key string) (*BankObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *BankContract) History(ctx contractapi.TransactionContextInterface, key string) ([]BankHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *BankContract) Put(ctx contractapi.TransactionContextInterface, bankID int, bankname string, hqaddress string, bankcategory string, bankadminuserID int, location string, locationlat string, locationlong string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype BankData struct {\n\tName           string         `json:\"name\"`\n\tIdNumber       int            `json:\"idNumber\"`\n\tOrgCredentials OrgCredentials `json:\"orgCredentials\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BankHistory struct {\n\tTxID      string    `json:\"txID\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\tBank      *BankObj  `json:\"bank\"`\n}\n```\nBankHistory ...\n\n```go\ntype BankObj struct {\n\tBankID          int       `json:\"bankID\"`\n\tBankName        string    `json:\"bankname\"`\n\tHqAddress       string    `json:\"hqaddress\"`\n\tBankCategory    string    `json:\"bankcategory\"`\n\tBankAdminUserID int       `json:\"bankadminuserID\"`\n\tLocation        string    `json:\"location\"`\n\tLocationLat     string    `json:\"locationlat\"`\n\tLocationLong    string    `json:\"locationlong\"`\n\tCreated         time.Time `json:\"created\"`\n\tCreatedby       string    `json:\"createdby\"`\n}\n```\nBankObj ...\n\n```go\ntype BaseApp struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBaseApp(\n\tname string, logger log.Logger, db dbm.DB, txDecoder sdk.TxDecoder,\n) *BaseApp\n```\n\n```go\nfunc (app BaseApp) BlockProvider() BlockProvider\n```\n\n```go\nfunc (app *BaseApp) InitChain(appStateBytes []byte) error\n```\n\n```go\nfunc (app *BaseApp) IsSealed() bool\n```\nIsSealed returns true if the BaseApp is sealed and false otherwise.\n\n```go\nfunc (app *BaseApp) LoadLatestVersion() error\n```\n\n```go\nfunc (app *BaseApp) Logger() log.Logger\n```\nLogger returns the logger of the BaseApp.\n\n```go\nfunc (app *BaseApp) MakeCacheContext(header tmproto.Header) (ctx sdk.Context, writer func())\n```\n\n```go\nfunc (app *BaseApp) MountKVStores(keys map[string]*sdk.KVStoreKey)\n```\nMountStores mounts all IAVL or DB stores to the provided keys in the BaseApp multistore.\n\n```go\nfunc (app *BaseApp) MountMemoryStores(keys map[string]*sdk.MemoryStoreKey)\n```\nMountMemoryStores mounts all in-memory KVStores with the BaseApp's internal commit multi-store.\n\n```go\nfunc (app *BaseApp) MountStore(key sdk.StoreKey, typ sdk.StoreType)\n```\nMountStore mounts a store to the provided key in the BaseApp multistore, using the default DB.\n\n```go\nfunc (app *BaseApp) MountStoreWithDB(key sdk.StoreKey, typ sdk.StoreType, db dbm.DB)\n```\nMountStoreWithDB mounts a store to the provided key in the BaseApp multistore, using a specified DB.\n\n```go\nfunc (app *BaseApp) MountTransientStores(keys map[string]*sdk.TransientStoreKey)\n```\nMountStores mounts all IAVL or DB stores to the provided keys in the BaseApp multistore.\n\n```go\nfunc (app *BaseApp) MsgServiceRouter() *baseapp.MsgServiceRouter\n```\nMsgServiceRouter returns the MsgServiceRouter of a BaseApp.\n\n```go\nfunc (app *BaseApp) Name() string\n```\nName returns the name of the BaseApp.\n\n```go\nfunc (app *BaseApp) QueryRouter() sdk.QueryRouter\n```\nQueryRouter returns the QueryRouter of a BaseApp.\n\n```go\nfunc (app *BaseApp) Router() sdk.Router\n```\nRouter returns the router of the BaseApp.\n\n```go\nfunc (app *BaseApp) RunTx(stub shim.ChaincodeStubInterface, txBytes []byte) (result *sdk.Result, err error)\n```\n\n```go\nfunc (app *BaseApp) Seal()\n```\nSeal seals a BaseApp. It prohibits any further modifications to a BaseApp.\n\n```go\nfunc (app *BaseApp) SetAnteHandler(ah sdk.AnteHandler)\n```\n\n```go\nfunc (app *BaseApp) SetBlockProvider(blockProvider BlockProvider)\n```\n\n```go\nfunc (app *BaseApp) SetInitChainer(initChainer InitChainer)\n```\n\n```go\nfunc (app *BaseApp) SetRouter(router sdk.Router)\n```\nSetRouter allows us to customize the router.\n\n```go\ntype BaseFabricFacadedCC struct {\n\tStub shim.ChaincodeStubInterface\n\t*service.BaseServiceImpl\n\tConcreteFacadedService IConcreteFacadedService\n}\n```\n\n```go\nfunc NewBaseFabricFacadedCC(stub shim.ChaincodeStubInterface, ConcreteFacadedService IConcreteFacadedService) *BaseFabricFacadedCC\n```\n\tfunc NewBaseFabricFacadedCC(ac ArgeChecker,b BaseTypeGetter) *BaseFabricFacadedCC {\n\t\tc := new(BaseFabricFacadedCC)\n\t\tc.Log = log.NewVlinkLog()\n\t\t// c.ArgumentDecrypt = decrypt\n\t\t// decrypt.SetParent(c)\n\t\t// c.CheckerAndDecrypter=ac\n\t\t// c.BaseTyperGetter=b\n\n\t\treturn c\n\t}\n\n```go\nfunc (b *BaseFabricFacadedCC) Handler() BasePeerResponse\n```\n2019-12-17 暂时直接返回这个BasePeerResponse,如果后续需要修改,直接修改这里即可\n\n```go\nfunc (b *BaseFabricFacadedCC) ReturnResult(res interface{}, err error2.IBaseError) BasePeerResponse\n```\n\n```go\ntype BaseStation struct {\n\n\t// ID                          string  `json:\"id\"`\n\tGlobal_computing_resource   float64 `json:\"global_computing_resource\"`\n\tReversed_computing_resource float64 `json:\"reversed_computing_resource\"`\n\tComputing_efficiency        float64 `json:\"computing_efficiency\"`\n\tCompletion_ratio            float64 `json:\"completion_ratio\"`\n\tTotal_received_task         float64 `json:\"total_received_task\"`\n\tReliability                 float64 `json:\"reliability\"`\n}\n```\nBaseStation describes basic details of what makes up a car\n\n```go\ntype BaseTypeGetter func(name base.MethodName) (base.TransBaseType, error2.IBaseError)\n```\n\n```go\ntype BasicAsset struct {\n\tID    string `json:\"id\"`\n\tValue int    `json:\"value\"`\n}\n```\nBasicAsset holds and ID and value\n\n```go\ntype BasicRepository struct {\n\tStub shim.ChaincodeStubInterface\n}\n```\n\n```go\nfunc (repo *BasicRepository) Exists(key string) (bool, error)\n```\n\n```go\nfunc (repo *BasicRepository) Find(key string) []byte\n```\n\n```go\nfunc (repo *BasicRepository) FindAndUnmarshal(key string, dest interface{}) error\n```\n\n```go\ntype BasicToken interface {\n\tcontractapi.ContractInterface\n\n\t// CreateWallet to create new wallet. Each wallet belong to token type\n\tCreateWallet(ctx contractapi.TransactionContextInterface, createWallet token.CreateWallet) (string, error)\n\n\t// UpdateWallet to update status of wallet. Active or InActive\n\tUpdateWallet(ctx contractapi.TransactionContextInterface, updateWallet token.UpdateWallet) error\n\n\t// GetBalance return balance of wallet\n\tGetBalance(ctx contractapi.TransactionContextInterface, balance token.Balance) (string, error)\n\n\t// Mint to init base token in the system\n\tMint(ctx contractapi.TransactionContextInterface, mintDto token.MintToken) error\n\n\t// Burn to delete token in the system\n\tBurn(ctx contractapi.TransactionContextInterface, burnDto token.BurnToken) error\n\n\t// Transfer amount of tokens from address FromWalletId to address ToWalletId\n\tTransfer(ctx contractapi.TransactionContextInterface, transferDto token.TransferToken) error\n\n\t// CreateTokenType to create new token type in the system\n\tCreateTokenType(ctx contractapi.TransactionContextInterface, createTokenTypeDto token.CreateTokenType) (string, error)\n\n\t// CreateHealthCheck check system ready to use\n\tCreateHealthCheck(ctx contractapi.TransactionContextInterface, arg string) (string, error)\n\n\t// GetAccountingTx return list id transaction that have status pending\n\tGetAccountingTx(ctx contractapi.TransactionContextInterface) ([]string, error)\n\n\t// CalculateBalance update balance of wallet. Accounting job will call this\n\tCalculateBalance(ctx contractapi.TransactionContextInterface, accountingDto token.AccountingBalance) error\n\n\t// Exchange to swap between token type. Example from Stable token to X token\n\tExchange(ctx contractapi.TransactionContextInterface, exchangeToken token.ExchangeToken) error\n\n\t// Issue to issue new token from stable token\n\tIssue(ctx contractapi.TransactionContextInterface, issueDto token.IssueToken) error\n\n\t// EnrollToken to register wallet policy use to issue new token\n\tEnrollToken(ctx contractapi.TransactionContextInterface, enrollmentDto token.Enrollment) error\n\n\t// TransferSideChain to transfer token from main chain to side chain\n\tTransferSideChain(ctx contractapi.TransactionContextInterface, transferChain token.TransferSideChain) error\n}\n```\n\n```go\ntype BatchContract struct {\n\tAuthenticator Authenticator\n\tFnRegistry    map[string]Fn\n\n\t// parameters for the batch algorithm\n\tTotalQueryLimit        uint32 // the value should be match `totalQueryLimit` in core.yaml\n\tMsgTimeGapAllowance    int64  // the value indicates current time window when Msg is submitted\n\tCommitTimeGapAllowance int64  // the value indicates current time window when Commit is executed\n\n\t// GetPeerTime returns current time on peer\n\tGetPeerTime func(stub shim.ChaincodeStubInterface) int64\n}\n```\nBatchContract implements on-chain batch logic without trusted third party\n\n```go\nfunc (s *BatchContract) Commit(ctx contractapi.TransactionContextInterface, commitTime int64) (int64, error)\n```\nCommit executes Msg submitted between the last commit time and \\`commitTime\\`.\n\n```go\nfunc (s *BatchContract) GetIgnoredFunctions() []string\n```\nGetIgnoredFunctions implements contractapi.IgnoreContractInterface\n\n```go\nfunc (s *BatchContract) RegisterFn(fnName string, fn Fn) error\n```\nRegisterFn registers a given function\n\n```go\nfunc (s *BatchContract) SubmitMsg(ctx contractapi.TransactionContextInterface, msg Msg, currentTime int64) error\n```\nSubmitMsg inserts Msg for a key with \\`currentTime\\` prefix Theses Msgs will be committed by the commit function.\n\n```go\ntype BatchEvent struct {\n\tCategory    string       `json:\"category\"`\n\tProductID   string       `json:\"product_id\"`\n\tParent      []ParentInfo `json:\"parent\"`\n\tProductName string       `json:\"product_name\"`\n\tUOM         string       `json:\"uom\"`\n\tQuantity    uint64       `json:\"quantity\"`\n}\n```\n\n```go\ntype BatchHistory struct {\n\tBatch_id             string              `json:\"batchId\"`\n\tCurrentStage         string              `json:\"currentStage\"`\n\tFarmerSeedBatch      FarmerSeedData      `json:\"farmerSeedBatch\"`\n\tInspectorSeedBatch   InspectorSeedData   `json:\"inspectorSeedBatch\"`\n\tTransporterSeedBatch TransporterSeedData `json:\"transporterSeedBatch\"`\n\tExporterSeedBatch    ExporterSeedData    `json:\"exporterSeedBatch\"`\n\tImporterSeedBatch    ImporterSeedData    `json:\"importerSeedBatch\"`\n\tRetailorSeedBatch    RetailorSeedData    `json:\"retailorSeedBatch\"`\n}\n```\n\n```go\ntype BatteryAsset struct {\n\tAsset\n\tSpec       string `json:\"Spec\"`\n\tDateStop   string `json:\"DateStop\"`\n\tDateSalv   string `json:\"DateSalv\"`\n\tReasonSalv string `json:\"ReasonSalv\"`\n}\n```\n\n```go\ntype Bawang struct {\n\tID           string `json:\"id\"` // for query\n\tBenihAsetID  string `json:\"benihAsetID\"`\n\tBawangAsetID string `json:\"bawangAsetID\"`\n\n\tUsernamePengirim string `json:\"usernamePengirim\"`\n\tUsernamePenerima string `json:\"usernamePenerima\"`\n\tAlamatPengirim   string `json:\"alamatPengirim\"`\n\tAlamatPenerima   string `json:\"alamatPenerima\"`\n\n\tKuantitasBenihKg float64 `json:\"kuantitasBenihKg\"`\n\tHargaBenihPerKg  float64 `json:\"hargaBenihPerKg\"`\n\tHargaBenihTotal  float64 `json:\"hargaBenihTotal\"`\n\n\tKuantitasBawangKg float64 `json:\"kuantitasBawangKg\"`\n\tHargaBawangPerKg  float64 `json:\"hargaBawangPerKg\"`\n\tHargaBawangTotal  float64 `json:\"hargaBawangTotal\"`\n\n\tCreatedAt int64 `json:\"createdAt\"`\n\n\t// Unique Value\n\t// From Penangkar\n\tUmurBenih       string `json:\"umurBenih\"`\n\tUmurPanen       string `json:\"umurPanen\"`\n\tLamaPenyimpanan string `json:\"lamaPenyimpanan\"`\n\tVarietas        string `json:\"varietas\"`\n\n\t// From Petani\n\tUkuranUmbi     string  `json:\"ukuranUmbi\"`\n\tKadarAirPersen float64 `json:\"kadarAirPersen\"`\n\tPupuk          string  `json:\"pupuk\"`\n\tPestisida      string  `json:\"pestisida\"`\n\tPerlakuan      string  `json:\"perlakuan\"`\n\tProduktivitas  string  `json:\"produktivitas\"`\n\tTanggalTanam   int64   `json:\"tanggalTanam\"`\n\tTanggalPanen   int64   `json:\"tanggalPanen\"`\n\n\t// From Pengumpul\n\tTanggalMasuk     int64  `json:\"tanggalMasuk\"`\n\tTeknikSorting    string `json:\"teknikSorting\"`\n\tMetodePengemasan string `json:\"metodePengemasan\"`\n\n\tTxID1 string `json:\"txID1\"` // penangkar - petani\n\tTxID2 string `json:\"txID2\"` // petani - pengumpul\n\tTxID3 string `json:\"txID3\"` // pengumpul - pedagang\n\n\tIsAsset     bool `json:\"isAsset\"`\n\tIsConfirmed bool `json:\"isConfirmed\"`\n\tIsEmpty     bool `json:\"isEmpty\"`\n\tIsRejected  bool `json:\"isRejected\"`\n\n\tRejectReason string `json:\"rejectReason\"`\n}\n```\nBawang struct\n\n```go\ntype BawangContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *BawangContract) AddBawangKuantitasByID(ctx contractapi.TransactionContextInterface, quantity float64, bawangID string) (*Bawang, error)\n```\nAdd bawang asset quantity by ID\n\n```go\nfunc (s *BawangContract) AddBenihKuantitasByID(ctx contractapi.TransactionContextInterface, quantity float64, bawangID string) (*Bawang, error)\n```\nAdd benih asset quantity by ID\n\n```go\nfunc (s *BawangContract) ConfirmTrxByID(ctx contractapi.TransactionContextInterface, bawangID string) (string, error)\n```\nSet isConfirm to true\n\n```go\nfunc (s *BawangContract) CreateBenih(ctx contractapi.TransactionContextInterface, bawangData string) (string, error)\n```\nCreating benih asset and insert it on blockchain Crating new benih aset\n\n```go\nfunc (s *BawangContract) CreateTrxBawangByPenangkar(ctx contractapi.TransactionContextInterface, bawangData, prevID string) (string, error)\n```\nCreating benih trx from penangkar to petani, add txid1 Create tx1 with the unique from the benih\n\n```go\nfunc (s *BawangContract) GetBawangByID(ctx contractapi.TransactionContextInterface, bawangID string) (*Bawang, error)\n```\nGet bawang object by ID\n\n```go\nfunc (s *BawangContract) GetBawangForQuery(ctx contractapi.TransactionContextInterface, queryString string) (string, error)\n```\nit should be GetBawangForQuery\n\n```go\nfunc (s *BawangContract) GetHistoryForAssetByID(ctx contractapi.TransactionContextInterface, bawangID string) (string, error)\n```\nGetHistoryForAssetByID to get history for asset by ID\n\n```go\nfunc (s *BawangContract) HarvestBawang(ctx contractapi.TransactionContextInterface, bawangData, bawangID string) (string, error)\n```\nConvert benih that has been planted into bawang asset Add other bawang field\n\n```go\nfunc (s *BawangContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger\n\n```go\nfunc (s *BawangContract) PlantBenih(ctx contractapi.TransactionContextInterface, bawangData, prevID string) (string, error)\n```\nPlanting benih by petani, inserting pupuk and timestamp for tanggalTanam Creating new soon to be bawang asset\n\n```go\nfunc (s *BawangContract) RejectTrxByID(ctx contractapi.TransactionContextInterface, bawangIDPrev, bawangIDReject string, kuantitasPrev float64, rejectReason string) (string, error)\n```\nSet isRejected to true and retrieve the asset quantity\n\n```go\nfunc (s *BawangContract) UpdateBawangTrxByPengumpul(ctx contractapi.TransactionContextInterface, bawangData, prevID string) (string, error)\n```\nUpdating bawang trx by pengumpul, sending bawang to pedagang, adding unique value from pengumpul and txid3\n\n```go\nfunc (s *BawangContract) UpdateBawangTrxByPetani(ctx contractapi.TransactionContextInterface, bawangData, prevID string) (string, error)\n```\nUpdating bawang trx by petani, sending bawang to pengumpul, adding unique value from petani and txid2\n\n```go\ntype Beacon struct {\n\tSala string `json:\"sala\"`\n}\n```\n\n```go\ntype Behaviour struct {\n\tId     string `json:\"id\"`\n\tResult bool   `json:\"result\"`\n}\n```\n\n```go\ntype Bid struct {\n\tBidder   string `json:\"bidder\"`\n\tAmount   int    `json:\"amount\"`\n\tRevealed bool   `json:\"revealed\"`\n}\n```\n\n```go\ntype BidHash struct {\n\tOrg  string `json:\"org\"`\n\tHash string `json:\"hash\"`\n}\n```\nBidHash is the structure of a private bid\n\n```go\ntype Bill struct {\n\tID                string `json:\"ID\"`\n\tName              string `json:\"name\"` //the fieldtags are needed to keep case from bouncing around\n\tOwner             string `json:\"owner\"`\n\tPublicDescription string `json:\"publicDescription\"`\n}\n```\n\n```go\ntype BillPrivateDetails struct {\n\tID         string `json:\"ID\"`\n\tBillAmount string `json:\"billamount\"`\n}\n```\n\n```go\ntype BlankChaincode struct {\n}\n```\n\n```go\nfunc (token *BlankChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (token *BlankChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\ntype BlindAuctionContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (b *BlindAuctionContract) AuctionExists(ctx contractapi.TransactionContextInterface, auctionID string) (bool, error)\n```\n\n```go\nfunc (b *BlindAuctionContract) CloseAuction(ctx contractapi.TransactionContextInterface, auctionID string) error\n```\n\n```go\nfunc (b *BlindAuctionContract) CreateAuction(ctx contractapi.TransactionContextInterface, auctionID string, description string) error\n```\n\n```go\nfunc (b *BlindAuctionContract) GetAuction(ctx contractapi.TransactionContextInterface, auctionID string) (*Auction, error)\n```\n\n```go\nfunc (b *BlindAuctionContract) Init(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (b *BlindAuctionContract) PlaceBid(ctx contractapi.TransactionContextInterface, auctionID string, bidder string, amount int) error\n```\n\n```go\nfunc (b *BlindAuctionContract) RevealBid(ctx contractapi.TransactionContextInterface, auctionID string, bidder string, bidAmount int) error\n```\n\n```go\ntype Block interface {\n\tHeight() int64\n\tTimestamp() int64\n}\n```\n\n```go\ntype BlockChainTimeBank struct {\n}\n```\n\n```go\nfunc (t *BlockChainTimeBank) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit 链码初始化\n\n```go\nfunc (t *BlockChainTimeBank) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke 实现Invoke接口调用智能合约\n\n```go\ntype BlockProvider func() Block\n```\n\n```go\ntype BlossomSmartContract struct {\n\tcontractapi.Contract\n}\n```\nBlossomSmartContract is the struct that will implement the below interfaces and expose the functions as smart contract functions\n\n```go\nfunc (b *BlossomSmartContract) ApproveAccount(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc (b *BlossomSmartContract) GetAccount(ctx contractapi.TransactionContextInterface, accountName string) (*model.Account, error)\n```\n\n```go\nfunc (b *BlossomSmartContract) GetAccounts(ctx contractapi.TransactionContextInterface) ([]*model.AccountPublic, error)\n```\n\n```go\nfunc (b *BlossomSmartContract) GetHistory(ctx contractapi.TransactionContextInterface, account string) ([]model.HistorySnapshot, error)\n```\n\n```go\nfunc (b *BlossomSmartContract) InitNGAC(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (b *BlossomSmartContract) RequestAccount(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (b *BlossomSmartContract) UpdateAccountStatus(ctx contractapi.TransactionContextInterface, accountName, statusStr string) error\n```\n\n```go\nfunc (b *BlossomSmartContract) UploadATO(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype Board struct {\n\tID       string `json:\"ID\"`\n\tTitle    string `json:\"title\"`\n\tContents string `json:\"contents\"`\n}\n```\nBoard Struct\n\n\t\t블록내용 구성\n\t1. 작성자\n\t2. 글제목\n\t3. 글내용\n\t4. 등록일자\n\t5. 등록시간\n\n```go\ntype Boleto struct {\n\tBoletoID       string  `json:\"boletoId\"`\n\tIfBeneficiario *Banco  `json:\"ifBeneficiario\"`\n\tBeneficiario   *Pessoa `json:\"beneficiario\"`\n\tIfPagadora     *Banco  `json:\"ifPagadora\"`\n\tPagador        *Pessoa `json:\"pagador\"`\n\tCodigoBarra    string  `json:\"codigoBarra\"`\n\tDataVencimento string  `json:\"datavencimento\"`\n\tStatus         string  `json:\"status\"`\n\tValor          string  `json:\"valor\"`\n}\n```\nDefine the Smart Contract Boleto structure\n\n```go\nfunc (t *Boleto) IsExpired() bool\n```\nIsExpired retorna se o boleto está vencido\n\n```go\ntype BondAsset struct {\n\tType         string    `json:\"type\"`\n\tID           string    `json:\"id\"`\n\tOwner        string    `json:\"owner\"`\n\tIssuer       string    `json:\"issuer\"`\n\tFaceValue    int       `json:\"facevalue\"`\n\tMaturityDate time.Time `json:\"maturitydate\"`\n}\n```\n\n```go\ntype BranchConfigContract struct {\n\tcontractapi.Contract\n}\n```\nBranchConfigContract for handling writing and reading from the world state\n\n```go\nfunc (sc *BranchConfigContract) Get(ctx contractapi.TransactionContextInterface, key string) (*BranchConfigObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *BranchConfigContract) History(ctx contractapi.TransactionContextInterface, key string) ([]BranchConfigHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *BranchConfigContract) Put(ctx contractapi.TransactionContextInterface, configID int, bankID int, configname string, configdesc string, item string, value string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype BranchConfigHistory struct {\n\tTxID         string           `json:\"txID\"`\n\tTimestamp    time.Time        `json:\"timestamp\"`\n\tBranchConfig *BranchConfigObj `json:\"branchconfig\"`\n}\n```\nBranchConfigHistory ...\n\n```go\ntype BranchConfigObj struct {\n\tConfigID   int       `json:\"configID\"`\n\tBankID     int       `json:\"bankID\"`\n\tConfigName string    `json:\"configname\"`\n\tConfigDesc string    `json:\"configdesc\"`\n\tItem       string    `json:\"item\"`\n\tValue      string    `json:\"value\"`\n\tCreated    time.Time `json:\"created\"`\n\tCreatedby  string    `json:\"createdby\"`\n}\n```\nBranchConfigObj ...\n\n```go\ntype BubbleSortRecHandler struct {\n}\n```\n\n```go\nfunc (self *BubbleSortRecHandler) BubbleSortRec(A []int, l int, r int)\n```\n\n```go\nfunc (self *BubbleSortRecHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *BubbleSortRecHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype BuiltinSCCs map[string]struct{}\n```\nBuiltinSCCs are special system chaincodes, differentiated from other (plugin) system chaincodes.  These chaincodes do not need to be initialized in '\\_lifecycle' and may be invoked without a channel context.  It is expected that '\\_lifecycle' will eventually be the only builtin SCCs. Note, this field should only be used on \\_endorsement\\_ side, never in validation as it might change.\n\n```go\nfunc (bccs BuiltinSCCs) IsSysCC(name string) bool\n```\n\n```go\ntype Business struct {\n\tId              string   `json:\"id\"`              // Id号，全局唯一\n\tName            string   `json:\"name\"`            // 名字\n\tPhone           string   `json:\"phone\"`           // 商家联系方式\n\tCommodityIdList []string `json:\"commodityIdList\"` // 商品表\n\tCommodityCount  int64    `json:\"commodityCount\"`  // 已卖出商品数量统计\n\tBalance         int64    `json:\"balance\"`         // 余额\n\tCurrency        string   `json:\"currency\"`        // 币种\n\tDiscountList    []string `json:\"discountList\"`    // 派发的优惠卷\n\tState           bool     `json:\"state\"`           // 账户状态\n\tLastUpdateTime  string   `json:\"lastUpdateTime\"`  // 最近更新时间\n}\n```\nt\\_bussiness\\_account\n\n```go\ntype Buy struct {\n\tDSGId          string `json:\"id\"`\n\tOrderId        string `json:\"orderId\"`\n\tAmount         string `json:\"amount\"`\n\tAmountWithFees string `json:\"amountWithFees\"`\n\tTotalKgs       string `json:\"totalKgs\"`\n\tDwrReceiptId   string `json:\"dwrReceiptId\"`\n\tUserId         string `json:\"userId\"`\n\tAccountNo      string `json:\"accountNo\"`\n}\n```\n\n```go\ntype BuyAIModelType struct {\n\tTimestamp string       `json:\"timestamp\"`\n\tHistory   []RewardType `json:\"history\"`\n}\n```\nBuyAIModelType ...\n\n```go\ntype BuyIaoCache struct {\n\tHash   string\n\tResult string\n\tBase   `mapstructure:\",squash\"`\n}\n```\n\n```go\nfunc NewIaoCache(ctx ...contractapi.TransactionContextInterface) *BuyIaoCache\n```\n\n```go\ntype BuyerContract struct {\n\tcontractapi.Contract\n}\n```\nBuyerContract for handling writing and reading from the world state\n\n```go\nfunc (sc *BuyerContract) Get(ctx contractapi.TransactionContextInterface, key string) (*BuyerObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *BuyerContract) History(ctx contractapi.TransactionContextInterface, key string) ([]BuyerHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *BuyerContract) Put(ctx contractapi.TransactionContextInterface, buyerID int, userID int, buyertype string, details string, regdate string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype BuyerHistory struct {\n\tTxID      string    `json:\"txID\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\tBuyer     *BuyerObj `json:\"buyer\"`\n}\n```\nBuyerHistory ...\n\n```go\ntype BuyerObj struct {\n\tBuyerID   int       `json:\"buyerID\"`\n\tUserID    int       `json:\"userID\"`\n\tBuyerType string    `json:\"buyertype\"`\n\tDetails   string    `json:\"details\"`\n\tRegDate   string    `json:\"regdate\"`\n\tCreated   time.Time `json:\"created\"`\n\tCreatedby string    `json:\"createdby\"`\n}\n```\nBuyerObj ...\n\n```go\ntype BuyerOrg struct {\n\tBuyerOrgID string `json:\"buyerOrgID,omitempty\"`\n}\n```\n\n```go\ntype CBPMChaincode struct {\n\tcontractapi.Contract\n}\n```\nCBPMChaincode implements the fabric-contract-api-go programming model\n\n```go\nfunc (t *CBPMChaincode) ConfirmFinishDeliveryArrangement(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nConfirmFinishDeliveryArrangement owner确定handler完成deliveryArrangement，args传入tradeID，在例子中需要manufacturer收到货物过后，middleman才能确认carrier完成\n\n```go\nfunc (t *CBPMChaincode) ConfirmFinishOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nConfirmFinishOrder owner确定完成，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) ConfirmFinishSupplyOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nConfirmFinishSupplyOrder Owner确认供应商完成订单，需要args传入tradeID，\n\n```go\nfunc (t *CBPMChaincode) CreateAsset(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\nCreateAsset 创建Asset，transient传入assetID，assetName，assetPrice，shippingAddress，publicDescription，中间商根据供应商的asset创建自己能提供的asset，价格名称等可以变化\n\n```go\nfunc (t *CBPMChaincode) CreateDeliveryArrangement(ctx contractapi.TransactionContextInterface) (*DeliveryArrangement, error)\n```\nCreateDeliveryArrangement 创建DeliveryArrangement，需要transient传入tradeID，assetName，quantity，startPlace，endPlace，fee，note，返回创建好的DeliveryArrangement\n\n```go\nfunc (t *CBPMChaincode) CreateDeliveryDetail(ctx contractapi.TransactionContextInterface) (*DeliveryDetail, error)\n```\nCreateDeliveryDetail 创建DeliveryDetail，需要传入tradeID，assetName，startPlace，endPlace，contact，note\n\n```go\nfunc (t *CBPMChaincode) CreateDeliveryOrder(ctx contractapi.TransactionContextInterface) (*DeliveryOrder, error)\n```\nCreateDeliveryOrder 创建DeliveryOrder，transient传入tradeID，assetName，note\n\n```go\nfunc (t *CBPMChaincode) CreateOrder(ctx contractapi.TransactionContextInterface) (*Order, error)\n```\nCreateOrder 创建Order，transient传入assetID，quantity，receivingAddress，note，链码生成UUID，返回创建好的Order\n\n```go\nfunc (t *CBPMChaincode) CreateSupplyAsset(ctx contractapi.TransactionContextInterface) (*SupplyAsset, error)\n```\nCreateSupplyAsset 创建asset，需要transient传入assetName，assetPrice，shippingAddress，publicDescription 会生成一个UUID表示asset的名称，最终返回创建的asset对象\n\n```go\nfunc (t *CBPMChaincode) CreateSupplyOrder(ctx contractapi.TransactionContextInterface) (*SupplyOrder, error)\n```\nCreateSupplyOrder 创建supplyOrder，需要transient传入tradeID,assetID,quantity,note，返回创建好的对象\n\n```go\nfunc (t *CBPMChaincode) DeleteAsset(ctx contractapi.TransactionContextInterface, assetID string) error\n```\nDeleteAsset 删除Asset\n\n```go\nfunc (t *CBPMChaincode) DeleteDeliveryArrangement(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nDeleteDeliveryArrangement 删除DeliveryArrangement，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) DeleteDeliveryDetail(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nDeleteDeliveryDetail 删除DeliveryDetail，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) DeleteDeliveryOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nDeleteDeliveryOrder 删除DeliveryOrder，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) DeleteOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nDeleteOrder 删除Order，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) DeleteSupplyAsset(ctx contractapi.TransactionContextInterface, assetID string) error\n```\nDeleteSupplyAsset 删除指定的asset，需要args传入assetID\n\n```go\nfunc (t *CBPMChaincode) DeleteSupplyOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nDeleteSupplyOrder 删除supplyOrder，只允许owner删除\n\n```go\nfunc (t *CBPMChaincode) FinishDeliveryArrangement(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nFinishDeliveryArrangement handler完成DeliveryArrangement，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) FinishDeliveryDetail(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nFinishDeliveryDetail 处理完成，args传入tradeID，只有owner能完成\n\n```go\nfunc (t *CBPMChaincode) FinishDeliveryOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nFinishDeliveryOrder handler处理完成订单，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) FinishOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nFinishOrder handler完成Order，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) FinishSupplyOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nFinishSupplyOrder Handler完成订单，需要args传入TradeID，Owner并不能进行这一步操作\n\n```go\nfunc (t *CBPMChaincode) GetAllAssets(ctx contractapi.TransactionContextInterface) ([]*Asset, error)\n```\nGetAllAssets 获取所有Assets\n\n```go\nfunc (t *CBPMChaincode) GetAllDeliveryArrangements(ctx contractapi.TransactionContextInterface) ([]*DeliveryArrangement, error)\n```\nGetAllDeliveryArrangements 获取所有DeliveryArrangement\n\n```go\nfunc (t *CBPMChaincode) GetAllDeliveryDetails(ctx contractapi.TransactionContextInterface) ([]*DeliveryDetail, error)\n```\nGetAllDeliveryDetails 获取所有DeliveryDetails\n\n```go\nfunc (t *CBPMChaincode) GetAllDeliveryOrders(ctx contractapi.TransactionContextInterface) ([]*DeliveryOrder, error)\n```\nGetAllDeliveryOrders 获取所有DeliveryOrder\n\n```go\nfunc (t *CBPMChaincode) GetAllOrders(ctx contractapi.TransactionContextInterface) ([]*Order, error)\n```\nGetAllOrders 获取所有Orders\n\n```go\nfunc (t *CBPMChaincode) GetAllSupplyAssets(ctx contractapi.TransactionContextInterface) ([]*SupplyAsset, error)\n```\nGetAllSupplyAssets 获取所有的asset\n\n```go\nfunc (t *CBPMChaincode) GetAllSupplyOrders(ctx contractapi.TransactionContextInterface) ([]*SupplyOrder, error)\n```\nGetAllSupplyOrders 获取所有supplyOrders\n\n```go\nfunc (t *CBPMChaincode) GetAsset(ctx contractapi.TransactionContextInterface, assetID string) (*Asset, error)\n```\nGetAsset 获取Asset，args传入assetID\n\n```go\nfunc (t *CBPMChaincode) GetDeliveryArrangement(ctx contractapi.TransactionContextInterface, tradeID string) (*DeliveryArrangement, error)\n```\nGetDeliveryArrangement 获取DeliveryArrangement，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) GetDeliveryArrangementsByRangeWithPagination(ctx contractapi.TransactionContextInterface, startKey string, endKey string, pageSize int, bookmark string) ([]*DeliveryArrangement, error)\n```\nGetDeliveryArrangementsByRangeWithPagination performs a range query based on the start and end key, page size and a bookmark. The number of fetched records will be equal to or lesser than the page size. Paginated range queries are only valid for read only transactions. Example: Pagination with Range Query\n\n```go\nfunc (t *CBPMChaincode) GetDeliveryDetail(ctx contractapi.TransactionContextInterface, tradeID string) (*DeliveryDetail, error)\n```\nGetDeliveryDetail 获取DeliveryDetail信息，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) GetDeliveryOrder(ctx contractapi.TransactionContextInterface, tradeID string) (*DeliveryOrder, error)\n```\nGetDeliveryOrder 获取DeliveryOrder，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) GetDeliveryOrdersByRangeWithPagination(ctx contractapi.TransactionContextInterface, startKey string, endKey string, pageSize int, bookmark string) ([]*DeliveryOrder, error)\n```\nGetDeliveryOrdersByRangeWithPagination performs a range query based on the start and end key, page size and a bookmark. The number of fetched records will be equal to or lesser than the page size. Paginated range queries are only valid for read only transactions. Example: Pagination with Range Query\n\n```go\nfunc (t *CBPMChaincode) GetOrder(ctx contractapi.TransactionContextInterface, tradeID string) (*Order, error)\n```\nGetOrder 获取Order，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) GetOrderHistory(ctx contractapi.TransactionContextInterface, tradeID string) ([]HistoryQueryResult, error)\n```\nGetOrderHistory returns the chain of custody for an asset since issuance.\n\n```go\nfunc (t *CBPMChaincode) GetSupplyAsset(ctx contractapi.TransactionContextInterface, assetID string) (*SupplyAsset, error)\n```\nGetSupplyAsset 获取指定的asset，需要args传入assetID\n\n```go\nfunc (t *CBPMChaincode) GetSupplyOrder(ctx contractapi.TransactionContextInterface, tradeID string) (*SupplyOrder, error)\n```\nGetSupplyOrder 获取supplyOrder，需要args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) HandleDeliveryArrangement(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nHandleDeliveryArrangement 非owner的一方处理DeliveryArrangement，agrs传入tradeID\n\n```go\nfunc (t *CBPMChaincode) HandleDeliveryDetail(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nHandleDeliveryDetail 开始处理DeliveryDetail，args传入tradeID，只有owner能处理，在业务中，只有carrier能处理\n\n```go\nfunc (t *CBPMChaincode) HandleDeliveryOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nHandleDeliveryOrder 开始处理DeliveryOrder，args传入tradeID，非owner的组织才能护处理\n\n```go\nfunc (t *CBPMChaincode) HandleOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nHandleOrder 非Owner开始处理Order，args传入tradeID\n\n```go\nfunc (t *CBPMChaincode) HandleSupplyOrder(ctx contractapi.TransactionContextInterface, tradeID string) error\n```\nHandleSupplyOrder 供应商接单，需要args传入tradeID，Owner并不能进行这一步操作\n\n```go\nfunc (t *CBPMChaincode) Init(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (t *CBPMChaincode) QueryAssets(ctx contractapi.TransactionContextInterface, queryString string) ([]*Asset, error)\n```\nQueryAssets 查询满足条件的assets，args传入查询语句\n\n```go\nfunc (t *CBPMChaincode) QueryDeliveryArrangements(ctx contractapi.TransactionContextInterface, queryString string) ([]*DeliveryArrangement, error)\n```\nQueryDeliveryArrangements 查询满足条件的DeliveryArrangements，args传入查询语句\n\n```go\nfunc (t *CBPMChaincode) QueryDeliveryDetails(ctx contractapi.TransactionContextInterface, queryString string) ([]*DeliveryDetail, error)\n```\nQueryDeliveryDetails 查询满足条件的DeliveryDetails,args传入查询语句\n\n```go\nfunc (t *CBPMChaincode) QueryDeliveryOrders(ctx contractapi.TransactionContextInterface, queryString string) ([]*DeliveryOrder, error)\n```\nQueryDeliveryOrders 查询满足条件的deliveryOrders，args传入查询语句\n\n```go\nfunc (t *CBPMChaincode) QueryOrders(ctx contractapi.TransactionContextInterface, queryString string) ([]*Order, error)\n```\nQueryOrders 查询满足条件的Orders，args传入查询语句\n\n```go\nfunc (t *CBPMChaincode) QueryOrdersWithPagination(ctx contractapi.TransactionContextInterface, queryString string, pageSize int, bookmark string) (*PaginatedQueryResult, error)\n```\nQueryOrdersWithPagination uses a query string, page size and a bookmark to perform a query for assets. Query string matching state database syntax is passed in and executed as is. The number of fetched records would be equal to or lesser than the specified page size. Supports ad hoc queries that can be defined at runtime by the client. If this is not desired, follow the QueryAssetsForOwner example for parameterized queries. Only available on state databases that support rich query (e.g. CouchDB) Paginated queries are only valid for read only transactions. Example: Pagination with Ad hoc Rich Query\n\n```go\nfunc (t *CBPMChaincode) QuerySupplyAssets(ctx contractapi.TransactionContextInterface, queryString string) ([]*SupplyAsset, error)\n```\nQuerySupplyAssets 查询assets，需要args传入查询语句\n\n```go\nfunc (t *CBPMChaincode) QuerySupplyOrders(ctx contractapi.TransactionContextInterface, queryString string) ([]*SupplyOrder, error)\n```\nQuerySupplyOrders 查询满足条件的supplyOrders，需要args传入查询条件\n\n```go\nfunc (t *CBPMChaincode) UpdateAsset(ctx contractapi.TransactionContextInterface, assetID string, assetName string, desc string, assetPrice float32) error\n```\nUpdateAsset 更新Asset，args传入assetID,assetName,desc,assetPrice，只能owner更新\n\n```go\nfunc (t *CBPMChaincode) UpdateSupplyAsset(ctx contractapi.TransactionContextInterface, assetID string, assetName string, assetPrice float32, shippingAddress string, desc string) error\n```\nUpdateSupplyAsset 更新指定的asset，需要args传入assetID，assetName，assetPrice，shippingAddress，desc，只有owner能够更新\n\n```go\ntype CC struct{}\n```\nCC example simple Chaincode implementation\n\n```go\nfunc (t *CC) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *CC) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype CCContext struct {\n\tName    string\n\tVersion string\n}\n```\nCCContext is a legacy structure that was utilized heavily in the tests so it has been preserved, even though it basically passes a name/version pair alone.\n\n```go\ntype CCDemo struct{}\n```\nCCDemo implements the shim.Chaincode interface\n\n```go\nfunc (t *CCDemo) Init(stub shim.ChaincodeStubInterface) (response pb.Response)\n```\nInit is called during chaincode instantiation to initialize any data. Note that chaincode upgrade also calls this function to reset or to migrate data.\n\n```go\nfunc (t *CCDemo) Invoke(stub shim.ChaincodeStubInterface) (response pb.Response)\n```\nInvoke is called per transaction on the chaincode.\n\n```go\ntype CDR struct {\n\tObjectType             string           `json:\"docType\"`\n\tRecordID               string           `json:\"recordId\"`\n\tCPOContractID          string           `json:\"cpoContractId\"`\n\tCountryCode            string           `json:\"countryCode\"`\n\tStartDateTime          string           `json:\"startDateTime\"`\n\tEndDateTime            string           `json:\"endDateTime\"`\n\tSessionID              string           `json:\"sessionId\"`\n\tCDRTokenUID            string           `json:\"cdrTokenUid\"`\n\tCDRTokenType           string           `json:\"cdrTokenType\"`\n\tEVDRContractID         string           `json:\"evdrContractId\"`\n\tAuthMethod             string           `json:\"authMethod\"`\n\tAuthorizationReference string           `json:\"authorizationReference\"`\n\tCDRLocation            string           `json:\"cdrLocation\"`\n\tMeterId                string           `json:\"meterId\"`\n\tCurrency               string           `json:\"currency\"`\n\tTariffs                []Tariff         `json:\"tariffs\"`\n\tChargingPeriods        []ChargingPeriod `json:\"chargingPeriods\"`\n\tSignedData             string           `json:\"signedData\"`\n\tTotalCost              string           `json:\"totalCost\"`\n\tTotalFixedCost         string           `json:\"totalFixedCost\"`\n\tTotalEnergy            string           `json:\"totalEnergy\"`\n\tTotalEnergyCost        string           `json:\"totalEnergyCost\"`\n\tTotalTime              string           `json:\"totalTime\"`\n\tTotalTimeCost          string           `json:\"totalTimeCost\"`\n\tTotalParkingTime       string           `json:\"totalParkingTime\"`\n\tTotalParkingCost       string           `json:\"totalParkingCost\"`\n\tTotalReservationCost   string           `json:\"totalReservationCost\"`\n\tRemark                 string           `json:\"remark\"`\n\tInvoiceReferenceID     string           `json:\"invoiceReferenceId\"`\n\tCredit                 string           `json:\"credit\"`\n\tCreditReferenceID      string           `json:\"creditReferenceId\"`\n\tLastUpdated            string           `json:\"lastUpdated\"`\n}\n```\n\n```go\ntype CSO struct {\n\tCSOID          string    `json:\"ID\"`\n\tTotalPowerFlow float64   `json:\"total_power_flow\"`\n\tEVCount        int       `json:\"ev_count\"`\n\tChargers       []Charger `json:\"charger\"`\n}\n```\n\n```go\nfunc (c *CSO) LoadState(ctx contractapi.TransactionContextInterface) (bool, error)\n```\nLoadState loads the data from the ledger into the EV object if the data is found Returns false if an Account object wasn't found in the ledger; otherwise returns true.\n\n```go\nfunc (c *CSO) SaveState(ctx contractapi.TransactionContextInterface) error\n```\nSaveState saves the accounts into the ledger\n\n```go\nfunc (c *CSO) ToCompositeKey(ctx contractapi.TransactionContextInterface) (string,\n\terror)\n```\nToCompositeKey returns a composite key based on the ID and accountType\n\n```go\nfunc (c *CSO) ToLedgerValue() ([]byte, error)\n```\nToLedgerValue creates a JSON-encoded account\n\n```go\ntype Cached struct {\n\tState\n\tTxWriteSet  TxWriteSet\n\tTxDeleteSet TxDeleteSet\n}\n```\n\n```go\nfunc WithCache(ss State) *Cached\n```\nWithCached returns state with tx level state cache\n\n```go\ntype CachedQueryIterator struct {\n\tKVs []*queryresult.KV\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCachedQueryIterator(iterator shim.StateQueryIteratorInterface, prefix string, writeSet TxWriteSet, deleteSet TxDeleteSet) (*CachedQueryIterator, error)\n```\n\n```go\nfunc (i *CachedQueryIterator) Close() error\n```\nClose closes the iterator. This should be called when done reading from the iterator to free up resources.\n\n```go\nfunc (i *CachedQueryIterator) HasNext() bool\n```\nHasNext returns true if the range query iterator contains additional keys and values.\n\n```go\nfunc (i *CachedQueryIterator) Next() (*queryresult.KV, error)\n```\n\n```go\ntype CalcChaincode struct {\n}\n```\nCalcChaincode Represents our chaincode object\n\n```go\nfunc (tokencc *CalcChaincode) Calculator(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nCalculator - takes args\\[0]=operator args\\[1]=operand\n\n```go\nfunc (tokencc *CalcChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit Implements the Init method\n\n```go\nfunc (tokencc *CalcChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\ntype CalcToken struct {\n}\n```\n\n```go\nfunc (token *CalcToken) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (token *CalcToken) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\ntype CallFunc struct {\n\tFunc string   `json:\"func\"`\n\tArgs [][]byte `json:\"args\"`\n}\n```\n\n```go\ntype CallerChaincode struct {\n}\n```\nCallerChaincode Represents our chaincode object\n\n```go\nfunc (token *CallerChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit func will do nothing\n\n```go\nfunc (token *CallerChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\ntype Campaign struct {\n\tId        string `json:\"id\"`\n\tName      string `json:\"name\"`\n\tStartTime string `json:\"startTime\"`\n\tEndTime   string `json:\"endTime\"`\n}\n```\n\n```go\ntype CampaignSmartContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *CampaignSmartContract) CampaignExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) CreateCampaign(ctx contractapi.TransactionContextInterface, camId string, name string, advertiser string, publisher string, startTimeStr string, endTimeStr string, verifierURLStr string, deviceIdsStr string) (*putils.Campaign, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) CreateCampaignAsync(ctx contractapi.TransactionContextInterface, camId string, name string, advertiser string, publisher string, startTimeStr string, endTimeStr string, verifierURLStr string, deviceIdsStr string) (*putils.Campaign, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) DeleteAllCampaigns(ctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) DeleteCampaign(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *CampaignSmartContract) DeleteCampaignById(ctx contractapi.TransactionContextInterface, camId string) (bool, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) DeleteVerifiersData(ctx contractapi.TransactionContextInterface, camId string) error\n```\n\n```go\nfunc (s *CampaignSmartContract) GetAllCampaigns(ctx contractapi.TransactionContextInterface) ([]*putils.Campaign, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) GetCampaignById(ctx contractapi.TransactionContextInterface, camId string) (*putils.Campaign, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) GetChaincodeData(ctx contractapi.TransactionContextInterface) (*ChaincodeData, error)\n```\n\n```go\nfunc (s *CampaignSmartContract) QueryCampaign(ctx contractapi.TransactionContextInterface, id string) Campaign\n```\n\n```go\ntype Candidate struct {\n\tID    string `json:\"id\"`\n\tName  string `json:\"name\"`\n\tVotes int    `json:\"votes\"`\n}\n```\nCandidate represents a candidate in the election\n\n```go\ntype Capital struct {\n\tUserID  string `json:\"user_id\"`\n\tBalance string `json:\"balance\"`\n}\n```\nCapital 资产信息\n\n```go\ntype CapitalAccount struct {\n\tDocType             string        `json:\"docType\"`\n\tID                  string        `json:\"id\"`\n\tFund                string        `json:\"fund\"`\n\tInvestor            string        `json:\"name\"`\n\tNumber              int           `json:\"number\"`\n\tCurrentPeriod       int           `json:\"currentPeriod\"`\n\tPeriodClosingValue  string        `json:\"periodClosingValue\"`\n\tPeriodOpeningValue  string        `json:\"periodOpeningValue\"`\n\tFixedFees           string        `json:\"fixedFees\"`\n\tDeposits            string        `json:\"deposits\"`\n\tOwnershipPercentage string        `json:\"ownershipPercentage\"`\n\tHighWaterMark       HighWaterMark `json:\"highWaterMark\"`\n}\n```\n\n```go\ntype CapitalAccountAction struct {\n\tDocType     string `json:\"docType\"`\n\tID          string `json:\"id\"`\n\tType        string `json:\"type\"`\n\tAmount      string `json:\"amount\"`\n\tFull        bool   `json:\"full\"`\n\tStatus      string `json:\"status\"`\n\tDescription string `json:\"description\"`\n\tDate        string `json:\"Date\"`\n\tPeriod      int    `json:\"period\"`\n}\n```\n\n```go\ntype Car struct {\n\tMake   string `json:\"make\"`\n\tModel  string `json:\"model\"`\n\tColour string `json:\"colour\"`\n\tOwner  string `json:\"owner\"`\n}\n```\n3\\. car, query result struct\n\n```go\ntype CarAsset struct {\n\tID         string\n\tOwnerID    string\n\tBrand      string\n\tModel      string\n\tColor      string\n\tPrice      float32\n\tYear       int\n\tDefectList []Defect\n}\n```\n\n```go\ntype CarOwnershipSmartContract struct {\n\t// embed the contractapi.Contract struct to get access to the Contract's methods\n\tcontractapi.Contract\n}\n```\nstruct for SmartContract defines the available Car Ownership Smart Contract methods\n\n```go\nfunc (cosc *CarOwnershipSmartContract) AddCar(ctx contractapi.TransactionContextInterface, id, name, number, owner string, cost int) error\n```\nAdd new car to the ledger\n\n```go\nfunc (cosc *CarOwnershipSmartContract) ChangeOwner(ctx contractapi.TransactionContextInterface, id string, newOwner string, cost int) error\n```\ntransfers the ownership of the car to the new owner (creates a entry in the ledger with the new owner name)\n\n```go\nfunc (cosc *CarOwnershipSmartContract) GetCarById(ctx contractapi.TransactionContextInterface, id string) (*Car, error)\n```\nget the car by id from the ledger\n\n```go\nfunc (cosc *CarOwnershipSmartContract) ListAllCars(ctx contractapi.TransactionContextInterface) ([]*Car, error)\n```\nreturns all the existing cars in the ledger\n\n```go\ntype Card struct {\n\t// TraderID added for more readable and query\n\t// make it string for compositekey\n\tTraderID string `json:\"traderID\"`\n\t// Count how many share owns this traderID\n\tCount       int    `json:\"count\"`\n\tStockSymbol string `json:\"stockSymbol\"`\n\t// Dividend toman/share\n\tDividend int `json:\"dividend\"`\n\t// DividendPayments the plan of paying dividend\n\tDividendPayments []DividendPayment `json:\"dividendPayment\"`\n}\n```\nCard is a struct for dividend info and owners\n\n```go\ntype CargoDetails struct {\n\tContainer Container `json:\"container\"`\n}\n```\n\n```go\ntype CcCounter struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (cc *CcCounter) Countup(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\n\n```go\nfunc (cc *CcCounter) Get(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\n\n```go\nfunc (cc *CcCounter) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (cc *CcCounter) Reset(ctx contractapi.TransactionContextInterface, key string) error\n```\n\n```go\ntype CdlChainCode struct {\n\tcontractapi.Contract\n}\n```\nCdlChainCode チェーンコード本体の構造体定義\n\n```go\nfunc (cc *CdlChainCode) Init(ctx contractapi.TransactionContextInterface)\n```\nInit チェーンコード配備時に実行される初期化関数\n\n```go\nfunc (cc *CdlChainCode) KeyExists(ctx contractapi.TransactionContextInterface, key string) (bool, error)\n```\nCheck if the key exists on the Block-Chain\n\n@param ctx the transaction context @param key the key @return bool\n\n```go\nfunc (cc *CdlChainCode) QueryCDLEvent(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nquery CDL Event from the Block-Chain\n\n@param ctx the transaction context @param key the key @return CDL Event (Json String)\n\n```go\nfunc (cc *CdlChainCode) QueryCDLEventByArray(ctx contractapi.TransactionContextInterface, eventidarray string) (string, error)\n```\nquery CDL Events by eventid's array from the Block-Chain\n\n@param ctx the transaction context @param eventidarray a string representing an array of eventids @return CDL Events (Json String)\n\n```go\nfunc (cc *CdlChainCode) QueryCDLEventByRange(ctx contractapi.TransactionContextInterface, startKey string, endKey string) (string, error)\n```\nquery CDL Event from the Block-Chain by range\n\n(現状、CDLから呼び出すメソッドではなく、\n\n\t直接 peer chaincode コマンドで呼び出し、ブロックチェーンの中身を確認するためのデバッグ用メソッド)\n\n@param ctx the transaction context @param search start key @param search end key @return CDL Event (Json Strings)\n\n```go\nfunc (cc *CdlChainCode) QueryCDLEventByRichQuery(ctx contractapi.TransactionContextInterface, query string) (string, error)\n```\nrich query CDL Event from the Block-Chain\n\n@param ctx the transaction context @param query the query @return CDL Event (Json String)\n\n```go\nfunc (cc *CdlChainCode) RegistCDLEvent(ctx contractapi.TransactionContextInterface, key string, jsonString string) error\n```\nregist CDL Event to the Block-Chain\n\n@param ctx the transaction context @param key the key for the CDL Event @param jsonString the make of the new event\n\n```go\nfunc (cc *CdlChainCode) RegistUpdateCDLEvent(ctx contractapi.TransactionContextInterface, key string, jsonString string, updates string) error\n```\nregist and update CDL Event to the Block-Chain\n\n@param ctx the transaction context @param key the key for the CDL Event @param jsonString CDL Event @param updates events to update\n\n```go\ntype Cert struct {\n\tID          string `json:\"ID\"`\n\tWithNID     string `json:\"WithNID\"`\n\tCertSign    string `json:\"CertSign\"`\n\tCertHash    string `json:\"CertHash\"`\n\tCreatedAt   string `json:\"CreatedAt\"`\n\tTxIDCreated string `json:\"TxIDCreated\"`\n}\n```\n\n```go\nfunc NewCert(id string, nid string, time string) Cert\n```\n\n```go\ntype CertContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *CertContract) CreateCert(ctx contractapi.TransactionContextInterface, certID string, unit string, name string, nid string) (string, error)\n```\n\n```go\nfunc (c *CertContract) GetCertByPartialKey(ctx contractapi.TransactionContextInterface, nid string) ([]*Cert, error)\n```\n\n```go\nfunc (c *CertContract) HashExists(ctx contractapi.TransactionContextInterface, certID string) (bool, error)\n```\n\n```go\nfunc (c *CertContract) ReadCert(ctx contractapi.TransactionContextInterface, certID string) (*Cert, error)\n```\n\n```go\ntype CertIdentity struct {\n\tMspID string\n\tCert  *x509.Certificate\n}\n```\nCertIdentity  structs holds data of an tx creator\n\n```go\nfunc FromFile(mspID string, filename string, getContent GetContent) (ci *CertIdentity, err error)\n```\nFromFile creates certIdentity from file determined by filename\n\n```go\nfunc FromSerialized(s msp.SerializedIdentity) (ci *CertIdentity, err error)\n```\nFromSerialized converts  msp.SerializedIdentity struct  to Identity interface{}\n\n```go\nfunc FromStub(stub shim.ChaincodeStubInterface) (ci *CertIdentity, err error)\n```\nFromStub creates Identity interface  from tx creator mspID and certificate (stub.GetCreator)\n\n```go\nfunc New(mspID string, certPEM []byte) (ci *CertIdentity, err error)\n```\nNew creates CertIdentity struct from an mspID and certificate\n\n```go\nfunc (ci CertIdentity) GetID() string\n```\nGetID get id based in certificate subject and issuer\n\n```go\nfunc (ci CertIdentity) GetIssuer() string\n```\nGetIssuer returns invoker's certificate issuer\n\n```go\nfunc (ci CertIdentity) GetMSPID() string\n```\nGetMSPID returns invoker's membership service provider id\n\n```go\nfunc (ci CertIdentity) GetPEM() []byte\n```\nGetPEM certificate encoded to PEM\n\n```go\nfunc (ci CertIdentity) GetPublicKey() interface{}\n```\n\n```go\nfunc (ci CertIdentity) GetSubject() string\n```\nGetSubject returns invoker's certificate subject\n\n```go\nfunc (ci CertIdentity) Is(id Identity) bool\n```\nIs checks invoker is equal an identity\n\n```go\nfunc (ci CertIdentity) ToBytes() ([]byte, error)\n```\nToBytes converts to serializedIdentity and then to json\n\n```go\nfunc (ci CertIdentity) ToSerialized() *msp.SerializedIdentity\n```\nToSerialized converts CertIdentity to \\*msp.SerializedIdentity\n\n```go\ntype CertItem struct {\n\tID      string `json:\"ID\"`\n\tUserID  string `json:\"UsrID\"`\n\tStatus  int    `json:\"Status\"`\n\tExpDays int    `json:\"ExpDays\"`\n\tReqTime string `json:\"ReqTime\"`\n\tIsuTime string `json:\"IsuTime\"`\n\tRvkTime string `json:\"RvkTime\"`\n\tKey     string `json:\"Key\"`\n}\n```\n\n```go\ntype Certificate struct {\n\tOrgID           string `json:\"orgid\"`\n\tUserID          string `json:\"userid\"`\n\tCertificateName string `json:\"certificatename\"`\n\tExpiredDate     string `json:\"expiredate\"`\n\tCertHash        string `json:\"certhash\"`\n}\n```\n인증서 등록기관의 ID, 인증서의 주인 ID, 인증서의 종류, 만기일, 인증서 해쉬\n\n```go\ntype Certs struct {\n\t// 证书的主键\n\tCertId string `json:\"certId\"`\n\t// 版本号\n\tVersion int `json:\"version\"`\n\t// 开始时间\n\tBeginDate time.Time `json:\"beginDate\"`\n\t// 结束时间\n\tEndDate time.Time `json:\"endDate\"`\n\t// subject\n\tSubject pkix.Name `json:\"subject\"`\n\t// 颁发者\n\tIssuer pkix.Name `json:\"issuer\"`\n\t// 证书的字节数组\n\tCertBytes []byte `json:\"certBytes\"`\n\t// 证书的hash值\n\tCertHashValue string `json:\"certHashValue\"`\n\t// 所拥有的证书的用户的Id\n\tUserId string `json:\"userId\"`\n}\n```\n\n```go\ntype ChainError struct {\n\tFCN  string // function/method\n\tKEY  string // associated KEY, if any\n\tCODE string // Error CODE\n\tERR  error  // Error.\n}\n```\nChainError - custom error\n\n```go\nfunc CheckAsset(stub shim.ChaincodeStubInterface, assetID string) (bool, *ChainError)\n```\nCheckAsset - check if an asset ( with a key) is already available on the ledger\n\n```go\nfunc GetCallerID(stub shim.ChaincodeStubInterface) (string, *ChainError)\n```\nGetCallerID - reterive caller id from ECert\n\n```go\nfunc QueryAsset(stub shim.ChaincodeStubInterface, assetID string) ([]byte, *ChainError)\n```\nQueryAsset - return query state from the ledger\n\n```go\nfunc (e *ChainError) Error() string\n```\n\n```go\ntype Chaincode struct {\n\tcontractapi.Contract\n}\n```\nChaincode : strcut for implementing chaincode\n\n```go\nfunc (cc *Chaincode) CreateUser(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (cc *Chaincode) GetHistoryForAsset(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (t *Chaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit 初始化或升级cc\n\n```go\nfunc (t *Chaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke 执行invoke或者query操作\n\n```go\nfunc (cc *Chaincode) QueryMolecules(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (cc *Chaincode) TransferOwnership(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (cc *Chaincode) UpdateUser(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (cc *Chaincode) UploadMolecule(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\ntype ChaincodeBuilder interface {\n\tBuild(ccid string) error\n}\n```\n\n```go\ntype ChaincodeClient interface {\n\tQuery(stub shim.ChaincodeStubInterface, fn string, args []interface{}, target interface{}) (interface{}, error)\n}\n```\n\n```go\ntype ChaincodeCmdFactory struct {\n\tEndorserClients []pb.EndorserClient\n\tDeliverClients  []pb.DeliverClient\n\tCertificate     tls.Certificate\n\tSigner          identity.SignerSerializer\n\tBroadcastClient common.BroadcastClient\n}\n```\nChaincodeCmdFactory holds the clients used by ChaincodeCmd\n\n```go\nfunc InitCmdFactory(cmdName string, isEndorserRequired, isOrdererRequired bool, cryptoProvider bccsp.BCCSP) (*ChaincodeCmdFactory, error)\n```\nInitCmdFactory init the ChaincodeCmdFactory with default clients\n\n```go\ntype ChaincodeData struct {\n\tId        string `json:\"id\"`\n\tMSPId     string `json:\"mspID\"`\n\tCert      string `json:\"cert\"`\n\tIssuer    string `json:\"issuer\"`\n\tSubject   string `json:\"subject\"`\n\tSignature string `json:\"signature\"`\n\t// Attributes *attrmgr.Attributes `json:\"attributes\"`\n\tCN string `json:\"cn\"`\n\tOU string `json:\"ou\"`\n}\n```\n\n```go\ntype ChaincodeLocatorResolver func(ctx router.Context, serviceName string) (*ChaincodeLocator, error)\n```\n\n```go\ntype ChaincodePrivateLedgerShim struct {\n\tStub       shim.ChaincodeStubInterface\n\tCollection string\n}\n```\nChaincodePrivateLedgerShim wraps the chaincode shim to make access to keys in a collection have the same semantics as normal public keys.\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) CollectionName() string\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) DelState(key string) error\n```\nDelState deletes the key in the configured collection.\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) GetState(key string) ([]byte, error)\n```\nGetState returns the value for the key in the configured collection.\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) GetStateHash(key string) ([]byte, error)\n```\nGetStateHash return the hash of the pre-image for the key in the configured collection.\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\nGetStateRange performs a range query in the configured collection for all keys beginning with a particular prefix.  This function assumes that keys contain only ascii chars from \\\\x00 to \\\\x7e.\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) PutState(key string, value []byte) error\n```\nPutState sets the value for the key in the configured collection.\n\n```go\ntype ChaincodePublicLedgerShim struct {\n\tshim.ChaincodeStubInterface\n}\n```\nChaincodePublicLedgerShim decorates the chaincode shim to support the state interfaces required by the serialization code.\n\n```go\nfunc (cls *ChaincodePublicLedgerShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\nGetStateRange performs a range query for keys beginning with a particular prefix, and returns it as a map. This function assumes that keys contain only ascii chars from \\\\x00 to \\\\x7e.\n\n```go\ntype ChaincodeResultIteratorShim struct {\n\tResultsIterator shim.StateQueryIteratorInterface\n}\n```\n\n```go\nfunc (cris *ChaincodeResultIteratorShim) Close() error\n```\n\n```go\nfunc (cris *ChaincodeResultIteratorShim) Next() (*queryresult.KV, error)\n```\n\n```go\ntype ChaincodeServer struct {\n\t// CCID should match chaincode's package name on peer\n\tCCID string\n\t// Addesss is the listen address of the chaincode server\n\tAddress string\n\t// CC is the chaincode that handles Init and Invoke\n\tCC Chaincode\n\t// TLSProps is the TLS properties passed to chaincode server\n\tTLSProps TLSProperties\n\t// KaOpts keepalive options, sensible defaults provided if nil\n\tKaOpts *keepalive.ServerParameters\n}\n```\nChaincodeServer encapsulates basic properties needed for a chaincode server\n\n```go\nfunc (cs *ChaincodeServer) Connect(stream pb.Chaincode_ConnectServer) error\n```\nConnect the bidi stream entry point called by chaincode to register with the Peer.\n\n```go\nfunc (cs *ChaincodeServer) Start() error\n```\nStart the server\n\n```go\ntype ChaincodeStreamHandler interface {\n\tHandleChaincodeStream(ccintf.ChaincodeStream) error\n\tLaunchInProc(packageID string) \u003c-chan struct{}\n}\n```\nA ChaincodeStreamHandler is responsible for handling the ChaincodeStream communication between a per and chaincode.\n\n```go\ntype ChaincodeStub struct {\n\tCreateCompositeKeyStub func(string, []string) (string, error)\n\n\tDelPrivateDataStub func(string, string) error\n\n\tDelStateStub func(string) error\n\n\tGetArgsStub func() [][]byte\n\n\tGetArgsSliceStub func() ([]byte, error)\n\n\tGetBindingStub func() ([]byte, error)\n\n\tGetChannelIDStub func() string\n\n\tGetCreatorStub func() ([]byte, error)\n\n\tGetDecorationsStub func() map[string][]byte\n\n\tGetFunctionAndParametersStub func() (string, []string)\n\n\tGetHistoryForKeyStub func(string) (shim.HistoryQueryIteratorInterface, error)\n\n\tGetPrivateDataStub func(string, string) ([]byte, error)\n\n\tGetPrivateDataByPartialCompositeKeyStub func(string, string, []string) (shim.StateQueryIteratorInterface, error)\n\n\tGetPrivateDataByRangeStub func(string, string, string) (shim.StateQueryIteratorInterface, error)\n\n\tGetPrivateDataHashStub func(string, string) ([]byte, error)\n\n\tGetPrivateDataQueryResultStub func(string, string) (shim.StateQueryIteratorInterface, error)\n\n\tGetPrivateDataValidationParameterStub func(string, string) ([]byte, error)\n\n\tGetQueryResultStub func(string) (shim.StateQueryIteratorInterface, error)\n\n\tGetQueryResultWithPaginationStub func(string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)\n\n\tGetSignedProposalStub func() (*peer.SignedProposal, error)\n\n\tGetStateStub func(string) ([]byte, error)\n\n\tGetStateByPartialCompositeKeyStub func(string, []string) (shim.StateQueryIteratorInterface, error)\n\n\tGetStateByPartialCompositeKeyWithPaginationStub func(string, []string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)\n\n\tGetStateByRangeStub func(string, string) (shim.StateQueryIteratorInterface, error)\n\n\tGetStateByRangeWithPaginationStub func(string, string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)\n\n\tGetStateValidationParameterStub func(string) ([]byte, error)\n\n\tGetStringArgsStub func() []string\n\n\tGetTransientStub func() (map[string][]byte, error)\n\n\tGetTxIDStub func() string\n\n\tGetTxTimestampStub func() (*timestamp.Timestamp, error)\n\n\tInvokeChaincodeStub func(string, [][]byte, string) peer.Response\n\n\tPurgePrivateDataStub func(string, string) error\n\n\tPutPrivateDataStub func(string, string, []byte) error\n\n\tPutStateStub func(string, []byte) error\n\n\tSetEventStub func(string, []byte) error\n\n\tSetPrivateDataValidationParameterStub func(string, string, []byte) error\n\n\tSetStateValidationParameterStub func(string, []byte) error\n\n\tSplitCompositeKeyStub func(string) (string, []string, error)\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (fake *ChaincodeStub) CreateCompositeKey(arg1 string, arg2 []string) (string, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) CreateCompositeKeyArgsForCall(i int) (string, []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) CreateCompositeKeyCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) CreateCompositeKeyCalls(stub func(string, []string) (string, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) CreateCompositeKeyReturns(result1 string, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) CreateCompositeKeyReturnsOnCall(i int, result1 string, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelPrivateData(arg1 string, arg2 string) error\n```\n\n```go\nfunc (fake *ChaincodeStub) DelPrivateDataArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelPrivateDataCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) DelPrivateDataCalls(stub func(string, string) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelPrivateDataReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelPrivateDataReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelState(arg1 string) error\n```\n\n```go\nfunc (fake *ChaincodeStub) DelStateArgsForCall(i int) string\n```\n\n```go\nfunc (fake *ChaincodeStub) DelStateCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) DelStateCalls(stub func(string) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelStateReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) DelStateReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgs() [][]byte\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsCalls(stub func() [][]byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsReturns(result1 [][]byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsReturnsOnCall(i int, result1 [][]byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsSlice() ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsSliceCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsSliceCalls(stub func() ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsSliceReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetArgsSliceReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetBinding() ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetBindingCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetBindingCalls(stub func() ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetBindingReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetBindingReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetChannelID() string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetChannelIDCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetChannelIDCalls(stub func() string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetChannelIDReturns(result1 string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetChannelIDReturnsOnCall(i int, result1 string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetCreator() ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetCreatorCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetCreatorCalls(stub func() ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetCreatorReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetCreatorReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetDecorations() map[string][]byte\n```\n\n```go\nfunc (fake *ChaincodeStub) GetDecorationsCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetDecorationsCalls(stub func() map[string][]byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetDecorationsReturns(result1 map[string][]byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetDecorationsReturnsOnCall(i int, result1 map[string][]byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetFunctionAndParameters() (string, []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetFunctionAndParametersCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetFunctionAndParametersCalls(stub func() (string, []string))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetFunctionAndParametersReturns(result1 string, result2 []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetFunctionAndParametersReturnsOnCall(i int, result1 string, result2 []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetHistoryForKey(arg1 string) (shim.HistoryQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetHistoryForKeyArgsForCall(i int) string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetHistoryForKeyCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetHistoryForKeyCalls(stub func(string) (shim.HistoryQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetHistoryForKeyReturns(result1 shim.HistoryQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetHistoryForKeyReturnsOnCall(i int, result1 shim.HistoryQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateData(arg1 string, arg2 string) ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKey(arg1 string, arg2 string, arg3 []string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyArgsForCall(i int) (string, string, []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyCalls(stub func(string, string, []string) (shim.StateQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyReturns(result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByRange(arg1 string, arg2 string, arg3 string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByRangeArgsForCall(i int) (string, string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByRangeCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByRangeCalls(stub func(string, string, string) (shim.StateQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByRangeReturns(result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataByRangeReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataCalls(stub func(string, string) ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataHash(arg1 string, arg2 string) ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataHashArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataHashCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataHashCalls(stub func(string, string) ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataHashReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataHashReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataQueryResult(arg1 string, arg2 string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataQueryResultArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataQueryResultCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataQueryResultCalls(stub func(string, string) (shim.StateQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataQueryResultReturns(result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataQueryResultReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataValidationParameter(arg1 string, arg2 string) ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataValidationParameterArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataValidationParameterCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataValidationParameterCalls(stub func(string, string) ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataValidationParameterReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetPrivateDataValidationParameterReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResult(arg1 string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultArgsForCall(i int) string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultCalls(stub func(string) (shim.StateQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultReturns(result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultWithPagination(arg1 string, arg2 int32, arg3 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultWithPaginationArgsForCall(i int) (string, int32, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultWithPaginationCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultWithPaginationCalls(stub func(string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetQueryResultWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetSignedProposal() (*peer.SignedProposal, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetSignedProposalCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetSignedProposalCalls(stub func() (*peer.SignedProposal, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetSignedProposalReturns(result1 *peer.SignedProposal, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetSignedProposalReturnsOnCall(i int, result1 *peer.SignedProposal, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetState(arg1 string) ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateArgsForCall(i int) string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKey(arg1 string, arg2 []string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyArgsForCall(i int) (string, []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyCalls(stub func(string, []string) (shim.StateQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyReturns(result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPagination(arg1 string, arg2 []string, arg3 int32, arg4 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationArgsForCall(i int) (string, []string, int32, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationCalls(stub func(string, []string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRange(arg1 string, arg2 string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeCalls(stub func(string, string) (shim.StateQueryIteratorInterface, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeReturns(result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeWithPagination(arg1 string, arg2 string, arg3 int32, arg4 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeWithPaginationArgsForCall(i int) (string, string, int32, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeWithPaginationCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeWithPaginationCalls(stub func(string, string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateByRangeWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateCalls(stub func(string) ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateValidationParameter(arg1 string) ([]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateValidationParameterArgsForCall(i int) string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateValidationParameterCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateValidationParameterCalls(stub func(string) ([]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateValidationParameterReturns(result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStateValidationParameterReturnsOnCall(i int, result1 []byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStringArgs() []string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStringArgsCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStringArgsCalls(stub func() []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStringArgsReturns(result1 []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetStringArgsReturnsOnCall(i int, result1 []string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTransient() (map[string][]byte, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTransientCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTransientCalls(stub func() (map[string][]byte, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTransientReturns(result1 map[string][]byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTransientReturnsOnCall(i int, result1 map[string][]byte, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxID() string\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxIDCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxIDCalls(stub func() string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxIDReturns(result1 string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxIDReturnsOnCall(i int, result1 string)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxTimestamp() (*timestamp.Timestamp, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxTimestampCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxTimestampCalls(stub func() (*timestamp.Timestamp, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxTimestampReturns(result1 *timestamp.Timestamp, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) GetTxTimestampReturnsOnCall(i int, result1 *timestamp.Timestamp, result2 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) Invocations() map[string][][]interface{}\n```\n\n```go\nfunc (fake *ChaincodeStub) InvokeChaincode(arg1 string, arg2 [][]byte, arg3 string) peer.Response\n```\n\n```go\nfunc (fake *ChaincodeStub) InvokeChaincodeArgsForCall(i int) (string, [][]byte, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) InvokeChaincodeCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) InvokeChaincodeCalls(stub func(string, [][]byte, string) peer.Response)\n```\n\n```go\nfunc (fake *ChaincodeStub) InvokeChaincodeReturns(result1 peer.Response)\n```\n\n```go\nfunc (fake *ChaincodeStub) InvokeChaincodeReturnsOnCall(i int, result1 peer.Response)\n```\n\n```go\nfunc (fake *ChaincodeStub) PurgePrivateData(arg1 string, arg2 string) error\n```\n\n```go\nfunc (fake *ChaincodeStub) PurgePrivateDataArgsForCall(i int) (string, string)\n```\n\n```go\nfunc (fake *ChaincodeStub) PurgePrivateDataCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) PurgePrivateDataCalls(stub func(string, string) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PurgePrivateDataReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PurgePrivateDataReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutPrivateData(arg1 string, arg2 string, arg3 []byte) error\n```\n\n```go\nfunc (fake *ChaincodeStub) PutPrivateDataArgsForCall(i int) (string, string, []byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutPrivateDataCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) PutPrivateDataCalls(stub func(string, string, []byte) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutPrivateDataReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutPrivateDataReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutState(arg1 string, arg2 []byte) error\n```\n\n```go\nfunc (fake *ChaincodeStub) PutStateArgsForCall(i int) (string, []byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutStateCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) PutStateCalls(stub func(string, []byte) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutStateReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) PutStateReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetEvent(arg1 string, arg2 []byte) error\n```\n\n```go\nfunc (fake *ChaincodeStub) SetEventArgsForCall(i int) (string, []byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetEventCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) SetEventCalls(stub func(string, []byte) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetEventReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetEventReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetPrivateDataValidationParameter(arg1 string, arg2 string, arg3 []byte) error\n```\n\n```go\nfunc (fake *ChaincodeStub) SetPrivateDataValidationParameterArgsForCall(i int) (string, string, []byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetPrivateDataValidationParameterCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) SetPrivateDataValidationParameterCalls(stub func(string, string, []byte) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetPrivateDataValidationParameterReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetPrivateDataValidationParameterReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetStateValidationParameter(arg1 string, arg2 []byte) error\n```\n\n```go\nfunc (fake *ChaincodeStub) SetStateValidationParameterArgsForCall(i int) (string, []byte)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetStateValidationParameterCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) SetStateValidationParameterCalls(stub func(string, []byte) error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetStateValidationParameterReturns(result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SetStateValidationParameterReturnsOnCall(i int, result1 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SplitCompositeKey(arg1 string) (string, []string, error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SplitCompositeKeyArgsForCall(i int) string\n```\n\n```go\nfunc (fake *ChaincodeStub) SplitCompositeKeyCallCount() int\n```\n\n```go\nfunc (fake *ChaincodeStub) SplitCompositeKeyCalls(stub func(string) (string, []string, error))\n```\n\n```go\nfunc (fake *ChaincodeStub) SplitCompositeKeyReturns(result1 string, result2 []string, result3 error)\n```\n\n```go\nfunc (fake *ChaincodeStub) SplitCompositeKeyReturnsOnCall(i int, result1 string, result2 []string, result3 error)\n```\n\n```go\ntype ChaincodeStubInterface interface {\n\tshim.ChaincodeStubInterface\n}\n```\nChaincodeStubInterface is used by deployable chaincode apps to access and modify their ledgers\n\n```go\ntype ChaincodeStubInvoker interface {\n\tQuery(stub shim.ChaincodeStubInterface, fn string, args []interface{}, target interface{}) (interface{}, error)\n}\n```\nChaincodeStubInvoker for cross chaincode calls - only query (read) methods context argument is router.Context, not context.Context\n\n```go\ntype Channel struct {\n\tObjectType    string            `json:\"docType\"`       //docType is used to distinguish the various types of objects in state database\n\tID            string            `json:\"ID\"`            // Channel ID\n\tChannelType   string            `json:\"channelType\"`   // Channel Type\n\tOrganizations map[string]string `json:\"organizations\"` // Set of MSP IDs\n}\n```\nChannel describes channel information which includes the channel ID and organizations participating in the channel.\n\n```go\ntype ChannelConfigSource interface {\n\t// GetStableChannelConfig returns the channel config for a given channel id.\n\t// Note, it is a stable bundle, which means it will not be updated, even if\n\t// the channel is, so it should be discarded after use.\n\tGetStableChannelConfig(channelID string) channelconfig.Resources\n}\n```\nChannelConfigSource provides a way to retrieve the channel config for a given channel ID.\n\n```go\ntype ChannelFetcher interface {\n\tChannel(channelID string) *Channel\n}\n```\nChannelFetcher fetches the channel context for a given channel ID.\n\n```go\ntype ChannelMockStubs map[string]*MockStub\n```\n\n```go\ntype ChannelsMockStubs map[string]ChannelMockStubs\n```\n\n```go\ntype Charger struct {\n\tEVID      string  `json:\"EVID\"` // null if no EV connected\n\tChargerID int     `json:\"charger_ID\"`\n\tPowerFlow float64 `json:\"power_flow\"` // must be same as EV powerflow\n}\n```\n\n```go\ntype ChargingPeriod struct {\n\tUID             string `json:\"uId\"`\n\tStartDateTime   string `json:\"startDateTime\"`\n\tDimensionType   string `json:\"dimensionType\"`\n\tDimensionVolume string `json:\"dimensionVolume\"`\n\tTariffID        string `json:\"tariffId\"`\n}\n```\n\n```go\ntype Chat struct {\n\tFrom      string `json:\"from\"`\n\tMessage   string `json:\"message\"`\n\tTimeStamp string `json:\"timeStamp\"`\n}\n```\nA single chat element\n\n```go\ntype ChatSchema struct {\n\tDocType      string   `json:\"docType\"`\n\tParticipants []string `json:\"participants\"`\n\tChat         []Chat   `json:\"chat\"`\n}\n```\nBasic definition for chat schema\n\n```go\ntype CidChaincode struct {\n}\n```\nCidChaincode Represents our chaincode object\n\n```go\nfunc (clientdid *CidChaincode) AssertOnCallersDepartment(stub shim.ChaincodeStubInterface) peer.Response\n```\nAssertOnCallersDepartment uses the cid AsssertAttributeValue Rule = Only a caller with department=accounting can invoke this function\n\n```go\nfunc (clientdid *CidChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit Implements the Init method\n\n```go\nfunc (clientdid *CidChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\nfunc (clientdid *CidChaincode) ReadAttributesOfCaller(stub shim.ChaincodeStubInterface) peer.Response\n```\nReadAttributesOfCaller reads the attributes of the callers cert and return it as JSON\n\n```go\ntype Claim struct {\n\tContractUUID  string      `json:\"contract_uuid\"`\n\tDate          time.Time   `json:\"date\"`\n\tDescription   string      `json:\"description\"`\n\tIsTheft       bool        `json:\"is_theft\"`\n\tStatus        ClaimStatus `json:\"status\"`\n\tReimbursable  float32     `json:\"reimbursable\"`\n\tRepaired      bool        `json:\"repaired\"`\n\tFileReference string      `json:\"file_reference\"`\n}\n```\nKey consists of prefix + UUID of the contract + UUID of the claim\n\n```go\nfunc (c *Claim) Contract(stub shim.ChaincodeStubInterface) (*Contract, error)\n```\n\n```go\ntype ClaimEvent struct {\n\tSubjectID string `json:\"subjectID\"`\n\tIssuerID  string `json:\"issuerID\"`\n\tClaim     string `json:\"claim\"`\n}\n```\nClaimEvent describes the strucutre of a claim event\n\n```go\ntype ClaimStatus int8\n```\nThe claim status indicates how the claim should be treated\n\n```go\nconst (\n\t// The claims status is unknown\n\tClaimStatusUnknown ClaimStatus = iota\n\t// The claim is new\n\tClaimStatusNew\n\t// The claim has been rejected (either by the insurer, or by authorities\n\tClaimStatusRejected\n\t// The item is up for repairs, or has been repaired\n\tClaimStatusRepair\n\t// The customer should be reimbursed, or has already been\n\tClaimStatusReimbursement\n\t// The theft of the item has been confirmed by authorities\n\tClaimStatusTheftConfirmed\n)\n```\n\n```go\nconst (\n\t// The claims status is unknown\n\tClaimStatusUnknown ClaimStatus = iota\n\t// The claim is new\n\tClaimStatusNew\n\t// The claim has been rejected (either by the insurer, or by authorities\n\tClaimStatusRejected\n\t// The item is up for repairs, or has been repaired\n\tClaimStatusRepair\n\t// The customer should be reimbursed, or has already been\n\tClaimStatusReimbursement\n\t// The theft of the item has been confirmed by authorities\n\tClaimStatusTheftConfirmed\n)\n```\n\n```go\nfunc (s ClaimStatus) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (s *ClaimStatus) UnmarshalJSON(b []byte) error\n```\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *Client) CommitCallback(ibtp *pb.IBTP) error\n```\n\n```go\nfunc (c *Client) GetAppchainInfo(chainID string) (string, []byte, string, error)\n```\n\n```go\nfunc (c Client) GetCallbackMeta() (map[string]uint64, error)\n```\n\n```go\nfunc (c *Client) GetChainID() (string, string, error)\n```\n\n```go\nfunc (c *Client) GetDirectTransactionMeta(IBTPid string) (uint64, uint64, uint64, error)\n```\n\n```go\nfunc (c *Client) GetDstRollbackMeta() (map[string]uint64, error)\n```\n\n```go\nfunc (c *Client) GetIBTPCh() chan *pb.IBTP\n```\n\n```go\nfunc (c *Client) GetInMessage(servicePair string, index uint64) ([][]byte, []byte, bool, uint64, error)\n```\n\n```go\nfunc (c *Client) GetInMeta() (map[string]uint64, error)\n```\n\n```go\nfunc (c *Client) GetOffChainData(request *pb.GetDataRequest) (*pb.OffChainDataInfo, error)\n```\n\n```go\nfunc (c *Client) GetOffChainDataReq() chan *pb.GetDataRequest\n```\n\n```go\nfunc (c *Client) GetOutMessage(servicePair string, idx uint64) (*pb.IBTP, error)\n```\n\n```go\nfunc (c *Client) GetOutMeta() (map[string]uint64, error)\n```\n\n```go\nfunc (c *Client) GetReceiptMessage(servicePair string, idx uint64) (*pb.IBTP, error)\n```\n\n```go\nfunc (c *Client) GetServices() ([]string, error)\n```\n\n```go\nfunc (c *Client) GetSrcRollbackMeta() (map[string]uint64, error)\n```\n\n```go\nfunc (c *Client) GetUpdateMeta() chan *pb.UpdateMeta\n```\n\n```go\nfunc (c *Client) Initialize(configPath string, extra []byte, mode string) error\n```\n\n```go\nfunc (c *Client) InvokeIndexUpdate(from string, index uint64, serviceId string, category pb.IBTP_Category) (*channel.Response, *Response, error)\n```\n\n```go\nfunc (c *Client) InvokeInterchain(srcFullID string, index uint64, destAddr string, reqType uint64, callFunc string, callArgs [][]byte, txStatus uint64, multiSign [][]byte, encrypt bool) (*channel.Response, *Response, error)\n```\n\n```go\nfunc (c *Client) InvokeInterchains(srcFullID []string, index []uint64, destAddr []string, reqType []uint64, callFunc []string, callArgs [][][]byte, txStatus []uint64, multiSign [][][]byte, encrypt []bool) (*channel.Response, *Response, error)\n```\n\n```go\nfunc (c *Client) InvokeReceipt(srcAddr string, dstFullID string, index uint64, reqType uint64, result [][]byte, txStatus uint64, multiSign [][]byte) (*channel.Response, *Response, error)\n```\n\n```go\nfunc (c *Client) Name() string\n```\n\n```go\nfunc (c *Client) Start() error\n```\n\n```go\nfunc (c *Client) Stop() error\n```\n\n```go\nfunc (c *Client) SubmitIBTP(from string, index uint64, serviceID string, ibtpType pb.IBTP_Type, content *pb.Content, proof *pb.BxhProof, isEncrypted bool) (*pb.SubmitIBTPResponse, error)\n```\n\n```go\nfunc (c *Client) SubmitIBTPBatch(from []string, index []uint64, serviceID []string, ibtpType []pb.IBTP_Type, content []*pb.Content, proof []*pb.BxhProof, isEncrypted []bool) (*pb.SubmitIBTPResponse, error)\n```\n\n```go\nfunc (c *Client) SubmitOffChainData(response *pb.GetDataResponse) error\n```\n\n```go\nfunc (c *Client) SubmitReceipt(to string, index uint64, serviceID string, ibtpType pb.IBTP_Type, result *pb.Result, proof *pb.BxhProof) (*pb.SubmitIBTPResponse, error)\n```\n\n```go\nfunc (c *Client) SubmitReceiptBatch(to []string, index []uint64, serviceID []string, ibtpType []pb.IBTP_Type, result []*pb.Result, proof []*pb.BxhProof) (*pb.SubmitIBTPResponse, error)\n```\n\n```go\nfunc (c *Client) Type() string\n```\n\n```go\ntype ClientIdentity struct {\n\tMspID          format.MSPID\n\tCertificatePem string\n\tAttrs          map[string]string `json:\"Attrs,omitempty\"`\n}\n```\nClientIdentity alternative of creator starting from 1.1\n\n```go\nfunc NewClientIdentity(stub shim.ChaincodeStubInterface) (c ClientIdentity)\n```\n\n```go\nfunc (c ClientIdentity) GetAttributeValue(attrName string) string\n```\n\n```go\nfunc (c ClientIdentity) GetCertificate() *x509.Certificate\n```\n\n```go\nfunc (c ClientIdentity) GetID() format.CertificateID\n```\nGetID returns a unique ID associated with the invoking identity.\n\n```go\ntype ClientOpt func(*chaincodeClient)\n```\n\n```go\ntype Cliente struct {\n\tId             string\n\tNombreCompleto string\n\tSaldo          float64\n\tValorPromedio  float64\n\tMoneda         string\n}\n```\n\n```go\nfunc BuscarClientePorIDBanco1(ctx contractapi.TransactionContextInterface, id string) (Cliente, error)\n```\n\n```go\nfunc BuscarClientePorIDBanco2(ctx contractapi.TransactionContextInterface, id string) (Cliente, error)\n```\n\n```go\ntype ClusterModelMetaInfo struct {\n\tCluster  string `json:\"cluster\"`\n\tRound    int    `json:\"round\"`\n\tModelUrl string `json:\"modelUrl\"`\n}\n```\n\n```go\ntype CollaborativeInfo struct {\n\tCollaborativeClients []int    `json:\"collaborativeClients\"`\n\tModelUrls            []string `json:\"modelUrls\"`\n}\n```\n\n```go\ntype Collector struct {\n\tID       string   `json:\"id\"`\n\tName     string   `json:\"name\"`\n\tNIB      string   `json:\"nib\"`\n\tNIK      string   `json:\"nik\"`\n\tNoHP     string   `json:\"noHP\"`\n\tEmail    string   `json:\"email\"`\n\tAddress  string   `json:\"address\"`\n\tCapacity float64  `json:\"capacity\"`\n\tPartner  []string `json:\"partner\"`\n}\n```\nCollector represents the structure for a collector\n\n```go\ntype Committee struct {\n\tUsers []string\n}\n```\nCommittee 委员会\n\n```go\ntype Commmodity struct {\n\tId             string `json:\"id\"`         // 商品id\n\tName           string `json:\"name\"`       // 商品名称\n\tPrice          int64  `json:\"price\"`      //价格\n\tCurrency       string `json:\"currency\"`   // 币种\n\tIssuerId       string `json:\"issuerId\"`   // 发行者id\n\tIssuerName     string `json:\"issuerName\"` // 发行者名字\n\tOwnerId        string `json:\"ownerId\"`    // 所属人id\n\tOwnerName      string `json:\"ownerName\"`  // 所属人名字\n\tLastUpdateTime string `json:\"lastUpdate\"` // 最近更新时间\n\tState          string `json:\"state\"`      // 状态\n}\n```\nt\\_commodity\n\n```go\ntype CommonChaincode struct {\n\tName      string\n\tTxID      string\n\tChannelID string\n\tCCAPI     shim.ChaincodeStubInterface // chaincode API\n}\n```\n\n```go\nfunc (cc CommonChaincode) DelState(key string)\n```\n\n```go\nfunc (cc CommonChaincode) GetBinding() []byte\n```\n\n```go\nfunc (cc *CommonChaincode) GetChaincodeID() string\n```\nGetChaincodeID return empty for if no record.\n\n```go\nfunc (cc CommonChaincode) GetHistoryForKey(key string) shim.HistoryQueryIteratorInterface\n```\n\n```go\nfunc (cc CommonChaincode) GetState(key string) []byte\n```\n\n```go\nfunc (cc CommonChaincode) GetStateByRange(startKey string, endKey string) shim.StateQueryIteratorInterface\n```\n\n```go\nfunc (cc CommonChaincode) GetStateByRangeWithPagination(startKey, endKey string, pageSize int, bookmark string) (shim.StateQueryIteratorInterface, QueryResponseMetadata)\n```\nGetStateByRangeWithPagination This call is only supported in a read only transaction.\n\n```go\nfunc (cc CommonChaincode) GetStateObj(key string, v interface{}) bool\n```\n\n```go\nfunc (cc CommonChaincode) GetTransient() map[string][]byte\n```\n\n```go\nfunc (cc CommonChaincode) GetTxTimestamp() timestamp.Timestamp\n```\n\n```go\nfunc (cc CommonChaincode) InvokeChaincode(chaincodeName string, args [][]byte, channel string) peer.Response\n```\n\n```go\nfunc (cc *CommonChaincode) Prepare(ccAPI shim.ChaincodeStubInterface)\n```\n\n```go\nfunc (cc CommonChaincode) PutState(key string, value []byte)\n```\n\n```go\nfunc (cc CommonChaincode) PutStateObj(key string, v interface{})\n```\n\n```go\nfunc (cc CommonChaincode) SetEvent(name string, payload []byte)\n```\n\n```go\nfunc (cc CommonChaincode) WorldStates(startKey string, filter func(StateKV) bool) []StateKV\n```\n\n```go\nfunc (cc CommonChaincode) WorldStatesPrivate(collection, startKey string, filter func(StateKV) bool) []StateKV\n```\n\n```go\ntype CommonResponse struct {\n\tKey    string `json:\"Key\"`\n\tRecord string `json:\"Record\"`\n}\n```\n\n```go\ntype CommonResponsePaginated struct {\n\tResults      []CommonResponse `json:\"Results\"`\n\tRecordsCount string           `json:\"RecordsCount\"`\n\tBookmark     string           `json:\"Bookmark\"`\n}\n```\n\n```go\ntype Compact struct {\n\tCompactId      string  `json:\"compact_id\"`\n\tState          string  `json:\"state\"`\n\tPowerPlantName string  `json:\"power_plant_name\"`\n\tPowerUserName  string  `json:\"power_user_name\"`\n\tAdminName      string  `json:\"admin_name\"`\n\tTransaction    int     `json:\"transaction\"`\n\tPrice          float32 `json:\"price\"`\n\tStartTime      string  `json:\"start_time\"`\n\tEndTime        string  `json:\"end_time\"`\n}\n```\nCompact 电能交易结构体\n\n```go\ntype Company struct {\n\tID string `json:\"id\"`\n\n\tName string `json:\"name\"`\n\n\tOwner struct {\n\t\tID string `json:\"id\"`\n\n\t\tUsername string `json:\"username\"`\n\n\t\tEmail string `json:\"email\"`\n\n\t\tIsActive bool `json:\"is_active\"`\n\n\t\tIsSuperuser bool `json:\"is_superuser\"`\n\t} `json:\"owner\"`\n\n\tAddress struct {\n\t\tLabel string `json:\"label,omitempty\"`\n\n\t\tCountry string `json:\"country,omitempty\"`\n\n\t\tCity string `json:\"city,omitempty\"`\n\n\t\tArea string `json:\"area,omitempty\"`\n\n\t\tLat string `json:\"lat,omitempty\"`\n\n\t\tLong string `json:\"long,omitempty\"`\n\t} `json:\"address,omitempty\"`\n\n\tPhoneNumber string `json:\"phone_number\"`\n}\n```\n\n```go\ntype Complain struct {\n\tId             string\n\tComplainTo     string\n\tComplaineeId   string\n\tComplaineeName string\n\tComplain       string\n\tTime           string\n\tDoctype        string\n}\n```\n\n```go\ntype CompletedTransaction struct {\n\tObjectType string    `json:\"docType\"`\n\tRefID      string    `json:\"refID\"`\n\tSender     string    `json:\"sender\"`\n\tReceiver   string    `json:\"receiver\"`\n\tPriority   int       `json:\"priority\"`\n\tAmount     float64   `json:\"amount\"`\n\tCurrency   string    `json:\"currency\"`\n\tStatus     string    `json:\"status\"`\n\tCreateTime time.Time `json:\"createTime\"`\n\tUpdateTime time.Time `json:\"updateTime\"`\n}\n```\n\n```go\ntype ComplexAsset struct {\n\tBasicAsset\n\tDescription Description `json:\"description\"`\n}\n```\nComplexAsset is a basic asset with more detail\n\n```go\ntype ComplexContract struct {\n\tcontractapi.Contract\n}\n```\nComplexContract contract for handling BasicAssets\n\n```go\nfunc (cc *ComplexContract) GetAsset(ctx CustomTransactionContextInterface, id string) (*BasicAsset, error)\n```\nGetAsset returns the basic asset with id given from the world state\n\n```go\nfunc (cc *ComplexContract) GetEvaluateTransactions() []string\n```\nGetEvaluateTransactions returns functions of ComplexContract not to be tagged as submit\n\n```go\nfunc (s *ComplexContract) NewAsset(ctx CustomTransactionContextInterface, id string, owner Owner, value int) error\n```\nNewAsset adds a new basic asset to the world state using id as key\n\n```go\nfunc (cc *ComplexContract) UpdateOwner(ctx CustomTransactionContextInterface, id string, newOwner Owner) error\n```\nUpdateOwner changes the ownership of a basic asset and mark it as used\n\n```go\nfunc (cc *ComplexContract) UpdateValue(ctx CustomTransactionContextInterface, id string, valueAdd int) error\n```\nUpdateValue changes the value of a basic asset to add the value passed\n\n```go\ntype CompositeFile struct {\n\tFilename      string   `json:\"filename\"`\n\tIncludedFiles []string `json:\"includedfiles\"`\n}\n```\nmetadata to query for the output file\n\n```go\ntype Container struct {\n\tContainerSeq string `json:\"containerSeq\"`\n\tContainerNo  string `json:\"containerNo\"`\n\tSealNo       string `json:\"sealNo\"`\n\tSizeType     string `json:\"sizeType\"`\n\tGrossWeight  string `json:\"grossWeight\"`\n\tOwnership    string `json:\"ownership\"`\n}\n```\n\n```go\ntype Context contractapi.TransactionContextInterface\n```\nalias name for TransactionContextInterface\n\n```go\nfunc ContextWithStateCache(ctx Context) Context\n```\n\n```go\ntype ContextHandlerFunc func(Context) peer.Response\n```\nContextHandlerFunc use stub context as input parameter\n\n```go\ntype ContextInterface interface {\n\tcontractapi.TransactionContextInterface\n\tcontractapi.SettableTransactionContextInterface\n\tSetConfFunc(func() Configuration)\n\tGetConfiguration() Configuration\n\tGetRegistry() *Registry\n\tGet(key string) interface{}\n\tSet(key string, value interface{})\n\tStub() shim.ChaincodeStubInterface\n\tTime() (time.Time, error)\n\tParams() map[string]interface{}\n\tParam(name string) (interface{}, error)\n\tParamString(name string) (string, error)\n\tParamBytes(name string) ([]byte, error)\n\tParamInt(name string) (int, error)\n\tParamBool(name string) (bool, error)\n\tLogger() Logger\n}\n```\nContextInterface is extension of contractapi.TransactionContextInterface\n\n```go\ntype ContextMiddlewareFunc func(nextOrPrev ContextHandlerFunc, pos ...int) ContextHandlerFunc\n```\nContextMiddlewareFunc middleware for ContextHandlerFun\n\n```go\ntype Contract struct {\n\tcontractapi.Contract\n}\n```\nContract chaincode that defines the business logic for managing commercial paper\n\n```go\nfunc (c *Contract) AddLinkedProcess(ctx TransactionContextInterface, key string, preKey string) error\n```\n\\--------Link an existing process to its previous ones, WILL APPEND if preKey field already exists\n\n```go\nfunc (c *Contract) ApproveRequest(ctx TransactionContextInterface, medName string, medNumber string, user string, tpmkey string) (*MedicalSupply, error)\n```\nApproveRequest - Function for handling approving the medicine by changing its state to SEND. \\[Regulators]\n\n```go\nfunc (c *Contract) Buy(ctx TransactionContextInterface, issuer string, paperNumber string, currentOwner string, newOwner string, price int, purchaseDateTime string) (*CommercialPaper, error)\n```\nBuy updates a commercial paper to be in trading status and sets the new owner\n\n```go\nfunc (c *Contract) CancelRequest(ctx TransactionContextInterface, medName string, medNumber string, user string, tpmkey string) (*MedicalSupply, error)\n```\nCancelRequest - Function for handling cancelled requested medicine. \\[Customers]\n\n```go\nfunc (c *Contract) ChangeHolder(ctx TransactionContextInterface, medName string, medNumber string, customer string, user string, tpmkey string) (*MedicalSupply, error)\n```\nChangeHolder - Function for changing the holder of a medicine. \\[Regulators]\n\n```go\nfunc (c *Contract) ChangeStatus(ctx TransactionContextInterface, medName string, medNumber string, status string, user string, tpmkey string) (*MedicalSupply, error)\n```\nChangeStatus - Function for changing the status of a medicine. \\[Regulators]\n\n```go\nfunc (c *Contract) CheckAvailableMedicine(ctx TransactionContextInterface) ([]*MedicalSupply, error)\n```\nCheckAvailableMedicine - Function for getting an overview of all available medicine. \\[Customers]\n\n```go\nfunc (c *Contract) CheckHistory(ctx TransactionContextInterface, user string, tpmkey string) ([]*MedicalSupply, error)\n```\nCheckHistory - Function for getting an overview of all Medicine. \\[Regulators]\n\n```go\nfunc (c *Contract) CheckPaymentDetails(PaymentDetails PaymentTracker) bool\n```\n\n```go\nfunc (c *Contract) CheckRequestedMedicine(ctx TransactionContextInterface, user string, tpmkey string) ([]*MedicalSupply, error)\n```\nCheckRequestedMedicine - Function for getting an overview of all requested medicine. \\[Regulators]\n\n```go\nfunc (c *Contract) CheckUserHistory(ctx TransactionContextInterface, user string, tpmkey string) ([]*MedicalSupply, error)\n```\nCheckUserHistory - Function for getting an overview of all medicine an user has ordered. \\[Customers]\n\n```go\nfunc (c *Contract) Claims(stub shim.ChaincodeStubInterface) ([]Claim, error)\n```\n\n```go\nfunc (c *Contract) CompleteProcess(ctx TransactionContextInterface, key string, completeTime int64, completePosition string) error\n```\n\\--------Complete a new process\n\n```go\nfunc (c *Contract) Delete(ctx TransactionContextInterface, medName string, medNumber string, user string, tpmkey string) error\n```\nDelete - Function for handling medicine removal. \\[Regulators]\n\n```go\nfunc (contract *Contract) DesiginateUse(ctx contractapi.TransactionContextInterface, ownner string, landNubmer string) (*LandWithDesignatedUse, error)\n```\nDesiginateUse returns the land with it's planned use. this function can only be called by the pa(planing agent)\n\n```go\nfunc (c *Contract) DigProcess(ctx TransactionContextInterface, key string, depth int) ([]*Process, error)\n```\n\\---------Get the sourcing chain of on one branch within given depth (actually position 0 of preKey array\n\n```go\nfunc (c *Contract) GetAfterTransaction() interface{}\n```\nGetAfterTransaction returns the current set afterTransaction, which is a function to be executed after each transaction. The returned function takes two parameters: the transaction context and the result of the transaction. It performs post-transaction operations such as payment processing or data persistence. If the contract is a payable contract, the payment operation is implemented based on the transaction type.\n\n```go\nfunc (contract *Contract) GetAllLand(ctx contractapi.TransactionContextInterface) ([]*Land, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (c *Contract) GetBeforeTransaction() interface{}\n```\nGetBeforeTransaction returns the current set beforeTransaction, may be nil\n\n```go\nfunc (c *Contract) GetDisplayName(ctx TransactionContextInterface, org string) (string, error)\n```\n\\----------Get org display name\n\n```go\nfunc (c *Contract) GetInfo() metadata.InfoMetadata\n```\nGetInfo returns the information about the contract that can be used in metadata. It retrieves the InfoMetadata object associated with the contract.\n\nReturns:\n\n  - metadata.InfoMetadata: The metadata containing information about the contract.\n\n```go\nfunc (c *Contract) GetName() string\n```\n\n```go\nfunc (c *Contract) GetSectionTickets(ctx common.ITickenTxContext, eventID, section string) ([]*Ticket, error)\n```\nGetSectionTickets returns all the tickets of the section \"section\" from the event with ID \"eventID\".\n\nParams \\* - ticketID -\u003e uuid format \\* - section  -\u003e string (must be equal to the section name of the event)\n\nThe return value can be: \\* - error in case of the event is not found or the section\n\n  - is not present in the event\n\n```go\nfunc (c *Contract) GetTicket(ctx common.ITickenTxContext, ticketID string) (*Ticket, error)\n```\nGetTicket returns the ticket information of the event with id \"ticketID\".\n\nParams \\* - ticketID -\u003e uuid format\n\nThe return value can be: \\* - error in case of the ticket is not found\n\n```go\nfunc (c *Contract) GetTransactionContextHandler() contractapi.SettableTransactionContextInterface\n```\nGetTransactionContextHandler returns the current transaction context handler set for the contract. If no transaction context handler has been set, a new TransactionContext will be returned.\n\nReturns:\n\n  - contractapi.SettableTransactionContextInterface: The transaction context handler for the contract.\n\n```go\nfunc (c *Contract) GetUnknownTransaction() interface{}\n```\nGetUnknownTransaction returns the current unknown transaction set for the contract. It retrieves the unknownTransaction interface{} object associated with the contract.\n\nReturns:\n\n  - interface{}: The unknown transaction set for the contract, which may be nil.\n\n```go\nfunc (c *Contract) InitLedger(ctx TransactionContextInterface, user string, tpmkey string) error\n```\nInitLedger - Adds a base set of medicine (MedicalSupply) to the ledger. \\[Regulators]\n\n```go\nfunc (c *Contract) Instantiae()\n```\nInstantiae does nothing\n\n```go\nfunc (c *Contract) Instantiate()\n```\nInstantiate does nothing\n\n```go\nfunc (c *Contract) Issue(ctx common.ITickenTxContext, ticketID, eventID, section, ownerID, tokenID string) (*Ticket, error)\n```\nIssue a new ticket for the event with ID \"eventID\" in the section \"section\" to the owner with ID \"ownerID\". This method will call the \"cc-event\" chaincode to check if the event is \"on sale\" or the section has remaining tickets.\n\nParams \\* - ticketID -\u003e uuid format \\* - eventID  -\u003e uuid format \\* - section  -\u003e string (must be equal to the section name of the event) \\* - ownerID  -\u003e uuid format \\* - tokenID  -\u003e hexadecimal string representing the tokenID of the public blockchain (uint256)\n\nThe return value can be:\n\n  - \\- the ticket created serialized in JSON format\n  - \\- error in case some conditions to issue the ticket are not fulfilled such as the event is not on sale or the section has not more remaining tickets\n\n```go\nfunc (contract *Contract) LandExists(ctx contractapi.TransactionContextInterface, owner string, landNubmer string) (bool, error)\n```\nAssetExists returns true when asset with given (owner and landNumber) exists in world state\n\n```go\nfunc (c *Contract) LinkProcess(ctx TransactionContextInterface, key string, preKey string) error\n```\n\\--------Link an existing process to its previous ones, WILL OVERWRITE if preKey field already exists\n\n```go\nfunc (c *Contract) PrevProcess(ctx TransactionContextInterface, key string) ([]*Process, error)\n```\n\\---------Get the previous processes within depth of 1\n\n```go\nfunc (c *Contract) PutOnSell(ctx TransactionContextInterface, land Land) (*Land, error)\n```\nSell gets the land ready for market. It sets the state of land in trading, which means other people can make offers to buy land. TODO: BETTER NAMING HERE.\n\n```go\nfunc (c *Contract) QueryProcess(ctx TransactionContextInterface, key string) (*Process, error)\n```\n\\-----------Query a process, the org field will be replaced with org's display name\n\n```go\nfunc (contract *Contract) ReadLand(ctx TransactionContextInterface, owner string, landNumber string) (*Land, error)\n```\nReadAsset returns the asset stored in the world state given the owner and landNumber.\n\n```go\nfunc (c *Contract) Redeem(ctx TransactionContextInterface, issuer string, paperNumber string, redeemingOwner string, redeenDateTime string) (*CommercialPaper, error)\n```\nRedeem updates a commercial paper status to be redeemed\n\n```go\nfunc (c *Contract) Register(ctx TransactionContextInterface, owner string, landNumber string, registerDateTime string, faceValue int) (*Land, error)\n```\nRegister registers new land and stores it in the world state\n\n```go\nfunc (c *Contract) RejectRequest(ctx TransactionContextInterface, medName string, medNumber string, user string, tpmkey string) (*MedicalSupply, error)\n```\nRejectRequest - Function for handling disapproving the medicine by changing its state back to AVAILABLE. \\[Regulators]\n\n```go\nfunc (c *Contract) Request(ctx TransactionContextInterface, medName string, medNumber string, user string, tpmkey string) (*MedicalSupply, error)\n```\nRequest - Function for handling requested medicine. \\[Customers]\n\n```go\nfunc (c *Contract) SearchMedicineByName(ctx TransactionContextInterface, medName string) ([]*MedicalSupply, error)\n```\nSearchMedicineByName - Function for getting information on available medicine given the medicine name. \\[Customers]\n\n```go\nfunc (c *Contract) StartProcess(ctx TransactionContextInterface, processLocalId string, optionName string, startTime int64, startPosition string, preKey string, spec string) (string, error)\n```\n\\--------Create a new process\n\n```go\nfunc (c *Contract) TPMKeyGen(ctx TransactionContextInterface, user string) (string, error)\n```\nTPMKeyGen - Helper function for generating tpm key to be used for authentication. Only returns key at first creation as calling this function repeatedly would otherwise be exploitable.\n\n```go\nfunc (s *Contract) TransferLand(ctx TransactionContextInterface, currentOwner string, landNumber string, newOwner string) error\n```\nTransfer Asset(Land) to a new owner\n\n```go\nfunc (c *Contract) UpdateDisplayName(ctx TransactionContextInterface, displayName string) error\n```\n\\----------Update org display name into the ledger\n\n```go\nfunc (c *Contract) User(stub shim.ChaincodeStubInterface) (*User, error)\n```\n\n```go\ntype ContractChainCode struct {\n}\n```\nContractChainCode =\u003e 声明结构体\n\n```go\nfunc (ccc *ContractChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit =\u003e 链码初始化接口\n\n```go\nfunc (ccc *ContractChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke =\u003e 链码调用接口\n\n```go\ntype ContractChaincode struct {\n\tcontractapi.ContractChaincode\n}\n```\nContractChaincode a struct to meet the chaincode interface and provide routing of calls to contracts\n\n```go\nfunc NewChaincode(contracts ...ContractInterface) (*ContractChaincode, error)\n```\nNewChaincode creates a new chaincode using contracts passed. The function parses each of the passed functions and stores details about their make-up to be used by the chaincode. Public functions of the contracts are stored and are made callable in the chaincode. The function will error if contracts are invalid e.g. public functions take in illegal types. A system contract is added to the chaincode which provides functionality for getting the metadata of the chaincode. The generated metadata is a JSON formatted MetadataContractChaincode containing each contract as a name and details of the public functions and types they take in/return. It also outlines version details for contracts and the chaincode. If these are blank strings this is set to latest. The names for parameters do not match those used in the functions, instead they are recorded as param0, param1, ..., paramN. If there exists a file contract-metadata/metadata.json then this will overwrite the generated metadata. The contents of this file must validate against the schema. The transaction serializer for the contract is set to be the JSONSerializer by default. This can be updated using by changing the TransactionSerializer property\n\n```go\nfunc (kc *ContractChaincode) Init(stub ChaincodeStubInterface) peer.Response\n```\nInit is called during Instantiate transaction after the chaincode container has been established for the first time, passes off details of the request to Invoke for handling the request if a function name is passed, otherwise returns shim.Success\n\n```go\nfunc (cc *ContractChaincode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (kc *ContractChaincode) Invoke(stub ChaincodeStubInterface) peer.Response\n```\nInvoke is called to update or query the ledger in a proposal transaction.\n\n```go\nfunc (kc *ContractChaincode) Start() error\n```\nStart starts the chaincode in the fabric network\n\n```go\ntype ContractMeta struct {\n\tEventFilter string `json:\"event_filter\"`\n\tUsername    string `json:\"username\"`\n\tCCID        string `json:\"ccid\"`\n\tChannelID   string `json:\"channel_id\"`\n\tORG         string `json:\"org\"`\n}\n```\n\n```go\ntype ContractType struct {\n\tShopType        string  `json:\"shop_type\"`\n\tFormulaPerDay   string  `json:\"formula_per_day\"`\n\tMaxSumInsured   float32 `json:\"max_sum_insured\"`\n\tTheftInsured    bool    `json:\"theft_insured\"`\n\tDescription     string  `json:\"description\"`\n\tConditions      string  `json:\"conditions\"`\n\tActive          bool    `json:\"active\"`\n\tMinDurationDays int32   `json:\"min_duration_days\"`\n\tMaxDurationDays int32   `json:\"max_duration_days\"`\n}\n```\nKey consists of prefix + UUID of the contract type\n\n```go\ntype Contract_among_company struct {\n\tContractName       string `json:\"contractname\"`\n\tContractContent    string `json:\"contractcontent\"`\n\tCreaterCompanyName string `json:\"creatercompanyname\"`\n\tCreaterCompanySign string `json:\"creatercompanysign\"`\n\tCreateTime         string `json:\"creatertime\"`\n}\n```\n\n```go\ntype Contract_in_company struct {\n\tContractName    string `json:\"contractname\"`\n\tContractContent string `json:\"contractcontent\"`\n\tCreaterName     string `json:\"creatername\"`\n\tCreaterSign     string `json:\"creatersign\"`\n\tCreateTime      string `json:\"creatertime\"`\n}\n```\n\n```go\ntype ContractedAsset struct {\n\tType string `json:\"type\"`\n\tId   string `json:\"id\"`\n}\n```\nObject used in the map, contractId --\u003e contracted-asset\n\n```go\ntype ContractedFungibleAsset struct {\n\tType     string `json:\"type\"`\n\tNumUnits uint64 `json:\"id\"`\n}\n```\nObject used in the map, contractId --\u003e contracted-fungible-asset\n\n```go\ntype Contribution struct {\n\tContributor     string  `json:\"donatorAddress\"`\n\tContributionQty float64 `json:\"contributionQty\"`\n}\n```\n\n```go\ntype Controller struct{}\n```\n\n```go\nfunc NewContoller() *Controller\n```\n\n```go\nfunc (cc *Controller) Allowance(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nAllowance is query fnc params - owner's address, spender's address return - the remaining amount of token to invoke (transferFrom)\n\n```go\nfunc (cc *Controller) ApprovalList(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nApprovalList is query fnc params - owner's addresss return - approvalList by owner\n\n```go\nfunc (cc *Controller) Approve(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nApprove is invoke fnc that sets amount as the allowance of spender over the owner tokens params - owner's address, spender's address, amount of token\n\n```go\nfunc (cc *Controller) BalanceOf(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nBalanceOf is query function params is address Returns the amount of tokens owned by address\n\n```go\nfunc (cc *Controller) Burn(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\n\n```go\nfunc (cc *Controller) DecreaseAllowance(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nDecreaseAllowance is invoke fnc that decreases spender's allowance by owner params - owner's address, spender's addresss, amount of token\n\n```go\nfunc (cc *Controller) IncreaseAllowance(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nIncreaseAllowance is invoke fnc that increases spender's allowance by owner params - owner's address, spender's addresss, amount of token\n\n```go\nfunc (cc *Controller) Init(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\n\n```go\nfunc (cc *Controller) Mint(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nmint is invoke fnc that creates amount tokens and assign them to address, increasing the total supply param - token name, recipient address, amount token\n\n```go\nfunc (cc *Controller) TotalSupply(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nTotalSupply is query function params is tokenName Returns the amount of token in existence\n\n```go\nfunc (cc *Controller) Transfer(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nTransfer is invoke fnc that moves amount token from the caller's address to recipient params - caller's address, recipient's address, amount of token\n\n```go\nfunc (cc *Controller) TransferFrom(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nTransferFrom is invoke fnc that moves amount of token from sender to recipient using allowance of sender params - owner's address, spender's address, recipient's address, amount of token\n\n```go\nfunc (cc *Controller) TransferOtherToken(stub shim.ChaincodeStubInterface, params []string) sc.Response\n```\nTransferOtherToken is invoke fnc that moves amount other chaincode tokens from the caller's addresss to recipient params - chaincode name, caller's addresss, recipient's address, amount\n\n```go\ntype CouchDBMockStateRangeQueryIterator struct {\n\tQueryResults []queryresult.KV\n\tCurrentIndex int\n\tClosed       bool\n}\n```\n\n```go\nfunc NewCouchDBMockStateRangeQueryIterator(queryresults []queryresult.KV) *CouchDBMockStateRangeQueryIterator\n```\n\n```go\nfunc (iter *CouchDBMockStateRangeQueryIterator) Close() error\n```\nClose closes the range query iterator. This should be called when done reading from the iterator to free up resources.\n\n```go\nfunc (iter *CouchDBMockStateRangeQueryIterator) HasNext() bool\n```\nHasNext returns true if the range query iterator contains additional keys and values.\n\n```go\nfunc (iter *CouchDBMockStateRangeQueryIterator) Next() (*queryresult.KV, error)\n```\nNext returns the next key and value in the range query iterator.\n\n```go\ntype CouchDBMockStub struct {\n\t*shimtest.MockStub\n\tObjectType string\n}\n```\n\n```go\nfunc NewCouchDBMockStub(name string, cc shim.Chaincode) *CouchDBMockStub\n```\n\n```go\nfunc (stub *CouchDBMockStub) GetQueryResult(query string) (shim.StateQueryIteratorInterface, error)\n```\n\n```go\ntype CouchDBQuery struct {\n\tSelector map[string]string `json:\"selector\"`\n}\n```\n\n```go\ntype CounterAsset struct {\n\tID         string `json:\"ID\"`\n\tCounterVal int    `json:\"CounterVal\"`\n}\n```\n\n```go\ntype CounterNO struct {\n\tCounter int `json:\"counter\"`\n}\n```\n\n```go\ntype CowReport struct {\n\tCowID      string `json:\"cow_id\"`\n\tReportData string `json:\"report_data\"`\n}\n```\n\n```go\ntype CreateAssetResponse struct {\n\tContractId int64  `json:\"contractId\"`\n\tTxId       string `json:\"txId\"`\n}\n```\n\n```go\ntype CreateShows struct {\n\tTheatreNo int    `json:\"theatreNo\"`\n\tShows     []Show `json:\"shows\"`\n}\n```\nCreateShows model\n\n```go\ntype CreateTokenType struct {\n\tName        string `json:\"name\"`\n\tTickerToken string `json:\"tickerToken\"`\n\tMaxSupply   string `json:\"maxSupply\"`\n}\n```\n\n```go\nfunc (c CreateTokenType) IsValid() error\n```\n\n```go\nfunc (c CreateTokenType) ToEntity(ctx contractapi.TransactionContextInterface) *entity.Token\n```\n\n```go\ntype CreateWallet struct {\n\tTokenId string          `json:\"tokenId\"`\n\tStatus  glossary.Status `json:\"status\"`\n}\n```\n\n```go\nfunc (c CreateWallet) IsValid() error\n```\n\n```go\nfunc (c CreateWallet) ToEntity(ctx contractapi.TransactionContextInterface) *entity.Wallet\n```\n\n```go\ntype CreatedBy struct {\n\tID string `json:\"id\"`\n\n\tUsername string `json:\"username\"`\n\n\tEmail string `json:\"email\"`\n\n\tIsActive bool `json:\"is_active\"`\n\n\tIsSuperuser bool `json:\"is_superuser\"`\n}\n```\n\n```go\ntype CreatorPolicy struct {\n\tCreators [][]byte\n}\n```\n\n```go\nfunc (c *CreatorPolicy) EvaluateIdentities(identities []msp.Identity) error\n```\nEvaluateIdentities takes an array of identities and evaluates whether they satisfy the policy\n\n```go\nfunc (c *CreatorPolicy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error\n```\nEvaluateSignedData takes a set of SignedData and evaluates whether this set of signatures satisfies the policy\n\n```go\ntype CreatorTransformer func(...interface{}) (mspID string, certPEM []byte, err error)\n```\n\n```go\ntype CredentialContract struct {\n\tcontractapi.Contract\n}\n```\nCredentialContract represents the smart contract for managing user credentials\n\n```go\nfunc (cc *CredentialContract) DeleteUser(ctx contractapi.TransactionContextInterface, userID string) error\n```\nDeleteUser removes a user from the system (only accessible by admin)\n\n```go\nfunc (cc *CredentialContract) Init(ctx contractapi.TransactionContextInterface) error\n```\nInit initializes the chaincode\n\n```go\nfunc (cc *CredentialContract) Login(ctx contractapi.TransactionContextInterface, userID, password string) (*UserCredential, error)\n```\nLogin verifies user credentials\n\n```go\nfunc (cc *CredentialContract) SignUp(ctx contractapi.TransactionContextInterface, userID, username, password, email, role string) error\n```\nSignUp registers a new user\n\n```go\nfunc (cc *CredentialContract) UpdateUserDetails(ctx contractapi.TransactionContextInterface, userID, newUsername, newPassword, newEmail string) error\n```\nUpdateUserDetails updates user details (only accessible by admin)\n\n```go\ntype CreditRecord struct {\n\tRecordId   string `json:\"record_id,omitempty\"  bson:\"record_id\"  form:\"record_id\"  binding:\"record_id\"`\n\tEmail      string `json:\"email,omitempty\"  bson:\"email\"  form:\"email\"  binding:\"email\"`\n\tUserUid    string `json:\"user_uid,omitempty\"  bson:\"user_uid\"  form:\"user_uid\"  binding:\"user_uid\"`\n\tNik        string `json:\"nik,omitempty\"  bson:\"nik\"  form:\"nik\"  binding:\"nik\"`\n\tCreditType string `json:\"credit_type,omitempty\"  bson:\"credit_type\"  form:\"credit_type\"  binding:\"credit_type\"`\n\tBankName   string `json:\"bank_name,omitempty\"  bson:\"bank_name\"  form:\"bank_name\"  binding:\"bank_name\"`\n\tAmount     string `json:\"amount,omitempty\"  bson:\"amount\"  form:\"amount\"  binding:\"amount\"`\n\tStatus     string `json:\"status,omitempty\"  bson:\"status\"  form:\"status\"  binding:\"status\"`\n}\n```\n\n```go\ntype Criterion struct {\n\tDesc    string `json:\"desc\"`\n\tDocName string `json:\"docName\"`\n\tDocHash string `json:\"docHash\"`\n}\n```\n\n```go\ntype Crops struct {\n\t//作物ID\n\tCropsId string `json:\"crops_id\"`\n\t//作物名称\n\tCropsName string `json:\"crops_name\"`\n\t//所在地\n\tAddress string `json:\"address\"`\n\t//生长开始日期\n\tRegisterTime string `json:\"register_time\"`\n\t//年度\n\tYear string `json:\"year\"`\n\t//农户名字\n\tFarmerName string `json:\"farmer_name\"`\n\t//农户ID\n\tFarmerID string `json:\"farmer_id\"`\n\t//联系电话\n\tFarmerTel string `json:\"farmer_tel\"`\n\t//肥料名称\n\tFertilizerName string `json:\"fertilizer_name\"`\n\t//种植方式\n\tPlatMode string `json:\"plant_mode\"`\n\t//是否套袋种植\n\tBaggingStatus string `json:\"bagging_status\"`\n\t//育苗周期\n\tGrowSeedlingsCycle string `json:\"grow_seedlings_cycle\"`\n\t//灌溉周期\n\tIrrigationCycle string `json:\"irrigation_cycle\"`\n\t//施肥周期\n\tApplyFertilizerCycle string `json:\"apply_fertilizer_cycle\"`\n\t//除草周期\n\tWeedCycle string `json:\"weed_cycle\"`\n\t//备注\n\tRemarks string `json:\"remarks\"`\n}\n```\nCrops 作物信息\n\n```go\ntype CropsGrowInfo struct {\n\t//生长情况唯一ID\n\tCropsGrowId string `json:\"crops_grow_id\"`\n\t//作物ID\n\tCropsBakId string `json:\"crops_bak_id\"`\n\t//记录时间\n\tRecordTime string `json:\"record_time\"`\n\t//作物生长图片URL\n\tCropsGrowPhotoUrl string `json:\"crops_grow_photo_url\"`\n\t//温度\n\tTemperature string `json:\"temperature\"`\n\t//生长情况\n\tGrowStatus string `json:\"grow_status\"`\n\t//水分\n\tWaterContent string `json:\"water_content\"`\n\t//光照情况\n\tIlluminationStatus string `json:\"illumination_status\"`\n\t//备注\n\tRemarks string `json:\"remarks\"`\n}\n```\nCropsGrowInfo 作物生长信息\n\n```go\ntype CrossChainManager struct{}\n```\n\n```go\nfunc (manager *CrossChainManager) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (manager *CrossChainManager) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype CsvLine struct {\n\tColumn1 string\n\tColumn2 string\n}\n```\nstructure for individual lines of CSV file\n\n```go\ntype Ctx struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCtx() *Ctx\n```\n\n```go\nfunc (c *Ctx) CreateCollection(collection string, readers []string, writers []string)\n```\n\n```go\nfunc (c *Ctx) GetClientIdentity() cid.ClientIdentity\n```\n\n```go\nfunc (c *Ctx) GetStub() shim.ChaincodeStubInterface\n```\n\n```go\nfunc (c *Ctx) SetClientIdentity(userFun func() (*ClientIdentity, error)) error\n```\n\n```go\nfunc (c *Ctx) SetTransient(key string, value interface{}) error\n```\n\n```go\ntype CurrencyContract struct {\n\tcontractapi.Contract\n}\n```\nCurrencyContract defines the Smart Contract structure.\n\n```go\nfunc (c *CurrencyContract) CreatePlayer(ctx contractapi.TransactionContextInterface, id string) error\n```\nCreatePlayer adds a new player to the ledger, and initialize it\n\n```go\nfunc (c *CurrencyContract) ExchangeInGameCurrency(ctx contractapi.TransactionContextInterface, userID, transactionID, exchangeRateStr string) error\n```\nExchangeInGameCurrency allows users to exchange their USD to in-game currency.\n\n```go\nfunc (c *CurrencyContract) GetAllPlayers(ctx contractapi.TransactionContextInterface) ([]*types.Player, error)\n```\n\n```go\nfunc (c *CurrencyContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of players to the ledger\n\n```go\nfunc (c *CurrencyContract) PlayerExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nPlayerExists returns true if a player with the given ID exists in the ledger\n\n```go\nfunc (c *CurrencyContract) RecordBankTransaction(ctx contractapi.TransactionContextInterface, userID, amountUSDStr, transactionID string) error\n```\nRecordBankTransaction records a new bank transaction to the ledger.\n\n```go\ntype CustomTransactionContext struct {\n\t// implement the contractapi.SettableTransactionContextInterface\n\tcontractapi.TransactionContext\n\t// contains filtered or unexported fields\n}\n```\nCustomTransactionContext adds methods of storing and retrieving additional data for use with before and after transaction hooks\n\n```go\nfunc (ctx *CustomTransactionContext) GetCallData() []byte\n```\nGetCallData gets the call data property\n\n```go\nfunc (ctc *CustomTransactionContext) GetData() []byte\n```\nGetData : return the date stored in ctc\n\n```go\nfunc (ctx *CustomTransactionContext) SetCallData(bytes []byte)\n```\nSetCallData sets the call data property\n\n```go\nfunc (ctc *CustomTransactionContext) SetData(data []byte)\n```\nSetData : sets the data to the ctc\n\n```go\ntype CustomTransactionContextInterface interface {\n\tcontractapi.TransactionContextInterface\n\tGetData() []byte\n\tSetData([]byte)\n}\n```\nCustomTransactionContextInterface interface to define interaction with custom transaction context\n\n```go\ntype Customer struct {\n\tId              string   `json:\"id\"`              // Id号，全局唯一\n\tName            string   `json:\"name\"`            //名字\n\tPhone           string   `json:\"phone\"`           // 消费者联系方式\n\tDiscountList    []string `json:\"discountList\"`    // 优惠卷id表\n\tCommodityIdList []string `json:\"commodityIdList\"` //拥有商品id 表\n\tCommodityCount  int64    `json:\"commodityCount\"`  // 已购买商品数量统计\n\tBalance         int64    `json:\"balance\"`         // 余额\n\tCurrency        string   `json:\"currency\"`        //币种\n\tState           bool     `json:\"state\"`           // 状态\n\tLastUpdateTime  string   `json:\"lastUpdateTime\"`  // 最近更新时间\n}\n```\nt\\_customer\\_account\n\n```go\ntype CustomerData struct {\n\tName         string         `json:\"name\"`\n\tDateOfBirth  string         `json:\"dateOfBirth\"`\n\tAddress      string         `json:\"address\"`\n\tIdNumber     int            `json:\"idNumber\"`\n\tPhoneNumber  string         `json:\"phoneNumber\"`\n\tRegisteredBy OrgCredentials `json:\"registeredBy\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Cv struct {\n\tDocID string `json:\"DocID\"`\n}\n```\nCv describes a CV\n\n```go\ntype DPKIAsset struct {\n\tID        string `json:\"id\"`\n\tUsername  string `json:\"username\"`\n\tPublicKey string `json:\"public_key\"`\n\tChallenge string `json:\"challenge\"`\n\tIssuedOn  string `json:\"issued_on\"`\n\tRevokedOn string `json:\"revoked_on\"`\n\tRevoked   bool   `json:\"revoked\"`\n}\n```\nAsset describes basic details of what makes up a simple asset\n\n```go\ntype DPKISmartContract struct {\n\tcontractapi.Contract\n}\n```\nSmartContract provides functions for managing an Asset\n\n```go\nfunc (s *DPKISmartContract) AuthorizeDPKIAsset(ctx contractapi.TransactionContextInterface, id string) error\n```\nAuthorizeDPKIAsset set's the challenge attribute of the client's dPKI asset. This is later signed with the client's private key and id fed to the login function so that the client gets to be authenticated.\n\n```go\nfunc (s *DPKISmartContract) CreateDPKIAsset(ctx contractapi.TransactionContextInterface, id string, username string, publicKey string) error\n```\nCreateDPKIAsset issues the client's dPKI asset so that this is later used as a login token.\n\n```go\nfunc (s *DPKISmartContract) DPKIAssetExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nDPKIAssetExists returns true when asset with given ID exists in world state\n\n```go\nfunc (s *DPKISmartContract) GetAllDPKIAssets(ctx contractapi.TransactionContextInterface) ([]*DPKIAsset, error)\n```\nGetAllDPKIAssets returns all dpki assets found in world state.\n\n```go\nfunc (s *DPKISmartContract) InitDPKILedger(ctx contractapi.TransactionContextInterface) error\n```\nDPKIInitLedger adds a base set of dpki assets to the ledger.\n\n```go\nfunc (s *DPKISmartContract) LoginDPKIAsset(ctx contractapi.TransactionContextInterface, id string, challenge string, signature string) error\n```\nLoginDPKIAsset is the last step so as to validate that the client is registered to the system, by succesfully logging in.\n\n```go\nfunc (s *DPKISmartContract) ReadDPKIAsset(ctx contractapi.TransactionContextInterface, id string) (*DPKIAsset, error)\n```\nReadDPKIAsset returns the dPKI asset stored in the world state with given id.\n\n```go\nfunc (s *DPKISmartContract) UpdateDPKIAsset(ctx contractapi.TransactionContextInterface, id string, challenge string, revoked bool) error\n```\nUpdateDPKIAsset updates an existing asset in the world state with provided parameters.\n\n```go\ntype DRLDocs struct {\n\tId                     string    `json:\"Id\"`\n\tCreatedOn              time.Time `json:\"CreatedOn\"`\n\tCreatedBy              string    `json:\"CreatedBy\"`\n\tIsDelete               bool      `json:\"IsDelete\"`\n\tDPRNo                  string    `json:\"DPRNo\"`\n\tActiveCCDR             string    `json:\"ActiveCCDR\"`\n\tPassiveCCDR            string    `json:\"PassiveCCDR\"`\n\tTaxInvoice             string    `json:\"TaxInvoice\"`\n\tLRcopy                 string    `json:\"LRcopy\"`\n\tSealCodeBeforeDispatch string    `json:\"SealCodeBeforeDispatch\"`\n\tSealCodeAfterDelivery  string    `json:\"SealCodeAfterDelivery\"`\n\tSignedLRcopy           string    `json:\"SignedLRcopy\"`\n\tNotes                  string    `json:\"Notes\"`\n}\n```\n\n```go\ntype DRLDocsChaincode struct {\n}\n```\n\n```go\nfunc (cc *DRLDocsChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (cc *DRLDocsChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype DadosEstacao struct {\n\t// ID da estação é a chave e não entra no struct\n\tHoraLeitura       string `json:\"horaleitura\"`\n\tTotalUltimaHora   string `json:\"totalultimahora\"`\n\tSituacao          string `json:\"situacao\"`\n\tDirecaoVentoGraus string `json:\"direcaoventograus\"`\n\tVelocidadeVento   string `json:\"velocidadevento\"`\n\tTemperatura       string `json:\"temperatura\"`\n\tPressao           string `json:\"pressao\"`\n\tUmidade           string `json:\"umidade\"`\n\tTimestampEstacao  string `json:\"timestampestacao\"`\n\tTimestampCliente  string `json:\"timestampcliente\"`\n}\n```\n\n```go\ntype DamlOnFabric struct {\n}\n```\nDamlOnFabric implements storage of DAML data on Fabric\n\n```go\nfunc (t *DamlOnFabric) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit initializes the chaincode state\n\n```go\nfunc (t *DamlOnFabric) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke handles subfunctions\n\n```go\ntype Data struct {\n\tTimestamp string `json:\"timestamp\"`\n\tEquip1    string `json:\"equip1\"`\n\tEquip2    string `json:\"equip2\"`\n\tEquip3    string `json:\"equip3\"`\n\tEquip4    string `json:\"equip4\"`\n}\n```\n\n```go\ntype Data2 struct {\n\tMedia        string `json:\"media\"`\n\tMediana      string `json:\"media\"`\n\tDesvAmostral string `json:\"desvAmostral\"`\n\tModa         string `json:\"moda\"`\n\tVariancia    string `json:\"variancia\"`\n\tMad          string `json:\"mad\"`\n\n\tMedia2        string `json:\"media2\"`\n\tMediana2      string `json:\"media2\"`\n\tDesvAmostral2 string `json:\"desvAmostral2\"`\n\tModa2         string `json:\"moda2\"`\n\tVariancia2    string `json:\"variancia2\"`\n\tMad2          string `json:\"mad2\"`\n\n\tMedia3        string `json:\"media3\"`\n\tMediana3      string `json:\"media3\"`\n\tDesvAmostral3 string `json:\"desvAmostral3\"`\n\tModa3         string `json:\"moda3\"`\n\tVariancia3    string `json:\"variancia3\"`\n\tMad3          string `json:\"mad3\"`\n\n\tMedia4        string `json:\"media4\"`\n\tMediana4      string `json:\"media4\"`\n\tDesvAmostral4 string `json:\"desvAmostral4\"`\n\tModa4         string `json:\"moda4\"`\n\tVariancia4    string `json:\"variancia4\"`\n\tMad4          string `json:\"mad4\"`\n}\n```\n\n```go\ntype DataBatch struct {\n\tBatchID      string `json:\" batchID \"`\n\tBatchURL     string `json:\" batchURL \"`\n\tHash         string `json:\" hash \"`\n\tControllerID string `json:\" ControllerID \"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype DataChaincode struct {\n\tcontractapi.Contract\n}\n```\nDataChaincode ...\n\n```go\nfunc (d *DataChaincode) GetAllCommonDataInfo(ctx contractapi.TransactionContextInterface) ([]*DataType, error)\n```\n\n```go\nfunc (d *DataChaincode) GetCommonDataContents(ctx contractapi.TransactionContextInterface, uploader string, name string, version string, downloader string) (string, error)\n```\n\n```go\nfunc (d *DataChaincode) GetCommonDataCount(ctx contractapi.TransactionContextInterface, key string) (*DataCount, error)\n```\n\n```go\nfunc (d *DataChaincode) GetCommonDataInfo(ctx contractapi.TransactionContextInterface, uploader string, name string, version string) (*DataType, error)\n```\n\n```go\nfunc (d *DataChaincode) GetCommonDataInfoWithKey(ctx contractapi.TransactionContextInterface, dataKey string) (*DataType, error)\n```\n\n```go\nfunc (d *DataChaincode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger ...\n\n```go\nfunc (d *DataChaincode) PutCommonData(ctx contractapi.TransactionContextInterface, uploader string, name string, version string, description string, owner string, contents string, timestamp string) error\n```\nDataInsert ...\n\n```go\ntype DataCount struct {\n\tType  string `json:\"type\"`\n\tList  string `json:\"list\"`\n\tCount int    `json:\"count\"`\n}\n```\n\n```go\ntype DataHash struct {\n\tType string `json:\"Type\"`\n\tHash string `json:\"Hash\"`\n}\n```\n\n```go\ntype DataType struct {\n\tType        string `json:\"type\"`\n\tUploader    string `json:\"uploader\"`\n\tName        string `json:\"name\"`\n\tVersion     string `json:\"version\"`\n\tDescription string `json:\"description\"`\n\tDownloaded  int    `json:\"downloaded\"`\n\tOwner       string `json:\"owner\"`\n\tContents    string `json:\"contents\"`\n\tTimestamp   string `json:\"timestamp\"`\n}\n```\nDataType ...\n\n```go\ntype Dataset struct {\n\tDataset_ID    int\n\tDataset_Name  string\n\tTrain_Samples int\n\tTest_Samples  int\n\tVal_Split     float64\n}\n```\n\n```go\ntype DecapolisChaincode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *DecapolisChaincode) AddProcess(context contractapi.TransactionContextInterface, productId string, process string) (string, error)\n```\n\n```go\nfunc (t *DecapolisChaincode) AddProduct(context contractapi.TransactionContextInterface, product string) (string, error)\n```\n\n```go\nfunc (t *DecapolisChaincode) AddStep(context contractapi.TransactionContextInterface, productId string, processId string, step string) (string, error)\n```\n\n```go\nfunc (t *DecapolisChaincode) DeleteAllTransaction(context contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (t *DecapolisChaincode) DeleteTransaction(context contractapi.TransactionContextInterface, transactionID string) error\n```\n\n```go\nfunc (t *DecapolisChaincode) Init(context contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (t *DecapolisChaincode) Put(context contractapi.TransactionContextInterface, jsonTransaction string) error\n```\n\n```go\nfunc (t *DecapolisChaincode) Query(context contractapi.TransactionContextInterface, transactionID string) (string, error)\n```\n\n```go\nfunc (s *DecapolisChaincode) QueryAll(ctx contractapi.TransactionContextInterface) ([]*Product, error)\n```\n\n```go\ntype DecapolisContract struct {\n\t// contains filtered or unexported fields\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *DecapolisContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype Defect struct {\n\tDescription string\n\tRepairPrice float32\n}\n```\n\n```go\ntype DeferHandler func(error) (success bool)\n```\n\n```go\ntype Delete struct {\n\tHash    string `json:\"hash\"`\n\tCreator string `json:\"creator\"`\n}\n```\n\n```go\ntype DeliverClient struct {\n\tClient     pb.DeliverClient\n\tConnection pb.Deliver_DeliverClient\n\tAddress    string\n}\n```\nDeliverClient holds the client/connection related to a specific peer. The address is included for logging purposes\n\n```go\ntype DeliverGroup struct {\n\tClients     []*DeliverClient\n\tCertificate tls.Certificate\n\tChannelID   string\n\tTxID        string\n\tSigner      identity.SignerSerializer\n\n\tError error\n\t// contains filtered or unexported fields\n}\n```\nDeliverGroup holds all of the information needed to connect to a set of peers to wait for the interested txid to be committed to the ledgers of all peers. This functionality is currently implemented via the peer's DeliverFiltered service. An error from any of the peers/deliver clients will result in the invoke command returning an error. Only the first error that occurs will be set\n\n```go\nfunc NewDeliverGroup(\n\tdeliverClients []pb.DeliverClient,\n\tpeerAddresses []string,\n\tsigner identity.SignerSerializer,\n\tcertificate tls.Certificate,\n\tchannelID string,\n\ttxid string,\n) *DeliverGroup\n```\n\n```go\nfunc (dg *DeliverGroup) ClientConnect(ctx context.Context, dc *DeliverClient)\n```\nClientConnect sends a deliver seek info envelope using the provided deliver client, setting the deliverGroup's Error field upon any error\n\n```go\nfunc (dg *DeliverGroup) ClientWait(dc *DeliverClient)\n```\nClientWait waits for the specified deliver client to receive a block event with the requested txid\n\n```go\nfunc (dg *DeliverGroup) Connect(ctx context.Context) error\n```\nConnect waits for all deliver clients in the group to connect to the peer's deliver service, receive an error, or for the context to timeout. An error will be returned whenever even a single deliver client fails to connect to its peer\n\n```go\nfunc (dg *DeliverGroup) Wait(ctx context.Context) error\n```\nWait waits for all deliver client connections in the group to either receive a block with the txid, an error, or for the context to timeout\n\n```go\nfunc (dg *DeliverGroup) WaitForWG(readyCh chan struct{})\n```\nWaitForWG waits for the deliverGroup's wait group and closes the channel when ready\n\n```go\ntype DeliveryArrangement struct {\n\tObjectType string  `json:\"objectType\"`\n\tTradeID    string  `json:\"tradeID\"`\n\tAssetName  string  `json:\"assetName\"`\n\tQuantity   int     `json:\"quantity\"`\n\tStartPlace string  `json:\"startPlace\"`\n\tEndPlace   string  `json:\"endPlace\"`\n\tFee        float32 `json:\"fee\"`\n\tCreateTime string  `json:\"createTime\"`\n\tUpdateTime string  `json:\"updateTime\"`\n\tOwnerOrg   string  `json:\"ownerOrg\"`\n\tHandlerOrg string  `json:\"handler\"`\n\tStatus     int     `json:\"status\"` // 0: 未处理 1：已接单 2: 已完成 3: 确认已完成\n\tNote       string  `json:\"note\"`\n}\n```\n\n```go\ntype DeliveryDetail struct {\n\tObjectType string `json:\"objectType\"`\n\tTradeID    string `json:\"tradeID\"` // 生产商下单时生成的ID，用于表明一次流程\n\tAssetName  string `json:\"assetName\"`\n\tStartPlace string `json:\"startPlace\"`\n\tEndPlace   string `json:\"endPlace\"`\n\tContact    string `json:\"contact\"`\n\tCreateTime string `json:\"createTime\"`\n\tUpdateTime string `json:\"updateTime\"`\n\tStatus     int    `json:\"status\"` // 0: 未处理 1：开始运输 2: 运输已完成\n\tOwnerOrg   string `json:\"ownerOrg\"`\n\tNote       string `json:\"note\"`\n}\n```\n\n```go\ntype DeliveryOrder struct {\n\tObjectType string `json:\"objectType\"`\n\tTradeID    string `json:\"tradeID\"` // 生产商下单时生成的ID，用于表明一次流程\n\tAssetName  string `json:\"assetName\"`\n\tCreateTime string `json:\"createTime\"`\n\tUpdateTime string `json:\"updateTime\"`\n\tStatus     int    `json:\"status\"` // 0: 未处理 1：开始运输 2: 运输商已完成\n\tOwnerOrg   string `json:\"ownerOrg\"`\n\tHandlerOrg string `json:\"handlerOrg\"`\n\tNote       string `json:\"note\"`\n}\n```\n\n```go\ntype DeliveryOrderChaincode struct {\n}\n```\nDeliveryOrderChaincode implements the chaincode interface for managing delivery orders\n\n```go\nfunc (cc *DeliveryOrderChaincode) ReleaseDeliveryOrder(ctx contractapi.TransactionContextInterface, args []string) pb.Response\n```\nReleaseDeliveryOrder is a function to release a delivery order\n\n```go\nfunc (cc *DeliveryOrderChaincode) RequestDeliveryOrder(ctx contractapi.TransactionContextInterface, args []string) pb.Response\n```\nRequestDeliveryOrder is a function to request a delivery order\n\n```go\ntype DemoChainCode struct {\n}\n```\n\n```go\nfunc (this *DemoChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (this *DemoChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype DemoChaincode struct {\n}\n```\n\n```go\nfunc (t *DemoChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *DemoChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype Description struct {\n\tColour string   `json:\"colour\"`\n\tOwners []string `json:\"owners\"`\n}\n```\nDescription holds details about an asset\n\n```go\ntype Details struct {\n\tId        string `json:\"Id\"`\n\tKey       string `json:\"Key\"`\n\tUser      string `json:\"User\"`\n\tAmount    string `json:\"Value\"`\n\tMessage   string `json:\"Message\"`\n\tSignature string `json:\"Signature\"`\n}\n```\n\n```go\ntype DetailsTx struct {\n\tFrom   string `json:\"From\"`\n\tTo     string `json:\"To\"`\n\tAction string `json:\"Action\"`\n\tValue  string `json:\"Value\"`\n}\n```\nTx Details struct\n\n```go\ntype Device struct {\n\tDeviceID       string `json:\" deviceID \"`\n\tControllerID   string `json:\" controllerID \"`\n\tDeviceModelID  string `json:\" DeviceModelID \"`\n\tDeviceType     string `json:\" DeviceType \"`\n\tDeviceStatus   string `json:\" status \"`\n\tDTID           string `json:\" DTID \"`\n\tSellInvitation string `json:\" sell_invitation \"`\n}\n```\n\n```go\ntype DeviceModel struct {\n\tDeviceModelID string   `json:\"deviceModelID\"`\n\tDescription   string   `json:\"description\"`\n\tFeatures      []string `json:\"features\"`\n\tImages        []string `json:\"images\"`\n}\n```\n\n```go\ntype DeviceStore struct {\n\tcontractapi.Contract\n}\n```\nSmartContract provides authentication for IoT Tracker\n\n```go\nfunc (r *DeviceStore) AuthenticateDevice(ctx contractapi.TransactionContextInterface, deviceID string, password string) (string, error)\n```\nAuthenticateDevice authenticates a device\n\n```go\nfunc (r *DeviceStore) Init(ctx contractapi.TransactionContextInterface) error\n```\nInit initializes the device store\n\n```go\nfunc (r *DeviceStore) RegisterDevice(ctx contractapi.TransactionContextInterface, deviceID string, password string, role string) error\n```\nRegisterDevice registers a device (avoid overwriting existing device)\n\n```go\ntype DevicesContract struct {\n\tcontractapi.Contract\n}\n```\nDevicesContract implements devices-managing Smart Contract transaction handlers.\n\n```go\nfunc NewDevicesContact() *DevicesContract\n```\nNewDevicesContact creates new DevicesContract instance.\n\n```go\nfunc (c *DevicesContract) All(ctx contractapi.TransactionContextInterface) ([]*models.Device, error)\n```\nAll retrieves all models.Device records from blockchain ledger.\n\n```go\nfunc (c *DevicesContract) Command(ctx contractapi.TransactionContextInterface, payload string) error\n```\nCommand handles models.DeviceCommand execution requests for devices. It will also log execution status in as a models.DeviceCommandLogEntry in the blockchain ledger.\n\n```go\nfunc (c *DevicesContract) CommandsLog(ctx contractapi.TransactionContextInterface, deviceID string) ([]*models.DeviceCommandLogEntry, error)\n```\nCommandsLog retrieves all models.DeviceCommandLogEntry from the blockchain ledger.\n\n```go\nfunc (c *DevicesContract) Exists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nExists determines whether the models.Device exists in the blockchain ledger.\n\n```go\nfunc (c *DevicesContract) Register(ctx contractapi.TransactionContextInterface, payload string) (string, error)\n```\nRegister creates and registers new device in the blockchain ledger.\n\n```go\nfunc (c *DevicesContract) RemoveAll(ctx contractapi.TransactionContextInterface) error\n```\nRemoveAll removes all registered devices from the blockchain ledger. !! This method is for development use only and it must be removed when all dev phases will be completed.\n\n```go\nfunc (c *DevicesContract) Retrieve(ctx contractapi.TransactionContextInterface, id string) (*models.Device, error)\n```\nRetrieve retrieves single models.Device record from blockchain ledger  by a given \\`id\\`.\n\n```go\nfunc (c *DevicesContract) SubmitCommandResults(ctx contractapi.TransactionContextInterface, entryID string, payload string) error\n```\nSubmitCommandResults updates models.DeviceCommandLogEntry in the blockchain ledger.\n\n```go\nfunc (c *DevicesContract) Unbind(ctx contractapi.TransactionContextInterface, id string) error\n```\nUnbind removes models.Device from the blockchain ledger.\n\n```go\nfunc (c *DevicesContract) Update(\n\tctx contractapi.TransactionContextInterface,\n\tid string, payload string,\n) (*models.Device, error)\n```\nUpdate updates models.Device state in blockchain ledger with requested properties.\n\n```go\ntype DigestResult struct {\n\tKey    string `json:\"Key\"` // h id\n\tDigest string `json:\"digest\"`\n}\n```\n\n```go\ntype DirectTransactionMeta struct {\n\tStartTimestamp    int64  `json:\"start_timestamp\"`\n\tTransactionStatus uint64 `json:\"transaction_status\"`\n}\n```\n\n```go\ntype Disclosure struct {\n\tObjectType     string `json:\"docType\"`\n\tDisclosureHash string `json:\"disclosureHash\"`\n\tDate           string `json:\"date\"`\n\tDisclosure     string `json:\"disclosure\"`\n}\n```\n\n```go\ntype Discount struct {\n\tDiscountId string `json:\"discountId\"` // id,全局唯一\n\tName       string `json:\"name\"`       // 姓名\n\tAccountId  string `json:\"accountId\"`  // 所属者id\n\tBusinessId string `json:\"businessId\"` // 派发商户id\n\tBeginTime  string `json:\"beginTime\"`  // 开始时间\n\tEndTime    string `json:\"endTime\"`    // 结束时间\n\tValid      bool   `json:\"valid\"`      // 有效\n}\n```\nt\\_discount\n\n```go\ntype Diseases struct {\n\tSickleCellDisease int `json:\"sickleCellDisease\"`\n\tType2Diabetes     int `json:\"type2Diabetes\"`\n\tAchondroplasia    int `json:\"achondroplasia\"`\n}\n```\n\n```go\ntype DispositivoMedico struct {\n\tNome   string `json:\"nome\"`\n\tMedico string `json:\"medico\"`\n\tSala   string `json:\"sala\"`\n\tDoente string `json:\"doente\"`\n}\n```\n\n```go\ntype DistributionRecordChaincode struct {\n\tcontractapi.Contract\n}\n```\n\\* 派发记录链码\n\n```go\nfunc (t *DistributionRecordChaincode) Create(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\\*\n\n\t新增派发记录属性数据\n\n零售商发起下发请求（下发记录ID，下发使用共管账户卡号，个体ID，个体收款一般账户卡号，派发金额，派发费率） 减少共管账户卡号的票据余额，增加个体一般账户的票据余额，增加下发机构的一般账户的佣金票据余额，增加分销商机构的一般账户的佣金票据余额，金融机构的现金余额和票据余额不变。\n\n```go\nfunc (t *DistributionRecordChaincode) FindPrivateDataById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\ntype DistributionRecordPrivateData struct {\n\tID                   string  `json:\"id\"`                   //派发记录ID\n\tPlatformOrgID        string  `json:\"platformOrgID\"`        //平台机构ID PlatformOrg.ID\n\tFinancialOrgID       string  `json:\"financialOrgID\"`       //金融机构ID FinancialOrg.ID\n\tIndividualID         string  `json:\"individualID\"`         //个体ID Individual.ID\n\tRetailerOrgID        string  `json:\"retailerOrgID\"`        //零售商机构ID RetailerOrg.ID\n\tAgencyOrgID          string  `json:\"agencyOrgID\"`          //分销商机构ID AgencyOrg.ID\n\tIssueOrgID           string  `json:\"issueOrgID\"`           //下发机构ID IssueOrg.ID\n\tManagedAccountCardNo string  `json:\"managedAccountCardNo\"` //共管账户账号 FinancialOrgManagedAccountPrivateData.CardNo\n\tIssueCardNo          string  `json:\"issueCardNo\"`          //下发机构一般账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tIndividualCardNo     string  `json:\"individualCardNo\"`     //个体一般账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tAgencyCardNo         string  `json:\"agencyCardNo\"`         //分销商机构一般账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tManagedCardNo        string  `json:\"managedCardNo\"`        //金融机构公管账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tGeneralCardNo        string  `json:\"generalCardNo\"`        //金融机构公管账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tAmount               int     `json:\"amount\"`               //派发金额\n\tRate                 float64 `json:\"rate\"`                 //派发费率\n\tStatus               int     `json:\"status\"`               //派发状态(0:未下发/1:已下发)\n}\n```\n\\*\n\n\t派发记录属性\n\n```go\ntype DistributionRecordTransientInput struct {\n\tID                   string  `json:\"id\"`                   //派发记录ID\n\tIndividualID         string  `json:\"individualID\"`         //个体ID Individual.ID\n\tManagedAccountCardNo string  `json:\"managedAccountCardNo\"` //共管账户账号 FinancialOrgManagedAccountPrivateData.CardNo\n\tIndividualCardNo     string  `json:\"individualCardNo\"`     //个体一般账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tAmount               int     `json:\"amount\"`               //派发金额\n\tRate                 float64 `json:\"rate\"`                 //派发费率\n}\n```\n\\*\n\n\t派发记录属性\n\n```go\ntype DividendPayment struct {\n\t// Percentage of dividend count pays\n\tPercentage float32 `json:\"percentage\"`\n\t// PDate date of payment\n\tPDate time.Time `json:\"pDate\"`\n}\n```\nDividendPayment status of time plan of dividend pays\n\n```go\ntype DoNothing struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *DoNothing) Invoke(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype DoctorAvailability struct {\n\tDoctorID       string              `json:\"doctorID\"`\n\tAvailability   map[string][]string `json:\"availability\"`\n\tTimeSlotLength int                 `json:\"timeSlotLength\"`\n}\n```\n\n```go\ntype DoctorBill struct {\n\tcontractapi.Contract\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (sc *DoctorBill) CreateInvoice(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *DoctorBill) GetAmount(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\n\n```go\nfunc (sc *DoctorBill) GetDoctor(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *DoctorBill) GetInsurer(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *DoctorBill) GetPatient(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *DoctorBill) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *DoctorBill) PayInvoice(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype DoctorChaincode struct {\n\tcontractapi.Contract\n}\n```\nChaincode structure\n\n```go\nfunc (d *DoctorChaincode) AddDoctor(ctx contractapi.TransactionContextInterface, doctorID string, doctorName string, specialization string, address string, phoneNumber string) error\n```\nFunction to add doctor\n\n```go\nfunc (d *DoctorChaincode) DeleteDoctor(ctx contractapi.TransactionContextInterface, id string) error\n```\nFunction to delete existing doctor\n\n```go\nfunc (d *DoctorChaincode) DoctorExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (d *DoctorChaincode) GetAllCurrentDoctors(ctx contractapi.TransactionContextInterface) ([]*DoctorData, error)\n```\n\n```go\ntype DoctorData struct {\n\tDoctorID       string `json:\"doctorID\"`\n\tDoctorName     string `json:\"DoctorName\"`\n\tSpecialization string `json:\"Specialization\"`\n\tAddress        string `json:\"Address\"`\n\tPhoneNumber    string `json:\"PhoneNumber\"`\n}\n```\nDoctor data structure\n\n```go\ntype Document struct {\n\tLadingBillNumber string `json:\"ladingBillNumber\"`\n\tLadingBillDate   string `json:\"ladingBillDate\"`\n\tLadingBillType   string `json:\"ladingBillType\"`\n\tURLFile          string `json:\"urlFile\"`\n}\n```\n\n```go\ntype DocumentType struct {\n\tDocumentNo   string `json:\"documentNo\"`\n\tDocumentDate string `json:\"documentDate\"`\n\tURLFile      string `json:\"urlFile\"`\n}\n```\n\n```go\ntype Doente struct {\n\tSala string `json:\"sala\"`\n}\n```\n\n```go\ntype Donation struct {\n\tAppraisedValue int    `json:\"AppraisedValue\"`\n\tDonationType   string `json:\"DonationType\"`\n\tID             string `json:\"ID\"`\n\tDonor          string `json:\"Donor\"`\n\tSize           int    `json:\"Size\"`\n\tTimestamp      int    `jason:\"Timestamp\"`\n\tStatus         string `jason:\"Status\"`\n}\n```\nAsset describes basic details of what makes up a simple asset Insert struct field in alphabetic order =\u003e to achieve determinism across languages rder when marshal golang keeps the oto json but doesn't order automatically\n\n```go\ntype Downvote struct {\n\tHash    string `json:\"hash\"`\n\tCreator string `json:\"creator\"`\n}\n```\n\n```go\ntype DummyContract struct {\n\tcontractapi.Contract\n}\n```\nDummyContract contract for testing purposes\n\n```go\nfunc (s *DummyContract) GetEvaluateTransactions() []string\n```\nGetEvaluateTransactions returns functions of ProductContract not to be tagged as submit.\n\n```go\nfunc (s *DummyContract) ReadAttr(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *DummyContract) ReadCert(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *DummyContract) ReadIdentity(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\ntype DummyQueryExecutorShim struct {\n}\n```\nDummyQueryExecutorShim implements the ReadableState interface. It is used to ensure channel-less system chaincode calls don't panic and return and error when an invalid operation is attempted (i.e. an InstallChaincode invocation against a chaincode other than \\_lifecycle)\n\n```go\nfunc (*DummyQueryExecutorShim) GetState(key string) ([]byte, error)\n```\n\n```go\ntype ECAsset struct {\n\tID               string `json:\"ID\"`\n\tEndorsementCount int    `json:\"EndorsementCount\"`\n}\n```\n\n```go\ntype ECDSASignature struct {\n\tR, S *big.Int\n}\n```\nECDSASignature represents the two mathematical components of an ECDSA signature once decomposed.\n\n```go\ntype ERC1155 struct {\n\tcontractapi.Contract\n\n\tnonce.INonce\n}\n```\n\n```go\nfunc NewERC1155(nonce nonce.INonce) *ERC1155\n```\n\n```go\nfunc (erc1155 *ERC1155) BalanceOf(ctx context.ContextInterface, account string, id ID) (uint64, error)\n```\n\n```go\nfunc (erc1155 *ERC1155) BalanceOfBatch(ctx context.ContextInterface, accounts []string, ids []ID) ([]uint64, error)\n```\n\n```go\nfunc (erc1155 *ERC1155) Exists(ctx context.ContextInterface, id ID) (bool, error)\n```\n\n```go\nfunc (erc1155 *ERC1155) Initialize(ctx context.ContextInterface, name string, symbol string) error\n```\n\n```go\nfunc (erc1155 *ERC1155) IsApprovedFroAll(ctx context.ContextInterface, account string, operator string) (bool, error)\n```\n\n```go\nfunc (erc1155 *ERC1155) Mint(ctx context.ContextInterface, to string, id ID, amount uint64) error\n```\nMint by operator\n\n```go\nfunc (erc1155 *ERC1155) MintBatch(ctx context.ContextInterface, to string, ids []ID, amounts []uint64) error\n```\n\n```go\nfunc (erc1155 *ERC1155) SafeBatchTransferFrom(ctx context.ContextInterface, msg context.Message, from string, to string, ids []uint64, amounts []uint64) error\n```\n\n```go\nfunc (erc1155 *ERC1155) SafeTransferFrom(ctx context.ContextInterface, msg context.Message, from string, to string, id ID, amount uint64) error\n```\n\n```go\nfunc (erc1155 *ERC1155) SetApprovalForAll(ctx context.ContextInterface, msg context.Message, operator string, approved bool) error\n```\n\n```go\nfunc (erc1155 *ERC1155) SetURI(ctx context.ContextInterface, id ID, uri string) error\n```\n\n```go\nfunc (erc1155 *ERC1155) TotalSupply(ctx context.ContextInterface, id ID) (uint64, error)\n```\n\n```go\nfunc (erc1155 *ERC1155) URI(ctx context.ContextInterface, id ID) (string, error)\n```\n\n```go\ntype ERC20 struct {\n\tcontractapi.Contract\n\n\tnonce.INonce\n}\n```\nERC20 provides functions for transferring tokens between accounts\n\n```go\nfunc NewERC20(nonce nonce.INonce) *ERC20\n```\n\n```go\nfunc (erc20 *ERC20) Allowance(ctx context.ContextInterface, owner string, spender string) (uint64, error)\n```\nAllowance returns the amount still available for the spender to withdraw from the owner\n\n```go\nfunc (erc20 *ERC20) Approve(ctx context.ContextInterface, msg context.Message, spender string, amountCap uint64) error\n```\nApprove allows the spender to withdraw from the calling client's token account The spender can withdraw multiple times if necessary, up to the value amount This function triggers an Approval event\n\n```go\nfunc (erc20 *ERC20) BalanceOf(ctx context.ContextInterface, account string) (uint64, error)\n```\nBalanceOf returns the balance of the given account\n\n```go\nfunc (erc20 *ERC20) Burn(ctx context.ContextInterface, msg context.Message, amount uint64) error\n```\nBurn redeems tokens the minter's account balance This function triggers a Transfer event\n\n```go\nfunc (erc20 *ERC20) Decimal(ctx context.ContextInterface) (uint8, error)\n```\nDecimal returns the decimal setting of fungible tokens in this contract. For example: if the decimal settings is 2, then transferring 525 tokens will be displayed to users as transferring '5.25 tokens'\n\n```go\nfunc (sc *ERC20) GetName(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *ERC20) GetSymbol(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *ERC20) GetTotalSupply(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\n\n```go\nfunc (sc *ERC20) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (erc20 *ERC20) IsApproved(ctx context.ContextInterface, owner string, spender string) (bool, error)\n```\nIsApproved returns if the given owner account approves spender to withdraw from the owner\n\n```go\nfunc (erc20 *ERC20) Mint(ctx context.ContextInterface, msg context.Message, to string, amount uint64) error\n```\nMint creates new tokens and adds them to minter's account balance This function triggers a Transfer event\n\n```go\nfunc (erc20 *ERC20) Name(ctx context.ContextInterface) (string, error)\n```\nName returns a descriptive name for fungible tokens in this contract.\n\n```go\nfunc (erc20 *ERC20) Symbol(ctx context.ContextInterface) (string, error)\n```\nSymbol returns an abbreviated name for fungible tokens in this contract.\n\n```go\nfunc (erc20 *ERC20) TotalSupply(ctx context.ContextInterface) (uint64, error)\n```\nTotalSupply returns the total token supply\n\n```go\nfunc (erc20 *ERC20) Transfer(ctx context.ContextInterface, msg context.Message, to string, amount uint64) error\n```\nTransfer transfers tokens from client account to recipient account. This function triggers a Transfer event.\n\n```go\nfunc (erc20 *ERC20) TransferFrom(ctx context.ContextInterface, msg context.Message, from string, to string, amount uint64) error\n```\nTransferFrom transfers the value amount from the \"from\" address to the \"to\" address This function triggers a Transfer event\n\n```go\ntype ERC20Chaincode struct {\n\tController *controller.Controller\n}\n```\nChaincode is the definitaion of the chaincode structure\n\n```go\nfunc NewChaincode() *ERC20Chaincode\n```\nNewChaincode is construtor function for Chaincode\n\n```go\nfunc (cc *ERC20Chaincode) Init(stub shim.ChaincodeStubInterface) sc.Response\n```\nInit is called when the chaincode is instantiated by the blockchain network.\n\n```go\nfunc (cc *ERC20Chaincode) Invoke(stub shim.ChaincodeStubInterface) sc.Response\n```\nInvoke is called as a result of an application request to run the chaincode.\n\n```go\ntype ERC20Contract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (e *ERC20Contract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (e *ERC20Contract) Transfer(ctx contractapi.TransactionContextInterface, recipient string, amount uint) error\n```\n\n```go\ntype ERC20Token struct {\n\tSymbol      string `json:\"symbol\"`\n\tTotalSupply uint64 `json:\"totalSupply\"`\n\tDescription string `json:\"description\"`\n\tCreator     string `json:\"creator\"`\n}\n```\nERC20Token structure manages the state\n\n```go\ntype ERC20TokenChaincode struct {\n}\n```\nERC20TokenChaincode Represents our chaincode object\n\n```go\nfunc (token *ERC20TokenChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit Implements the Init method Receives 4 parameters =  \\[0] Symbol \\[1] TotalSupply   \\[2] Description  \\[3] Owner\n\n```go\nfunc (token *ERC20TokenChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\ntype EV struct {\n\tEVID        string  `json:\"EVID\"`\n\tCSOID       string  `json:\"CSOID\"`\n\tModel       string  `json:\"model\"`\n\tPowerFlow   float64 `json:\"power_flow\"`\n\tTotalMoney  float64 `json:\"total_money\"`\n\tRecentMoney float64 `json:\"recent_money\"`\n\tBatteryAge  int     `json:\"battery_age\"`\n\tTemperature float64 `json:\"temperature\"`\n\tSoC         float64 `json:\"state_of_charge\"`\n\tSoH         float64 `json:\"state_of_health\"`\n\tChargerID   int     `json:\"charger_ID\"`\n}\n```\nEV stores data\n\n```go\nfunc (c *EV) LoadState(ctx contractapi.TransactionContextInterface) (bool, error)\n```\nLoadState loads the data from the ledger into the EV object if the data is found Returns false if an Account object wasn't found in the ledger; otherwise returns true.\n\n```go\nfunc (c *EV) SaveState(ctx contractapi.TransactionContextInterface) error\n```\nSaveState saves the accounts into the ledger\n\n```go\nfunc (c *EV) ToCompositeKey(ctx contractapi.TransactionContextInterface) (string,\n\terror)\n```\nToCompositeKey returns a composite key based on the ID and accountType\n\n```go\nfunc (c *EV) ToLedgerValue() ([]byte, error)\n```\nToLedgerValue creates a JSON-encoded account\n\n```go\ntype EVContract struct {\n\tcontractapi.Contract\n}\n```\nEVContract contract for managing CRUD for EVs\n\n```go\nfunc (c *EVContract) CreateEVUser(ctx contractapi.TransactionContextInterface, EVID string, model string, age int, temperature float64, SoC float64, SoH float64) error\n```\nCreateEVUser creates a new instance of EV\n\n```go\nfunc (c *EVContract) DeleteEVUser(ctx contractapi.TransactionContextInterface, EVID string) error\n```\nDeleteEVUser deletes an EV from the world state\n\n```go\nfunc (c *EVContract) EVUserExists(ctx contractapi.TransactionContextInterface, ID string) (bool, error)\n```\nEVUserExists checks if a given EV exists\n\n```go\nfunc (c *EVContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger creates the initial set of EVs in the ledger.\n\n```go\nfunc (c *EVContract) QueryAll(ctx contractapi.TransactionContextInterface) ([]*EV, error)\n```\nQueryAll returns a JSON of all the EVs on the blockchain\n\n```go\nfunc (c *EVContract) QueryAssetHistory(ctx contractapi.TransactionContextInterface, EVID string) ([]QueryResult, error)\n```\nQueryAssetHistory returns the chain of custody for a asset since issuance\n\n```go\nfunc (c *EVContract) QueryByFields(ctx contractapi.TransactionContextInterface, model string, op string, age int) ([]*EV, error)\n```\nQueryByFields allows users to query with optional fields Performs a rich query on couchDB with indexing (paramters can be tuned in the future) Parameters and the selectors can be tuend accordingly: model -\u003e model of car age   -\u003e age of car op    -\u003e operator for comparison (i.e. $eq, $gt, $gte, $lt, $lte) QueryByFields(Tesla, $gt, 2) will return all Teslas that have age greater than 2\n\n```go\nfunc (c *EVContract) ReadEVData(ctx contractapi.TransactionContextInterface, EVID string) (*EV, error)\n```\nReadEVData retrieves an instance of EV from the world state\n\n```go\nfunc (c *EVContract) UpdateEVData(ctx contractapi.TransactionContextInterface, EVID string, CSOID string, ChargerID int, PowerFlow float64, RecentMoney float64, Temperature float64, SoC float64, SoH float64) error\n```\nUpdateEVData is only called by the CSOContract (Invoke Chaincode) maybe add powerflow charger\n\n```go\ntype Education struct {\n\tObjectType string `json:\"docType\"`\n\tName       string `json:\"Name\"`     // 姓名\n\tGender     string `json:\"Gender\"`   // 性别\n\tNation     string `json:\"Nation\"`   // 民族\n\tEntityID   string `json:\"EntityID\"` // 身份证号\n\tPlace      string `json:\"Place\"`    // 籍贯\n\tBirthDay   string `json:\"BirthDay\"` // 出生日期\n\n\tEnrollDate     string `json:\"EnrollDate\"`     // 入学日期\n\tGraduationDate string `json:\"GraduationDate\"` // 毕（结）业日期\n\tSchoolName     string `json:\"SchoolName\"`     // 学校名称\n\tMajor          string `json:\"Major\"`          // 专业\n\tQuaType        string `json:\"QuaType\"`        // 学历类别\n\tLength         string `json:\"Length\"`         // 学制\n\tMode           string `json:\"Mode\"`           // 学习形式\n\tLevel          string `json:\"Level\"`          // 层次\n\tGraduation     string `json:\"Graduation\"`     // 毕（结）业\n\tCertNo         string `json:\"CertNo\"`         // 证书编号\n\n\tPhoto string `json:\"Photo\"` // 照片\n\n\tHistorys []HistoryItem // 当前edu的历史记录\n}\n```\n\n```go\nfunc GetEduInfo(stub shim.ChaincodeStubInterface, entityID string) (Education, bool)\n```\n根据身份证号码查询信息状态 args: entityID\n\n```go\ntype EducationChaincode struct {\n}\n```\n\n```go\nfunc (t *EducationChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (t *EducationChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype ElectionContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (e *ElectionContract) CheckElectionProposal(\n\tctx contractapi.TransactionContextInterface,\n\telectionProposalName string) (*Committee, error)\n```\nCheckElectionProposal 检查选举提案结果\n\n```go\nfunc (e *ElectionContract) CreateElectionProposal(\n\tctx contractapi.TransactionContextInterface,\n\telectionProposalName string,\n\tproposerName string,\n\tstartTime string,\n\tendTime string) (*ElectionProposal, error)\n```\nCreateElectionProposal 创建选举提案\n\n```go\nfunc (e *ElectionContract) ElectionProposalExist(\n\tctx contractapi.TransactionContextInterface,\n\telectionProposalName string) bool\n```\nElectionProposalExist 判断选举提案是否存在\n\n```go\nfunc (e *ElectionContract) QueryCommittee(\n\tctx contractapi.TransactionContextInterface) *Committee\n```\nQueryCommittee 获取委员会成员\n\n```go\nfunc (e *ElectionContract) QueryElectionProposal(\n\tctx contractapi.TransactionContextInterface,\n\telectionProposalName string) (*ElectionProposal, error)\n```\nQueryElectionProposal 获取选举提案信息\n\n```go\nfunc (e *ElectionContract) VoteElectionProposal(\n\tctx contractapi.TransactionContextInterface,\n\telectionProposalName string,\n\tvoterName string,\n\tcandidateName string) (*ElectionProposal, error)\n```\n\n```go\ntype ElectionProposal struct {\n\tElectionProposalName string               `json:\"election_proposal_name\"`\n\tProposerName         string               `json:\"proposer_name\"`\n\tCandidateMap         map[string]Candidate `json:\"candidate_map\"`\n\tVoterMap             map[string]Voter     `json:\"voter_map\"`\n\tState                string               `json:\"state\"`\n\tStartTime            string               `json:\"start_time\"`\n\tEndTime              string               `json:\"end_time\"`\n}\n```\nElectionProposal 选举提案\n\n```go\ntype ElectionSystem struct {\n\tIsVoted      map[string]bool `json:\"isvoted\"`\n\tCandidates   map[string]int  `json:\"candidates\"`\n\tTopCandidate string          `json:\"topcandidate\"`\n\tIsVoteOn     bool            `json:\"isvoteon\"`\n\tVoters       map[string]int  `json:\"voters\"`\n\tVoterCount   int             `json:\"votercount\"`\n}\n```\n\n```go\ntype Emissions struct {\n\tUUID    string\n\tPartyId string\n\tTokenId string\n}\n```\n\n```go\ntype Emoji struct {\n\tHash    string `json:\"hash\"`\n\tCreator string `json:\"creator\"`\n\tCode    string `json:\"code\"`\n}\n```\n\n```go\ntype Enclave interface {\n\n\t// Init initializes the chaincode enclave.\n\t// The input and output parameters are serialized protobufs\n\t// triggered by an admin\n\tInit(chaincodeParams, hostParams, attestationParams []byte) (credentials []byte, err error)\n\n\t// GetEnclaveId returns the EnclaveId hosted by the peer\n\tGetEnclaveId() (string, error)\n\n\t// GenerateCCKeys returns a signed CCKeyRegistration Message including\n\t// The output parameters is a serialized protobuf\n\tGenerateCCKeys() (signedCCKeyRegistrationMessage []byte, err error)\n\n\t// ExportCCKeys exports chaincode secrets to enclave with provided credentials\n\t// The input and output parameters are serialized protobufs\n\tExportCCKeys(credentials []byte) (signedExportMessage []byte, err error)\n\n\t// ImportCCKeys imports chaincode secrets\n\t// The output parameters is a serialized protobuf\n\tImportCCKeys() (signedCCKeyRegistrationMessage []byte, err error)\n\n\t// ChaincodeInvoke invokes fpc chaincode inside enclave\n\t// chaincodeRequestMessage and chaincodeResponseMessage are serialized protobuf\n\tChaincodeInvoke(stub shim.ChaincodeStubInterface, chaincodeRequestMessage []byte) (chaincodeResponseMessage []byte, err error)\n}\n```\n\n```go\ntype EnclaveStub struct {\n\t// contains filtered or unexported fields\n}\n```\nEnclaveStub translates invocations into an enclave using cgo\n\n```go\nfunc NewEnclaveStub() *EnclaveStub\n```\n\n```go\nfunc (e *EnclaveStub) ChaincodeInvoke(stub shim.ChaincodeStubInterface, crmProtoBytes []byte) ([]byte, error)\n```\nChaincodeInvoke calls the enclave for transaction processing\n\n```go\nfunc (e *EnclaveStub) ExportCCKeys(credentials []byte) ([]byte, error)\n```\n\n```go\nfunc (e *EnclaveStub) GenerateCCKeys() ([]byte, error)\n```\n\n```go\nfunc (e *EnclaveStub) GetEnclaveId() (string, error)\n```\n\n```go\nfunc (e *EnclaveStub) ImportCCKeys() ([]byte, error)\n```\n\n```go\nfunc (e *EnclaveStub) Init(chaincodeParams, hostParams, attestationParams []byte) ([]byte, error)\n```\n\n```go\ntype EndorsementCC struct{}\n```\nEndorsementCC is an example chaincode that uses state-based endorsement. In the init function, it creates two KVS states, one public, one private, that can then be modified through chaincode functions that use the state-based endorsement chaincode convenience layer. The following chaincode functions are provided: -) \"addorgs\": supply a list of MSP IDs that will be added to the\n\n\tstate's endorsement policy\n\n\\-) \"delorgs\": supply a list of MSP IDs that will be removed from\n\n\tthe state's endorsement policy\n\n\\-) \"delep\": delete the key-level endorsement policy for the state altogether -) \"listorgs\": list the orgs included in the state's endorsement policy\n\n```go\nfunc (cc *EndorsementCC) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit callback\n\n```go\nfunc (cc *EndorsementCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke dispatcher\n\n```go\ntype Endorser struct {\n\tChannelFetcher         ChannelFetcher\n\tLocalMSP               msp.IdentityDeserializer\n\tPrivateDataDistributor PrivateDataDistributor\n\tSupport                Support\n\tPvtRWSetAssembler      PvtRWSetAssembler\n\tMetrics                *Metrics\n}\n```\nEndorser provides the Endorser service ProcessProposal\n\n```go\nfunc (e *Endorser) ProcessProposal(ctx context.Context, signedProp *pb.SignedProposal) (*pb.ProposalResponse, error)\n```\nProcessProposal process the Proposal\n\n```go\nfunc (e *Endorser) ProcessProposalSuccessfullyOrError(up *UnpackedProposal) (*pb.ProposalResponse, error)\n```\n\n```go\nfunc (e *Endorser) SimulateProposal(txParams *ccprovider.TransactionParams, chaincodeName string, chaincodeInput *pb.ChaincodeInput) (*pb.Response, []byte, *pb.ChaincodeEvent, error)\n```\nSimulateProposal simulates the proposal by calling the chaincode\n\n```go\ntype Enrollment struct {\n\tTokenId      string\n\tFromWalletId string\n\tToWalletId   string\n\tBase         `mapstructure:\",squash\"`\n}\n```\n\n```go\nfunc NewEnrollment(ctx ...contractapi.TransactionContextInterface) *Enrollment\n```\n\n```go\ntype EntidadSancionada struct {\n\tId     string\n\tNombre string\n}\n```\n\n```go\nfunc GetEntidadSancionadaByName(ctx contractapi.TransactionContextInterface, nombre string) (EntidadSancionada, bool)\n```\n\n```go\ntype Entidade struct {\n\tNome                          string `json:\"nome\"`\n\tECnpjCpf                      int    `json:\"eCnpjCpf\"`\n\tSenha                         string `json:\"senha\"`\n\tTipo                          string `json:\"tipo\"`\n\tEDocumentoResponsavelRegistro int    `json:\"eDocumentoResponsavelRegistro\"`\n\tId                            string `json:\"id\"`\n}\n```\nDefinição de classes Entidade (Proprietario, Concessionaria, Montadora)\n\n```go\ntype Entry struct {\n\tKey   string\n\tValue string\n}\n```\nEntry is a key-value pair.\n\n```go\nfunc EntryFromSerialized(s msp.SerializedIdentity) (g *Entry, err error)\n```\nEntryFromSerialized creates Entry from SerializedEntry\n\n```go\ntype Erc721 interface {\n\n\t// MintNft to generate new NFT with GS1 number\n\tMintNft(ctx contractapi.TransactionContextInterface, mintNFT nft.MintNFT) (string, error)\n\n\t// OwnerOf to find the owner of an NFT\n\tOwnerOf(ctx contractapi.TransactionContextInterface, ownerNFT nft.OwnerNFT) (string, error)\n\n\t// BalanceOf to count all NFTs assigned to an owner\n\tBalanceOf(ctx contractapi.TransactionContextInterface, balanceOfNFT nft.BalanceOfNFT) (int, error)\n\n\t// TransferFrom to transfers the ownership of an NFT from one wallet to another wallet\n\tTransferFrom(ctx contractapi.TransactionContextInterface, transferNFT nft.TransferNFT) error\n}\n```\n\n```go\ntype ErrorType struct {\n}\n```\n\n```go\nfunc (err *ErrorType) Error() string\n```\n\n```go\ntype Escrow struct {\n\tEscrowID string  `json:\"escrowID\"`\n\tBidderID string  `json:\"bidderID\"`\n\tArtID    string  `json:\"artID\"`\n\tAmount   float64 `json:\"amount\"`\n\tStatus   string  `json:\"status\"`\n}\n```\n\n```go\ntype Event struct {\n\tSigner     string               `json:\"signer\"`\n\tTimestamp  *timestamp.Timestamp `json:\"timestamp\"`\n\tAction     string               `json:\"action\"`\n\tUUIDs      string               `json:\"uuids\"`\n\tBatchHash  string               `json:\"batchHash\"`\n\tPayloadRef string               `json:\"payloadRef\"`\n\tContexts   []string             `json:\"contexts\"`\n}\n```\n\n```go\nfunc BuildEvent(ctx contractapi.TransactionContextInterface, args *Args) (*Event, error)\n```\n\n```go\nfunc BuildEventFromString(ctx contractapi.TransactionContextInterface, data string) (*Event, error)\n```\n\n```go\ntype EventDetail struct {\n\tProposalID       string   `json:\"proposalID\"`\n\tOperationTargets []string `json:\"operationTargets\"`\n}\n```\nEventDetail represents details of chaincode events which is issued in the chaincode.\n\n```go\ntype EventSocketSubscriptionTicket struct {\n\tAssetID string        `json:\"asset_id\"`\n\tMetric  models.Metric `json:\"metric\"`\n\tExpiry  time.Time     `json:\"expiry\"`\n}\n```\nEventSocketSubscriptionTicket defines subscription ticket of event socket for metric readings.\n\n```go\ntype EventSubscription struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (es *EventSubscription) Close() error\n```\n\n```go\nfunc (es *EventSubscription) Errors() chan error\n```\n\n```go\nfunc (es *EventSubscription) Events() chan *peer.ChaincodeEvent\n```\n\n```go\ntype ExMetaData struct {\n\tSrc  string `json:\"src\"`\n\tDest string `json:\"dest\"`\n\tFrom string `json:\"from\"`\n\tTo   string `json:\"to\"`\n\tCid  string `json:\"cid\"`\n}\n```\n\n```go\ntype ExampleCC struct {\n\t// contains filtered or unexported fields\n}\n```\nExampleCC example chaincode that puts and gets state and private data\n\n```go\nfunc (cc *ExampleCC) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit ...\n\n```go\nfunc (cc *ExampleCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke invoke the chaincode with a given function\n\n```go\ntype Exchange interface {\n\tTransferNft(ctx contractapi.TransactionContextInterface, ownerWalletId string, toWalletId string, nftToken string, price float64) error\n}\n```\n\n```go\ntype ExpireResponse struct {\n\tTxId string `json:\"txId\"`\n}\n```\n\n```go\ntype ExporterBasicData struct {\n\tExporter_id   string             `json:\"exporterID\"`\n\tName          string             `json:\"name\"`\n\tAddress       string             `json:\"address\"`\n\tExporterSeeds []ExporterSeedData `json:\"exporterSeeds\"`\n}\n```\n\n```go\ntype ExporterSeedData struct {\n\tBatch_id              string `json:\"batchId\"`\n\tExporterName          string `json:\"exporterName\"`\n\tPlaceKeptExporter     string `json:\"placeKeptExporter\"`\n\tArrivalDateExporter   string `json:\"arrivalDateExporter\"`\n\tDestinationAddress    string `json:\"destinationAddress\"`\n\tVehicleUsedExporter   string `json:\"vehicleUsedExporter\"`\n\tVehicleNumberExporter string `json:\"vehicleNumberExporter\"`\n\tDepartureDate         string `json:\"departureDate\"`\n}\n```\n\n```go\ntype ExtendedContract contractapi.Contract\n```\n\n```go\nfunc (c *ExtendedContract) GetAfterTransaction() interface{}\n```\n\n```go\nfunc (c *ExtendedContract) GetBeforeTransaction() interface{}\n```\n\n```go\nfunc (c *ExtendedContract) GetClientIdentity() cid.ClientIdentity\n```\n\n```go\nfunc (c *ExtendedContract) GetIgnoredFunctions() []string\n```\n\n```go\nfunc (c *ExtendedContract) GetInfo() metadata.InfoMetadata\n```\n\n```go\nfunc (c *ExtendedContract) GetName() string\n```\nGetName returns the name of the contract\n\n```go\nfunc (c *ExtendedContract) GetStub() shim.ChaincodeStubInterface\n```\n\n```go\nfunc (c *ExtendedContract) GetTransactionContextHandler() contractapi.SettableTransactionContextInterface\n```\nGetTransactionContextHandler returns the current transaction context set for the contract. If none has been set then TransactionContext will be returned\n\n```go\nfunc (c *ExtendedContract) GetUnknownTransaction() interface{}\n```\n\n```go\ntype ExtractorImpl struct {\n}\n```\n\n```go\nfunc (s *ExtractorImpl) GetChaincodeParams(stub shim.ChaincodeStubInterface) (*protos.CCParameters, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetChaincodeResponseMessages(stub shim.ChaincodeStubInterface) (*protos.SignedChaincodeResponseMessage, *protos.ChaincodeResponseMessage, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetHostParams(stub shim.ChaincodeStubInterface) (*protos.HostParameters, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetInitEnclaveMessage(stub shim.ChaincodeStubInterface) (*protos.InitEnclaveMessage, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetSerializedChaincodeRequest(stub shim.ChaincodeStubInterface) ([]byte, error)\n```\n\n```go\ntype Extractors interface {\n\tGetInitEnclaveMessage(stub shim.ChaincodeStubInterface) (*protos.InitEnclaveMessage, error)\n\tGetSerializedChaincodeRequest(stub shim.ChaincodeStubInterface) ([]byte, error)\n\tGetChaincodeResponseMessages(stub shim.ChaincodeStubInterface) (*protos.SignedChaincodeResponseMessage, *protos.ChaincodeResponseMessage, error)\n\tGetChaincodeParams(stub shim.ChaincodeStubInterface) (*protos.CCParameters, error)\n\tGetHostParams(stub shim.ChaincodeStubInterface) (*protos.HostParameters, error)\n}\n```\n\n```go\ntype Factory struct {\n}\n```\nFactory for trigger\n\n```go\nfunc (*Factory) Metadata() *trigger.Metadata\n```\nMetadata implements trigger.Factory.Metadata\n\n```go\nfunc (t *Factory) New(config *trigger.Config) (trigger.Trigger, error)\n```\nNew implements trigger.Factory.New\n\n```go\ntype FactoryContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *FactoryContract) GetMilkHistory(ctx Context, milkID string) ([]QueryResult, error)\n```\n\n```go\nfunc (c *FactoryContract) Instantiate()\n```\n\n```go\nfunc (c *FactoryContract) PutMilkReport(ctx Context, milkID, cowID, machineID, operation string) error\n```\n\n```go\ntype FactoryFunc func(key string) interface{}\n```\nFactoryFunc .\n\n```go\ntype Farm struct {\n\tFarmName     string `json:\"FarmName\"`\n\tAddress      string `json:\"Address\"`\n\tLicense      string `json:\"License\"`\n\tOwner        string `json:\"owner\"`\n\tBreedingTime string `json:\"BreedingTime\"`\n\tReleaseDate  string `json:\"ReleaseDate\"`\n}\n```\n养殖场名称、地址、营业执照、养殖者姓名、养殖时间、出栏日期\n\n```go\ntype FarmContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *FarmContract) GetCowHistory(ctx Context, cowID string) ([]QueryResult, error)\n```\n\n```go\nfunc (c *FarmContract) Instantiate()\n```\n\n```go\nfunc (c *FarmContract) PutCowReport(ctx Context, cowID, reportData string) error\n```\n\n```go\ntype FarmerBasicData struct {\n\tFarmer_id   string           `json:\"farmerID\"`\n\tName        string           `json:\"name\"`\n\tAddress     string           `json:\"address\"`\n\tFarmerSeeds []FarmerSeedData `json:\"farmerSeeds\"`\n}\n```\n\n```go\ntype FarmerSeedData struct {\n\tBatch_id             string  `json:\"batchId\"`\n\tFarmerName           string  `json:\"farmerName\"`\n\tSeed_type            string  `json:\"seedType\"`\n\tPlaceGrow            string  `json:\"placeGrow\"`\n\tCutting              string  `json:\"cutting\"`\n\tLandArea             string  `json:\"landArea\"`\n\tTotalQuantitySeed    float64 `json:\"totalQuantitySeed\"`\n\tSeedQualityType      string  `json:\"seedQualityType\"`\n\tFertilizerName       string  `json:\"fertilizerName\"`\n\tFertilizerQuantity   string  `json:\"fertilizerQuantity\"`\n\tPestisideName        string  `json:\"pestisideName\"`\n\tPestisideQuantity    string  `json:\"pestisideQuantity\"`\n\tProduceQuantityTypeA float64 `json:\"produceQuantityTypeA\"`\n\tProduceQuantityTypeB float64 `json:\"produceQuantityTypeB\"`\n\tProduceQuantityTypeC float64 `json:\"produceQuantityTypeC\"`\n\tGrowDate             string  `json:\"growDate\"`\n\tCuttingDate          string  `json:\"cuttingDate\"`\n}\n```\n\n```go\ntype Fcn struct {\n\tMinter string `json:\"Minter,omitempty\"`\n\tFrom   string `json:\"From,omitempty\"`\n\tTo     string `json:\"To,omitempty\"`\n\tValue  string `json:\"Value,omitempty\"`\n\tTotal  string `json:\"Total,omitempty\"`\n}\n```\nfunction response struct\n\n```go\ntype Field struct {\n\tName string `json:\"name\"`\n\n\tNameAlt interface{} `json:\"name_alt\"`\n\n\tSlug string `json:\"slug\"`\n\n\tFieldType string `json:\"field_type\"`\n\n\tListFieldValues string `json:\"list_field_values\"`\n\n\tValidationRule interface{} `json:\"validation_rule\"`\n\n\tValidationRule1 interface{} `json:\"validation_rule_1\"`\n\n\tValidationRule2 interface{} `json:\"validation_rule_2\"`\n\n\tValue string `json:\"value\"`\n}\n```\n\n```go\ntype File struct {\n\tMainHash  string  `json:\"main_hash\"`\n\tFilename  string  `json:\"filename\"`\n\tTimestamp int     `json:\"timestamp\"`\n\tMimeType  string  `json:\"mime-type\"`\n\tShards    []Shard `json:\"shards\"`\n}\n```\n\n```go\ntype FileReaderContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (f *FileReaderContract) CalculateSHA256() (string, error)\n```\n\n```go\ntype FilesystemSupport interface {\n\t// PutChaincodeToLocalStorage stores the supplied chaincode\n\t// package to local storage (i.e. the file system)\n\tPutChaincodeToLocalStorage(ccprovider.CCPackage) error\n\n\t// GetChaincodeFromLocalStorage retrieves the chaincode package\n\t// for the requested chaincode, specified by name and version\n\tGetChaincodeFromLocalStorage(ccNameVersion string) (ccprovider.CCPackage, error)\n\n\t// GetChaincodesFromLocalStorage returns an array of all chaincode\n\t// data that have previously been persisted to local storage\n\tGetChaincodesFromLocalStorage() (*pb.ChaincodeQueryResponse, error)\n\n\t// GetInstantiationPolicy returns the instantiation policy for the\n\t// supplied chaincode (or the channel's default if none was specified)\n\tGetInstantiationPolicy(channel string, ccpack ccprovider.CCPackage) ([]byte, error)\n\n\t// CheckInstantiationPolicy checks whether the supplied signed proposal\n\t// complies with the supplied instantiation policy\n\tCheckInstantiationPolicy(signedProposal *pb.SignedProposal, chainName string, instantiationPolicy []byte) error\n}\n```\nFilesystemSupport contains functions that LSCC requires to execute its tasks\n\n```go\ntype FinancialChainCode struct {\n\tcontractapi.Contract\n}\n```\n\\* 初始化默认金融机构 新建金融机构 一般账户向共管账户现金兑换票据(充值) 一般账户向共管账户票据兑换现金(提现) 共管账户向一般账户发放票据(派发)\n\n\\* 金融机构链码\n\n```go\nfunc (t *FinancialChainCode) Create(ctx contractapi.TransactionContextInterface, id string, name string, code string, status int) (string, error)\n```\n\\*\n\n\t新增金融机构共管账户私有数据\n\n```go\nfunc (t *FinancialChainCode) FindById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *FinancialChainCode) FindPrivateDataById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *FinancialChainCode) Grant(ctx contractapi.TransactionContextInterface, id string, amount int) (int, error)\n```\n\\*\n\n\t一般账户向共管账户现金兑换票据\n\n```go\nfunc (t *FinancialChainCode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (t *FinancialChainCode) Realization(ctx contractapi.TransactionContextInterface, managedCardNo string, generalCardNo string, voucherAmount int) (string, error)\n```\n\\*\n\n\t一般账户向共管账户票据兑换现金 (票据变现)\n\n个体/分销商/下发机构发起提现请求 减少金融机构的现金余额和票据余额，增加个体/分销商/下发机构一般账户的现金余额，减少个体/分销商/下发机构一般账户的票据余额\n\n```go\nfunc (t *FinancialChainCode) TransferAsset(ctx contractapi.TransactionContextInterface, managedCardNo string, generalCardNo string, amount int) (string, error)\n```\n\\*\n\n\t一般账户向共管账户现金兑换票据 (现金充值)\n\n零售商用一般账户的现金余额向上级代理的上级下发机构的金融机构的共管账户充值，获取金融机构颁发的票据，共管账户增加票据余额，零售商减少一般账户的现金余额，增加金融机构的现金余额和票据余额。\n\n```go\nfunc (t *FinancialChainCode) TransferVoucherAsset(ctx contractapi.TransactionContextInterface, managedCardNo string, generalCardNo string, voucherAmount int) (string, error)\n```\n\\*\n\n\t共管账户向一般账户交易票据 (票据下发)\n\n```go\ntype FinancialGeneralAccountChaincode struct {\n\tcontractapi.Contract\n}\n```\n\\* 初始化全部角色的一般账户记录 新建一般账户记录 一般账户现金交易 一般账户票据交易 一般账户票据兑换现金交易\n\n\\* 需要给不同的角色设置不同的私有数据集\n\n\\* 一般账户链码\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) Create(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\\* 新增金融机构一般账户私有数据\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) FindPrivateDataById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\\* 查询金融机构一般账户私有数据\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) GetAllFinancialGenerals(ctx contractapi.TransactionContextInterface, startKey, endKey string) ([]*QueryResult, error)\n```\n\\* 富查询 必须是CouchDB才行\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) GetHistoryForMarble(ctx contractapi.TransactionContextInterface, cardNo string) ([]QueryResult, error)\n```\n\\* 查询历史数据\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) InitAgencyLedger(ctx contractapi.TransactionContextInterface) error\n```\n\\* 初始化金融机构一般账户 ----分销商机构\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) InitIndividualsLedger(ctx contractapi.TransactionContextInterface) error\n```\n\\* 初始化金融机构一般账户----个体\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) InitIssuesLedger(ctx contractapi.TransactionContextInterface) error\n```\n\\* 初始化金融机构一般账户 ----下发机构\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\\* 初始化金融机构\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) InitRetailersLedger(ctx contractapi.TransactionContextInterface) error\n```\n\\* 初始化金融机构一般账户 ----零售商机构\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) QueryFinancialGeneralWithPagination(ctx contractapi.TransactionContextInterface, financialOrgID, certificateNo string, bookmark string, pageSize int) ([]*QueryResult, error)\n```\n\\* 查询全部\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) TransferAsset(ctx contractapi.TransactionContextInterface, generalCardNo string, voucherAmount int) error\n```\n\\*\n\n\t现金和票据交易 （票据提现）\n\n提现时增加个体/零售商/分销商的现金 提现时减少个体/零售商/分销商的票据\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) TransferCashAsset(ctx contractapi.TransactionContextInterface, generalCardNo string, amount int) error\n```\n\\*\n\n\t现金交易\n\n零售商向零售商一般账户充值现金余额\n\n```go\nfunc (t *FinancialGeneralAccountChaincode) TransferVoucherAsset(ctx contractapi.TransactionContextInterface, generalCardNo string, voucherAmount int) error\n```\n\\*\n\n\t票据交易\n\n增加个体/零售商/分销商的票据\n\n```go\ntype FinancialOrg struct {\n\tID     string `json:\"id\"`     //金融机构ID\n\tName   string `json:\"name\"`   //金融机构名称\n\tCode   string `json:\"code\"`   //金融机构代码\n\tStatus int    `json:\"status\"` //金融机构状态(启用/禁用)\n}\n```\n\\*\n\n\t金融机构属性\n\n```go\ntype FinancialOrgGeneralAccountPrivateData struct {\n\tCardNo                string `json:\"cardNo\"`                //金融机构公管账户账号(唯一不重复)\n\tFinancialOrgID        string `json:\"financialOrgID\"`        //金融机构ID FinancialOrg.ID\n\tCertificateNo         string `json:\"certificateNo\"`         //持卡者证件号\n\tCertificateType       int    `json:\"certificateType\"`       //持卡者证件类型 (身份证/港澳台证/护照/军官证/统一社会信用代码)\n\tCurrentBalance        int    `json:\"currentBalance\"`        //金融机构共管账户余额(现金)\n\tVoucherCurrentBalance int    `json:\"voucherCurrentBalance\"` //金融机构零售商机构账户凭证(token)余额\n\tAccStatus             int    `json:\"accStatus\"`             //金融机构共管账户状态(正常/冻结/黑名单/禁用/限制)\n}\n```\n\\*\n\n\t金融机构一般账户私有数据属性\n\n```go\nfunc FindIndividualPrivateDataById(ctx contractapi.TransactionContextInterface, cardNo string) (*FinancialOrgGeneralAccountPrivateData, error)\n```\n\n```go\ntype FinancialOrgManagedAccountPrivateData struct {\n\tCardNo                string `json:\"cardNo\"`                //金融机构共管账户账号\n\tPlatformOrgID         string `json:\"platformOrgID\"`         //平台机构ID PlatformOrg.ID\n\tFinancialOrgID        string `json:\"financialOrgID\"`        //金融机构ID FinancialOrg.ID\n\tIssueOrgID            string `json:\"issueOrgID\"`            //下发机构ID IssueOrg.ID\n\tRetailerOrgID         string `json:\"retailerOrgID\"`         //零售商机构ID RetailerOrg.ID\n\tAgencyOrgID           string `json:\"agencyOrgID\"`           //分销商机构ID AgencyOrg.ID\n\tIssueCardNo           string `json:\"issueCardNo\"`           //下发机构一般账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tAgencyCardNo          string `json:\"managedCardNo\"`         //分销商机构一般账户账号 FinancialOrgManagedAccountPrivateData.CardNo\n\tManagedCardNo         string `json:\"managedCardNo\"`         //分销商机构一般账户账号 FinancialOrgManagedAccountPrivateData.CardNo\n\tGeneralCardNo         string `json:\"generalCardNo\"`         //零售商机构一般账户账号 FinancialOrgGeneralAccountPrivateData.CardNo\n\tVoucherCurrentBalance int    `json:\"voucherCurrentBalance\"` //金融机构零售商机构账户凭证(token)余额\n\tAccStatus             int    `json:\"accStatus\"`             //金融机构共管账户状态(正常/冻结/黑名单/禁用/限制)\n}\n```\n\\*\n\n\t金融机构共管账户私有数据属性\n\n```go\ntype FinancialOrgPrivateData struct {\n\tID                    string `json:\"id\"`                    //金融机构ID FinancialOrg.ID\n\tCurrentBalance        int    `json:\"currentBalance\"`        //金融机构共管账户余额(现金)\n\tVoucherCurrentBalance int    `json:\"voucherCurrentBalance\"` //金融机构零售商机构账户凭证(token)余额\n}\n```\n\\*\n\n\t金融机构私有数据属性\n\n```go\ntype Firmware struct {\n\tID      string `json:\"id\"`\n\tName    string `json:\"name\"`\n\tVersion string `json:\"version\"`\n\tStatus  string `json:\"status\"`\n\tPath    string `json:\"path\"`\n\tCreate  string `json:\"create\"`\n\tDeploy  string `json:\"deploy\"`\n\tHash    string `json:\"hash\"`\n}\n```\nCar describes basic details of what makes up a car\n\n```go\ntype Flag struct {\n\tId      string\n\tBuyerId string\n\tFlg     string\n\tDoctype string\n}\n```\n\n```go\ntype Fn func(ctx contractapi.TransactionContextInterface, args [][]byte) error\n```\nFn defines a function to process Msg\n\n```go\ntype Food struct {\n\tAgricultor   string `json:\"agricultor\"`\n\tOrganizacion string `json:\"organizacion\"`\n\tVariedad     string `json:\"variedad\"`\n}\n```\nFood provee funciones basicas para el control de comida\n\n```go\ntype FormData struct {\n\tFieldName    string\n\tOriginalName string\n\tEncoding     string\n\tMimeType     string\n\tBuffer       AnnotatedBuffer\n\tSize         int\n}\n```\n\n```go\ntype FullBid struct {\n\tType     string `json:\"objectType\"`\n\tQuantity int    `json:\"quantity\"`\n\tPrice    int    `json:\"price\"`\n\tOrg      string `json:\"org\"`\n\tBuyer    string `json:\"buyer\"`\n}\n```\nFullBid is the structure of a revealed bid\n\n```go\ntype Fund struct {\n\tDocType            string `json:\"docType\"`\n\tID                 string `json:\"id\"`\n\tName               string `json:\"name\"`\n\tCurrentPeriod      int    `json:\"currentPeriod\"`\n\tInceptionDate      string `json:\"inceptionDate\"`\n\tPeriodClosingValue string `json:\"periodClosingValue\"`\n\tPeriodOpeningValue string `json:\"periodOpeningValue\"`\n\tAggregateFixedFees string `json:\"aggregateFixedFees\"`\n\tAggregateDeposits  string `json:\"aggregateDeposits\"`\n\tNextInvestorNumber int    `json:\"nextInvestorNumber\"`\n\tPeriodUpdated      bool   `json:\"periodUpdated\"`\n}\n```\n\n```go\ntype FungibleAssetExchangeAgreement struct {\n\tAssetType string `json:\"type\"`\n\tNumUnits  uint64 `json:\"numUnits\"`\n\tLocker    string `json:\"locker\"`\n\tRecipient string `json:\"recipient\"`\n}\n```\n\n```go\ntype Gap struct {\n\tGapNum   string `json:\"gapnum\"`\n\tName     string `json:\"name\"`\n\tKind     string `json:\"kind\"`\n\tLocation string `json:\"location\"`\n\tArea     int    `json:\"area\"`\n}\n```\n\n```go\ntype GenderType = structures.GenderType\n```\n\n```go\ntype GetContent func(string) ([]byte, error)\n```\n\n```go\ntype GetStateError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e GetStateError) Error() string\n```\n\n```go\ntype GetTableRow_FailureOption bool\n```\nThis is effectively a strongly typed enum declaration.\n\n```go\nconst (\n\tDONT_FAIL_IF_MISSING GetTableRow_FailureOption = false\n\tFAIL_IF_MISSING      GetTableRow_FailureOption = true\n)\n```\n\n```go\ntype GlobalModelMetaInfo struct {\n\tCurHashId     string `json:\"curHashId\"`\n\tRound         int    `json:\"round\"`\n\tUploadCount   int    `json:\"uploadCount\"`\n\tTriggerAvgNum int    `json:\"triggerAvgNum\"`\n\n\tLocalUpdates     map[string]ModelBlock `json:\"localUpdates\"`\n\tOrgIds           []int                 `json:\"orgIds\"`\n\tClusters         [][]int               `json:\"clusters\"`\n\tClusterModelUrls map[string]string     `json:\"clusterModelUrls\"`\n}\n```\nglobal model meta information k: 'global' v: GlobalMetaInfo\n\n```go\ntype GlobalParameters struct {\n\tLayerName  string   `json:\"layername\"`\n\tLayerShape string   `json:\"layershape\"`\n\tLayerSize  string   `json:\"layersize\"`\n\tParameters []string `json:\"parameters\"`\n}\n```\n\n```go\ntype GlobalSimilarityMatrix struct {\n\tSimilarityMatrix [][]float32 `json:\"similarityMatrix\"`\n}\n```\n\n```go\ntype GlobalTransactionContext struct {\n\tcontractapi.TransactionContext\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (gtxc *GlobalTransactionContext) GetGlobalTransactionManager() sidemesh.GlobalTransactionManager\n```\n\n```go\nfunc (gtxc *GlobalTransactionContext) GetLockManager() sidemesh.LockManager\n```\n\n```go\ntype GlobalTransactionContextInterface interface {\n\tcontractapi.TransactionContextInterface\n\tGetGlobalTransactionManager() sidemesh.GlobalTransactionManager\n\tGetLockManager() sidemesh.LockManager\n}\n```\n\n```go\ntype GlobalTransactionManagerImpl struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) ConfirmBranchTransaction(branchPrepareTxID string, globalTxStatus int, primaryNetwork string, primaryChain string, primaryConfirmTxID string, primaryConfirmTxProof string) error\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) ConfirmPrimaryTransaction(primaryPrepareTxID string, branchTxRes [][]string) error\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) PrepareBranchTransaction(primaryNetwork string, primaryChain string, primaryTxID string, globalTxQueryContract string, globalTxQueryFunc string) error\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) PreparePrimaryTransaction() error\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) RegisterBranchTransaction(network string, chain string, contract string, function string, args []string) error\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) StartBranchTransaction(primaryNetwork string, primaryChain string, primaryTxID string, primaryTxProof string) error\n```\n\n```go\nfunc (gtxm *GlobalTransactionManagerImpl) StartGlobalTransaction(ttlHeight uint64, ttlTime string) error\n```\n\n```go\ntype Good struct {\n\tID          string `json:\"id\"`\n\tName        string `json:\"name\"`\n\tUnit        string `json:\"unit\"`\n\tImportLimit string `json:\"importLimit\"`\n\tExportLimit string `json:\"exportLimit\"`\n}\n```\n\n```go\ntype GoodContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *GoodContract) ClearData(ctx contractapi.TransactionContextInterface, startKey, endKey string) error\n```\nNot included in main feature, for simulation purpose\n\n```go\nfunc (c *GoodContract) CreateGood(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n\tname string,\n\tunit string,\n\timportLimit string,\n\texportLimit string) error\n```\n\n```go\nfunc (c *GoodContract) GetGoodById(ctx contractapi.TransactionContextInterface, id string) (*Good, error)\n```\n\n```go\nfunc (c *GoodContract) GoodExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (c *GoodContract) UpdateGood(ctx contractapi.TransactionContextInterface, id, importLimit, exportLimit string) error\n```\n\n```go\ntype Goods struct {\n\tName     string `json:\"name\"`\n\tCategory string `json:\"category\"`\n\tPrice    int    `json:\"price\"`\n\tWalletID string `json:\"walletId\"`\n}\n```\n\n```go\ntype GoodsAsset struct {\n\tGoodId   string `json:\"goodId\"`\n\tQuantity string `json:\"quantity\"`\n\tUnit     string `json:\"unit\"`\n}\n```\n\n```go\ntype GoodsKey struct {\n\tKey string\n\tIdx int\n}\n```\n\n```go\ntype GrantInfo struct {\n\tRequesterID string `json:\"requesterID\"`\n\tModelID     string `json:\"modelID\"`\n\tGranted     string `json:\"granted\"`\n}\n```\n\n```go\ntype Group struct {\n\t// contains filtered or unexported fields\n}\n```\nGroup of chain code functions\n\n```go\nfunc New(name string) *Group\n```\nNew group of chain code functions\n\n```go\nfunc (g *Group) After(middleware ...MiddlewareFunc) *Group\n```\n\n```go\nfunc (g *Group) Context(stub shim.ChaincodeStubInterface) Context\n```\nContext returns chain code invoke context  for provided path and stub\n\n```go\nfunc (g *Group) ContextHandler(path string, fn ContextHandlerFunc) *Group\n```\nContextHandler adds new context handler using presented path\n\n```go\nfunc (g *Group) Group(path string) *Group\n```\nGroup gets new group using presented path New group can be used as independent\n\n```go\nfunc (g *Group) Handle(stub shim.ChaincodeStubInterface) peer.Response\n```\nHandle used for using in CC Invoke function Must be called after adding new routes using Add function\n\n```go\nfunc (g *Group) HandleInit(stub shim.ChaincodeStubInterface) peer.Response\n```\nHandleInit handle chaincode init method\n\n```go\nfunc (g *Group) Init(handler HandlerFunc, middleware ...MiddlewareFunc) *Group\n```\n\n```go\nfunc (g *Group) Invoke(path string, handler HandlerFunc, middleware ...MiddlewareFunc) *Group\n```\nInvoke defines handler and middleware for invoke chaincode method  (state change,  need to send to orderer)\n\n```go\nfunc (g *Group) Pre(middleware ...ContextMiddlewareFunc) *Group\n```\n\n```go\nfunc (g *Group) Query(path string, handler HandlerFunc, middleware ...MiddlewareFunc) *Group\n```\nQuery defines handler and middleware for querying chaincode method (no state change, no send to orderer)\n\n```go\nfunc (g *Group) StubHandler(path string, fn StubHandlerFunc) *Group\n```\nStubHandler adds new stub handler using presented path\n\n```go\nfunc (g *Group) Use(middleware ...MiddlewareFunc) *Group\n```\nUse middleware function in chain code functions group\n\n```go\ntype HCAirTemperature struct {\n\tName           string `json:\"name\"`\n\tUnit           string `json:\"unit\"`\n\tAvgTemp        string `json:\"avgtemp\"`\n\tMaxTemp        string `json:\"maxtemp\"`\n\tMinTemp        string `json:\"mintemp\"`\n\tUpdateTimeUnix string `json:\"updatetimeunix\"`\n}\n```\n\n```go\ntype Handler interface {\n\tAccountingTx(ctx contractapi.TransactionContextInterface, transaction *entity.Transaction, mapBalanceToken map[string]*entity.BalanceCache) (*entity.Transaction, error)\n}\n```\n\n```go\ntype HandlerFunc func(Context) (interface{}, error)\n```\nHandlerFunc returns result as interface and error, this is converted to peer.Response via response.Create\n\n```go\ntype HandlerMeta struct {\n\tHdl  HandlerFunc\n\tType MethodType\n}\n```\n\n```go\ntype HashesEvent struct {\n\tCategory  string      `json:\"category\"`\n\tProductID string      `json:\"product_id\"`\n\tMulti     []Multihash `json:\"multi\"`\n}\n```\n\n```go\ntype HealthCheck interface {\n\t//CreateHealthCheck to create new ping msg in the system.\n\tCreateHealthCheck(ctx contractapi.TransactionContextInterface) (string, error)\n}\n```\n\n```go\ntype HealthCheckHandler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewHealthCheckHandler() HealthCheckHandler\n```\n\n```go\nfunc (hc *HealthCheckHandler) CreateHealthCheck(ctx contractapi.TransactionContextInterface) (string, error)\n```\nTransfer to transfer token between wallet.\n\n```go\ntype HealthInsuranceContract struct {\n\tcontractapi.Contract\n}\n```\nHealthInsuranceContract represents the smart contract for a health insurance policy\n\n```go\nfunc (c *HealthInsuranceContract) CreatePolicy(ctx contractapi.TransactionContextInterface, policyID string, sumAssured int, personName string, dateOfBirth string, gender string, startDate string, endDate string, coPay int, coverages string, benefits string, exclusions string) error\n```\nCreatePolicy creates a new health insurance policy\n\n```go\nfunc (c *HealthInsuranceContract) GetPolicy(ctx contractapi.TransactionContextInterface, policyID string) (*Policy, error)\n```\nGetPolicy retrieves the details of a health insurance policy based on the policy ID\n\n```go\nfunc (c *HealthInsuranceContract) SubmitClaim(ctx contractapi.TransactionContextInterface, policyID string, claimAmount int) error\n```\nSubmitClaim allows submitting a claim for a health insurance policy\n\n```go\nfunc (c *HealthInsuranceContract) UpdatePolicy(ctx contractapi.TransactionContextInterface, policyID string, sumAssured int, personName string, dateOfBirth string, gender string, startDate string, endDate string, coPay int, coverages string, benefits string, exclusions string) error\n```\nUpdatePolicy updates the details of a health insurance policy\n\n```go\ntype HeapSortHandler struct {\n}\n```\n\n```go\nfunc (self *HeapSortHandler) HeapSort(stub shim.ChaincodeStubInterface, A []int, l int, r int, sig string) pb.Response\n```\n\n```go\nfunc (self *HeapSortHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *HeapSortHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype HelesiSmartContract struct {\n\tcontractapi.Contract\n}\n```\nSmartContract provides functions for managing an Asset\n\n```go\nfunc (s *HelesiSmartContract) CreateRouteAsset(ctx contractapi.TransactionContextInterface, id string, routeData string) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\nfunc (s *HelesiSmartContract) CreateWasteAsset(ctx contractapi.TransactionContextInterface, id string, wasteData string) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\ntype HelloWorld struct{}\n```\n\n```go\nfunc (h *HelloWorld) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (h *HelloWorld) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype HelloWorldServiceChaincode struct {\n}\n```\nHelloWorldServiceChaincode implementation of Chaincode\n\n```go\nfunc (t *HelloWorldServiceChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit of the chaincode This function is called only one when the chaincode is instantiated. So the goal is to prepare the ledger to handle future requests.\n\n```go\nfunc (t *HelloWorldServiceChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke All future requests named invoke will arrive here.\n\n```go\ntype HighWaterMark struct {\n\tAmount string `json:\"amount\"`\n\tDate   string `json:\"date\"`\n}\n```\n\n```go\ntype History struct {\n\tId       string\n\tPId      string\n\tTtype    string\n\tDealWith string\n\tDateTime string\n\tTo_From  string\n\tDoctype  string\n}\n```\n\n```go\ntype HistoryEntry struct {\n\tTxId      string      `json:\"txId\"`\n\tTimestamp int64       `json:\"timestamp\"`\n\tIsDeleted bool        `json:\"isDeleted\"`\n\tValue     interface{} `json:\"value\"`\n}\n```\nHistoryEntry struct containing history information of a single entry\n\n```go\ntype HistoryEntryList []HistoryEntry\n```\nHistoryEntryList list of history entries\n\n```go\ntype HistoryItem struct {\n\tTxId      string\n\tEducation Education\n}\n```\n\n```go\ntype HistoryLog struct {\n\tId            string `json:\"id\"`\n\tCallType      string `json:\"callType\"`\n\tCallerIP      string `json:\"callerIP\"`\n\tCallerAddress string `json:\"callerAddress\"`\n\tMethodName    string `json:\"methodName\"`\n\tInputArgs     string `json:\"inputArgs\"`\n\tOutputArgs    string `json:\"outputArgs\"`\n\tDate          string `json:\"date\"`\n\tHour          string `json:\"hour\"`\n\tDay           string `json:\"day\"`\n\tMonth         string `json:\"month\"`\n\tYear          string `json:\"year\"`\n\tDistinctive   string `json:\"distinctive\"`\n}\n```\n\n```go\ntype HistoryNode struct {\n\tTimestamp string `json:\"timestamp\"`\n\tTxId      string `json:\"txId\"`\n}\n```\n\n```go\ntype HistoryQueryIteratorInterface interface {\n\tshim.HistoryQueryIteratorInterface\n}\n```\nHistoryQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by a history query.\n\n```go\ntype HistoryQueryResult struct {\n\tRecord    *Car      `json:\"record\"`\n\tTxId      string    `json:\"txId\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\tIsDelete  bool      `json:\"isDelete\"`\n}\n```\n\n```go\ntype HistoryResponse struct {\n\tResult   []map[string]interface{}  `json:\"result\"`\n\tMetadata *pb.QueryResponseMetadata `json:\"metadata\"`\n}\n```\n\n```go\nfunc History(stub *sw.StubWrapper, key string, resolve bool) (*HistoryResponse, errors.ICCError)\n```\n\n```go\ntype HistoryResult struct {\n\tKey       string `json:\"Key\"`\n\tTXID      string `json:\"txId\"`\n\tIsDelete  bool   `json:\"isDelete\"`\n\tRecord    *Car\n\tTimestamp int64 `json:\"timestamp\"`\n}\n```\nQueryResult structure used for handling result of query\n\n```go\ntype HttpMessage struct {\n\tMessage string      `json:\"message\"`\n\tData    interface{} `json:\"data\"`\n\tUuid    string      `json:\"uuid\"`\n\tEpochs  int         `json:\"epochs\"`\n\tIsSync  bool        `json:\"is_sync\"`\n}\n```\n\n```go\ntype Hub struct {\n}\n```\n\n```go\nfunc (h *Hub) Init(stub shim.ChaincodeStubInterface) (res peer.Response)\n```\n\n```go\nfunc (h *Hub) Invoke(stub shim.ChaincodeStubInterface) (res peer.Response)\n```\n\n```go\ntype Hyperparams struct {\n\tEpoch      int\n\tBatch_Size int\n\tLoss_Func  string\n}\n```\n\n```go\ntype IBCApp struct {\n\t*fabapp.IBCApp\n}\n```\n\n```go\nfunc (app *IBCApp) InitChainer(ctx sdk.Context, appStateBytes []byte) error\n```\n\n```go\ntype IConcreteFacadedService interface {\n\tHandleDetail(name base.MethodName, req blockchain.BaseFabricAfterValidModel) (ITxBaseResper, error2.IBaseError)\n\tSecurityCheckAndConvt(name base.MethodName, args []string) (blockchain.BaseFabricAfterValidModel, error2.IBaseError)\n\t// 获取管道ID,不同的channel 拥有着不同的账本,因此查询交易的时候,key也是不同的\n\t// 2020-01-05 update  需要修改返回值为[]string,存在一条链码部署在多个channel的可能\n\tGetChannelID() string\n}\n```\n\n```go\ntype IDStructure string\n```\n\n```go\nconst (\n\tEndDevice  IDStructure = \"End\"\n\tEdgeDevice IDStructure = \"Edge\"\n)\n```\n\n```go\ntype IFacadedHandler interface {\n\tHandler() BasePeerResponse\n}\n```\n\n```go\ntype IGCAdmin struct {\n\tId             string    `json:\"Id\"`\n\tParticipant_id string    `json:\"Participant_id\"`\n\tCreatedOn      time.Time `json:\"CreatedOn\"`\n\tCreatedBy      string    `json:\"CreatedBy\"`\n\tIsDelete       bool      `json:\"IsDelete\"`\n\tWalletid       string    `json:\"Walletid\"`\n\tUsername       string    `json:\"Username\"`\n\tPassword       string    `json:\"Password\"`\n\tNotes          string    `json:\"Notes\"`\n}\n```\n\n```go\ntype IGCAdminChaincode struct {\n}\n```\n\n```go\nfunc (cc *IGCAdminChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (cc *IGCAdminChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype IOHandler struct {\n}\n```\n\n```go\nfunc (self *IOHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *IOHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *IOHandler) RevertScan(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (self *IOHandler) Scan(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (self *IOHandler) Write(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\ntype Iao struct {\n\tAssetId             string\n\tAssetTokenId        string\n\tAssetTokenAmount    string\n\tStableTokenAmount   string\n\tStartDate           string\n\tEndDate             string\n\tRemainingAssetToken string\n\tStatus              iao.Status\n\tRate                int64\n\tBase                `mapstructure:\",squash\"`\n}\n```\n\n```go\nfunc NewIao(ctx ...contractapi.TransactionContextInterface) *Iao\n```\n\n```go\ntype IaoHandler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewIaoHandler() IaoHandler\n```\n\n```go\nfunc (i IaoHandler) BuyBatchAsset(ctx contractapi.TransactionContextInterface, batchAsset iaoDto.BuyBatchAsset) (string, error)\n```\n\n```go\nfunc (i IaoHandler) CancelIao(ctx contractapi.TransactionContextInterface, finishIao iaoDto.FinishIao) error\n```\n\n```go\nfunc (i IaoHandler) CreateAsset(ctx contractapi.TransactionContextInterface, asset iaoDto.CreateAsset) (string, error)\n```\n\n```go\nfunc (i IaoHandler) CreateIao(ctx contractapi.TransactionContextInterface, assetIao iaoDto.AssetIao) (string, error)\n```\n\n```go\nfunc (i IaoHandler) FinalizeIao(ctx contractapi.TransactionContextInterface, finishIao iaoDto.FinishIao) error\n```\n\n```go\nfunc (i IaoHandler) UpdateStatusIao(ctx contractapi.TransactionContextInterface, updateIao iaoDto.UpdateIao) error\n```\n\n```go\ntype Identity interface {\n\t// GetID Identifier, based on Subject and Issuer\n\tGetID() string\n\n\t// GetMSPID msp identifier\n\tGetMSPID() string\n\n\t//  GetSubject string representation of X.509 cert subject\n\tGetSubject() string\n\t//  GetIssuer string representation of X.509 cert issuer\n\tGetIssuer() string\n\n\t// GetPublicKey *rsa.PublicKey or *dsa.PublicKey or *ecdsa.PublicKey:\n\tGetPublicKey() interface{}\n\tGetPEM() []byte\n\tIs(i Identity) bool\n}\n```\nIdentity interface for invoker (tx creator) and grants, stored in chain code state\n\n```go\ntype IdentityService interface {\n\t// ID returns id for group of users/clients\n\tMspID() (string, error)\n\n\t// CreatorID returns id for concrete user/client\n\tCreatorID() (string, error)\n\n\t// Cert returns user/client cert\n\tCert() (*x509.Certificate, error)\n\n\t// CertID returns issue+subj of concrete user/client cert\n\tCertID() (string, error)\n\n\t// GetAttribute returns cert attribute\n\tGetAttribute(attrName string) (AttributeValue, error)\n}\n```\nIdentityService defines identity of the user/client.\n\n```go\nfunc NewIdentityServiceImpl(stub shim.ChaincodeStubInterface) IdentityService\n```\nNewIdentityServiceImpl returns default implementation\n\n```go\ntype Impl struct {\n\n\t// wrappers for state access methods\n\tPutState                                    func(string, []byte) error\n\tGetState                                    func(string) ([]byte, error)\n\tDelState                                    func(string) error\n\tGetStateByPartialCompositeKey               func(objectType string, keys []string) (shim.StateQueryIteratorInterface, error)\n\tGetStateByPartialCompositeKeyWithPagination func(objectType string, keys []string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n\n\tStateKeyTransformer        KeyTransformer\n\tStateKeyReverseTransformer KeyTransformer\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewState(stub shim.ChaincodeStubInterface, logger *zap.Logger) *Impl\n```\nNewState creates wrapper on shim.ChaincodeStubInterface for working with state\n\n```go\nfunc (s *Impl) Clone() State\n```\n\n```go\nfunc (s *Impl) Delete(entry interface{}) error\n```\nDelete entry from state\n\n```go\nfunc (s *Impl) DeletePrivate(collection string, entry interface{}) error\n```\nDeletePrivate entry from private state\n\n```go\nfunc (s *Impl) Exists(entry interface{}) (bool, error)\n```\nExists check entry with key exists in chaincode state\n\n```go\nfunc (s *Impl) ExistsPrivate(collection string, entry interface{}) (bool, error)\n```\nExistsPrivate check entry with key exists in chaincode private state\n\n```go\nfunc (s *Impl) Get(entry interface{}, config ...interface{}) (interface{}, error)\n```\nGet data by key from state, trying to convert to target interface\n\n```go\nfunc (s *Impl) GetHistory(entry interface{}, target interface{}) (HistoryEntryList, error)\n```\nGetHistory by key from state, trying to convert to target interface\n\n```go\nfunc (s *Impl) GetPrivate(collection string, entry interface{}, config ...interface{}) (interface{}, error)\n```\nGetPrivate data by key from private state, trying to convert to target interface\n\n```go\nfunc (s *Impl) Insert(entry interface{}, values ...interface{}) error\n```\nInsert value into chaincode state, returns error if key already exists\n\n```go\nfunc (s *Impl) InsertPrivate(collection string, entry interface{}, values ...interface{}) (err error)\n```\nInsertPrivate value into chaincode private state, returns error if key already exists\n\n```go\nfunc (s *Impl) Key(key interface{}) (*TransformedKey, error)\n```\n\n```go\nfunc (s *Impl) Keys(namespace interface{}) ([]string, error)\n```\n\n```go\nfunc (s *Impl) List(namespace interface{}, target ...interface{}) (interface{}, error)\n```\nList data from state using objectType prefix in composite key, trying to convert to target interface. Keys -  additional components of composite key\n\n```go\nfunc (s *Impl) ListPaginated(\n\tnamespace interface{}, pageSize int32, bookmark string, target ...interface{}) (\n\tinterface{}, *pb.QueryResponseMetadata, error)\n```\n\n```go\nfunc (s *Impl) ListPrivate(collection string, usePrivateDataIterator bool, namespace interface{}, target ...interface{}) (interface{}, error)\n```\nListPrivate data from private state using objectType prefix in composite key, trying to convert to target interface. Keys -  additional components of composite key If usePrivateDataIterator is true, used private state for iterate over objects if false, used public state for iterate over keys and GetPrivateData for each key\n\n```go\nfunc (s *Impl) Logger() *zap.Logger\n```\n\n```go\nfunc (s *Impl) Put(entry interface{}, values ...interface{}) error\n```\nPut data value in state with key, trying to convert data to \\[]byte\n\n```go\nfunc (s *Impl) PutPrivate(collection string, entry interface{}, values ...interface{}) (err error)\n```\nPutPrivate data value in private state with key, trying to convert data to \\[]byte\n\n```go\nfunc (s *Impl) Serializer() serialize.Serializer\n```\n\n```go\nfunc (s *Impl) UseKeyReverseTransformer(kt KeyTransformer)\n```\n\n```go\nfunc (s *Impl) UseKeyTransformer(kt KeyTransformer)\n```\n\n```go\nfunc (s *Impl) UseSerializer(serializer serialize.Serializer)\n```\n\n```go\ntype ImporterBasicData struct {\n\tImporter_id   string             `json:\"importer_ID\"`\n\tName          string             `json:\"name\"`\n\tAddress       string             `json:\"address\"`\n\tImporterSeeds []ImporterSeedData `json:\"importerSeeds\"`\n}\n```\n\n```go\ntype ImporterSeedData struct {\n\tBatch_id            string `json:\"batchId\"`\n\tImporterName        string `json:\"importerName\"`\n\tPlaceKeptImporter   string `json:\"placeKeptImporter\"`\n\tArrivalDateImporter string `json:\"arrivalDateImporter\"`\n}\n```\n\n```go\ntype InMetaData struct {\n\tFrom string `json:\"from\"`\n\tTo   string `json:\"to\"`\n\tCid  string `json:\"cid\"`\n}\n```\nCar describes basic details of what makes up a car\n\n```go\ntype Individual struct {\n\tID            string `json:\"id\"`            //个体ID\n\tName          string `json:\"name\"`          //个体名称\n\tPlatformOrgID string `json:\"platformOrgID\"` //平台机构ID PlatformOrg.ID\n\tStatus        int    `json:\"status\"`        //个体状态(启用/禁用)\n}\n```\n\\*\n\n\t个体属性\n\n```go\ntype IndividualChainCode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *IndividualChainCode) Create(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\\*\n\n\t新增个体数据\n\n```go\nfunc (t *IndividualChainCode) FindById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *IndividualChainCode) FindPrivateDataById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *IndividualChainCode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (t *IndividualChainCode) QueryIndividualSimpleWithPagination(ctx contractapi.TransactionContextInterface, queryString, bookmark string, pageSize int) ([]*QueryResult, error)\n```\n\n```go\nfunc (t *IndividualChainCode) Update(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\ntype IndividualPrivateData struct {\n\tID              string `json:\"id\"`              //个体ID Individual.ID\n\tCertificateNo   string `json:\"certificateNo\"`   //个体证件号\n\tCertificateType int    `json:\"certificateType\"` //个体证件类型 (身份证/港澳台证/护照/军官证)\n}\n```\n\\*\n\n\t个体属性私有数据属性\n\n```go\ntype IndividualTransientInput struct {\n\tID              string `json:\"id\"`              //个体ID\n\tName            string `json:\"name\"`            //个体名称\n\tPlatformOrgID   string `json:\"platformOrgID\"`   //平台机构ID PlatformOrg.ID\n\tCertificateNo   string `json:\"certificateNo\"`   //个体证件号\n\tCertificateType int    `json:\"certificateType\"` //个体证件类型 (身份证/港澳台证/护照/军官证)\n\tStatus          int    `json:\"status\"`          //个体状态(启用/禁用)\n}\n```\n\n```go\ntype Info struct {\n\tOwner       string `json:\"Owner\"`\n\tTokenName   string `json:\"TokenName\"`\n\tSymbol      string `json:\"Symbol\"`\n\tDecimal     string `json:\"Decimal\"`\n\tTotalSupply string `json:\"TotalSupply\"`\n}\n```\ninfo response struct\n\n```go\ntype InitChainer func(ctx sdk.Context, appStateBytes []byte) error\n```\n\n```go\ntype InsertTableRow_FailureOption uint8\n```\nThis is effectively a strongly typed enum declaration.\n\n```go\nconst (\n\tDONT_FAIL_UPON_OVERWRITE InsertTableRow_FailureOption = 0\n\tFAIL_BEFORE_OVERWRITE    InsertTableRow_FailureOption = 1\n\tFAIL_UNLESS_OVERWRITE    InsertTableRow_FailureOption = 2\n)\n```\n\n```go\ntype InspectorBasicData struct {\n\tInspector_id   string              `json:\"inspectorID\"`\n\tName           string              `json:\"name\"`\n\tAddress        string              `json:\"address\"`\n\tInspectorSeeds []InspectorSeedData `json:\"inspectorSeeds\"`\n}\n```\n\n```go\ntype InspectorSeedData struct {\n\tBatch_id                     string `json:\"batchId\"`\n\tInspectorName                string `json:\"inspectorName\"`\n\tQualityVerified              bool   `json:\"qualityVerified\"`\n\tPestisideVerified            bool   `json:\"pestisideVerified\"`\n\tFertilizerVerified           bool   `json:\"fertilizerVerified\"`\n\tProduceQuantityTypeAVerified bool   `json:\"produceQuantityTypeAVerified\"`\n\tProduceQuantityTypeBVerified bool   `json:\"produceQuantityTypeBVerified\"`\n\tProduceQuantityTypeCVerified bool   `json:\"produceQuantityTypeCVerified\"`\n\tInspectDate                  string `json:\"inspectDate\"`\n}\n```\n\n```go\ntype Insurance struct {\n\n\t// 保险单号\n\tKey string `json:\"key\"`\n\n\t// 保险名称\n\tInsuranceName string `json:\"insuranceName\"`\n\n\t// 客户姓名\n\tClientName string `json:\"clientName\"`\n\n\t// 客户年龄\n\tClientAge int32 `json:\"clientAge\"`\n\n\t// 客户性别\n\tClientGender string `json:\"clientGender\"`\n\n\t// 是否报案\n\tReported bool `json:\"reported\"`\n\n\t// 报案描述\n\tReportCaseDesc string `json:\"reportCaseDesc\"`\n\n\t// 是否赔偿\n\tCompensated bool `json:\"compensated\"`\n\n\t// 赔偿金额\n\tCompensationAmount float64 `json:\"compensationAmount\"`\n}\n```\nInsurance 保险数据结构\n\n```go\ntype InsuranceContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (ic *InsuranceContract) Compensate(ctx contractapi.TransactionContextInterface, key string, compensationAmount float64) (*Insurance, error)\n```\nCompensate 保险赔付款\n\n```go\nfunc (ic *InsuranceContract) CreateInsurance(ctx contractapi.TransactionContextInterface, key string, insuranceName string, clientName string, clientAge int32, clientGender string) (Insurance, error)\n```\nCreateInsurance 创建保险\n\n```go\nfunc (ic *InsuranceContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (ic *InsuranceContract) QueryInsurance(ctx contractapi.TransactionContextInterface, key string) (*Insurance, error)\n```\nQueryInsurance 查询保险\n\n```go\nfunc (ic *InsuranceContract) ReportCase(ctx contractapi.TransactionContextInterface, key string, reportCaseDesc string) (*Insurance, error)\n```\nReportCase 保险报案\n\n```go\ntype InterfaceMap map[string]interface{}\n```\nInterfaceMap map of interfaces\n\n```go\ntype Investor struct {\n\tDocType string `json:\"docType\"`\n\tID      string `json:\"id\"`\n\tName    string `json:\"name\"`\n}\n```\n\n```go\ntype Invocation struct {\n\tChannelID         string\n\tApplicationConfig channelconfig.Application // Note this may be nil\n\tStub              shim.ChaincodeStubInterface\n\tSCC               *SCC\n}\n```\n\n```go\nfunc (i *Invocation) ApproveChaincodeDefinitionForMyOrg(input *lb.ApproveChaincodeDefinitionForMyOrgArgs) (proto.Message, error)\n```\nApproveChaincodeDefinitionForMyOrg is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) CheckCommitReadiness(input *lb.CheckCommitReadinessArgs) (proto.Message, error)\n```\nCheckCommitReadiness is a SCC function that may be dispatched to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) CommitChaincodeDefinition(input *lb.CommitChaincodeDefinitionArgs) (proto.Message, error)\n```\nCommitChaincodeDefinition is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) GetInstalledChaincodePackage(input *lb.GetInstalledChaincodePackageArgs) (proto.Message, error)\n```\nGetInstalledChaincodePackage is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) InstallChaincode(input *lb.InstallChaincodeArgs) (proto.Message, error)\n```\nInstallChaincode is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) QueryApprovedChaincodeDefinition(input *lb.QueryApprovedChaincodeDefinitionArgs) (proto.Message, error)\n```\nQueryApprovedChaincodeDefinition is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) QueryApprovedChaincodeDefinitions(input *lb.QueryApprovedChaincodeDefinitionsArgs) (proto.Message, error)\n```\nQueryApprovedChaincodeDefinitions is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) QueryChaincodeDefinition(input *lb.QueryChaincodeDefinitionArgs) (proto.Message, error)\n```\nQueryChaincodeDefinition is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) QueryChaincodeDefinitions(input *lb.QueryChaincodeDefinitionsArgs) (proto.Message, error)\n```\nQueryChaincodeDefinitions is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) QueryInstalledChaincode(input *lb.QueryInstalledChaincodeArgs) (proto.Message, error)\n```\nQueryInstalledChaincode is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\nfunc (i *Invocation) QueryInstalledChaincodes(input *lb.QueryInstalledChaincodesArgs) (proto.Message, error)\n```\nQueryInstalledChaincodes is a SCC function that may be dispatched to which routes to the underlying lifecycle implementation.\n\n```go\ntype Invoice struct {\n\tInvoiceNo   string `json:\"invoiceNo\"`\n\tInvoiceDate string `json:\"invoiceDate\"`\n\tTotalAmount string `json:\"totalAmount\"`\n\tBankID      string `json:\"bankId\"`\n\tAccountNo   string `json:\"accountNo\"`\n\tURLFile     string `json:\"urlFile\"`\n}\n```\n\n```go\ntype InvokeFunc func(stub shim.ChaincodeStubInterface, args []string) cycoreutils.Response\n```\n\n```go\ntype InvokeMutator func(\n\tsdk sdk.SDK,\n\tctx context.Context,\n\tchannel string,\n\tchaincode string,\n\targs [][]byte,\n\tidentity msp.SigningIdentity,\n\ttransArgs map[string][]byte,\n\ttxWaiterType string) (res *peer.Response, chaincodeTx string, err error)\n```\n\n```go\ntype IssueChaincode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *IssueChaincode) Create(ctx contractapi.TransactionContextInterface, id string, name string) (string, error)\n```\n\\*\n\n\t新增下发机构共管账户私有数据\n\n```go\nfunc (t *IssueChaincode) FindById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *IssueChaincode) FindPrivateDataById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *IssueChaincode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype IssueOrg struct {\n\tID     string `json:\"id\"`     //下发机构ID\n\tName   string `json:\"name\"`   //下发机构名称\n\tStatus int    `json:\"status\"` //下发机构状态(启用/禁用)\n}\n```\n\\*\n\n\t下发机构属性\n\n```go\ntype IssueOrgFinancialAccountPrivateData struct {\n\tID                    string `json:\"id\"`                    //下发机构账户ID\n\tIssueOrgID            string `json:\"issueOrgID\"`            //下发机构ID IssueOrg.ID\n\tFinancialCode         string `json:\"financialCode\"`         //金融机构代码\n\tFinancialCardNo       string `json:\"financialCardNo\"`       //金融机构下发机构账号\n\tVoucherCurrentBalance int    `json:\"voucherCurrentBalance\"` //金融机构下发机构账户凭证余额\n\tAccStatus             int    `json:\"accStatus\"`             //系统账户状态(正常/冻结/禁用)\n}\n```\n\\*\n\n\t下发机构金融账户私有数据属性\n\n```go\ntype IssueOrgPrivateData struct {\n\tID        string  `json:\"id\"`        //下发机构ID IssueOrg.ID\n\tRateBasic float64 `json:\"rateBasic\"` //下发机构基础费率\n}\n```\n\\*\n\n\t下发机构私有数据属性\n\n```go\ntype Item struct {\n\tName   string `json:\"item\"`\n\tDest   string `json:\"dest\"`\n\tWeight int    `json:\"org\"`\n\tDays   int    `json:\"days\"`\n}\n```\n\n```go\ntype Iterator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (i Iterator) Close() error\n```\n\n```go\nfunc (i Iterator) HasNext() bool\n```\n\n```go\nfunc (i Iterator) Next(resolve bool) (*rmap.Rmap, error)\n```\nNext returns next asset, optionally resolves it if it returns (nil, nil), then the iterator is exhausted\n\n```go\ntype IteratorInterface interface {\n\tNext(resolve bool) (*rmap.Rmap, error)\n\tHasNext() bool\n\tClose() error\n}\n```\n\n```go\ntype JsonReturnedEntidade struct {\n\tKey    string   `json:\"Key\"`\n\tRecord Entidade `json:\"Record\"`\n}\n```\nArquivo JSON a ser retornado\n\n```go\ntype JsonReturnedVeiculo struct {\n\tKey    string  `json:\"Key\"`\n\tRecord Veiculo `json:\"Record\"`\n}\n```\n\n```go\ntype JsonUnmarshalError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e JsonUnmarshalError) Error() string\n```\n\n```go\ntype KVData struct {\n\tCollection string `json:\"collection\"` // optional\n\tKey        string `json:\"key\"`        // required\n\tValue      string `json:\"value\"`      // required for read, ignored for write\n}\n```\nKVData contains the data to read/write a key. Key is required. Value is required for write and ignored for read. When Collection is empty string \"\", it will read/write state data. When Collection is not empty string \"\", it will read/write private data in the collection.\n\n```go\ntype KVExcutor struct {\n}\n```\nKVExcutor is a chaincode implementation that takes a KVData array as read parameter and a a KVData array as write parameter, and then calls GetXXX/PutXXX methods to read and write state/collection data. Both input params should be marshalled json data and then base64 encoded.\n\n```go\nfunc (t *KVExcutor) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit initializes chaincode ===========================\n\n```go\nfunc (t *KVExcutor) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke - Our entry point for Invocations ========================================\n\n```go\ntype KVExecutor struct{}\n```\nKVExecutor is a chaincode implementation that takes a KVData array as read parameter and a KVData array as write parameter, and then calls GetXXX/PutXXX methods to read and write state/collection data. Both input params should be marshalled json data and then base64 encoded.\n\n```go\nfunc (t *KVExecutor) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit initializes chaincode ===========================\n\n```go\nfunc (t *KVExecutor) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke - Our entry point for Invocations ========================================\n\n```go\ntype KYC struct {\n\tcontractapi.Contract\n\tNextClientID int `default:\"1\"`\n\tNextBankID   int `default:\"1\"`\n}\n```\n\n```go\nfunc (s *KYC) CreateClient(ctx contractapi.TransactionContextInterface, clientDataJson string) (string, error)\n```\nCreateClient creates a new client and returns its ID\n\n```go\nfunc (s *KYC) GetAllClients(ctx contractapi.TransactionContextInterface) ([]CustomerData, error)\n```\nGetAllClients returns the data of all customers\n\n```go\nfunc (s *KYC) GetCallerId(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *KYC) GetClientData(ctx contractapi.TransactionContextInterface, clientId string, fields []string) (string, error)\n```\nGetClientData returns customer's data as requested by a bank\n\n```go\nfunc (s *KYC) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds initial customers and financial institutions to the ledger\n\n```go\nfunc (s *KYC) IsRegisteredBy(ctx contractapi.TransactionContextInterface, clientId string) (bool, error)\n```\nIsRegisteredBy returns {boolean} is who registered or not, return null if client does not exists or does not have data\n\n```go\ntype KelasKuliah struct {\n\tID  string `json:\"id\"`\n\tSKS int    `json:\"sks\"`\n}\n```\n\n```go\ntype KeyEndorsementPolicy struct {\n\tstatebased.KeyEndorsementPolicy\n}\n```\n\n```go\nfunc NewKeyEndorsementPolicy(clonedPolicy []byte) KeyEndorsementPolicy\n```\n\n```go\nfunc (t KeyEndorsementPolicy) AddOrgs(roleType msp.MSPRole_MSPRoleType, MSPIDs ...string)\n```\n\n```go\nfunc (t KeyEndorsementPolicy) Policy() []byte\n```\n\n```go\ntype KeyModification struct {\n\tTxId      string\n\tValue     []byte\n\tTimestamp time.Time\n\tIsDelete  bool\n}\n```\n\n```go\nfunc ParseHistory(iterator shim.HistoryQueryIteratorInterface, filter func(KeyModification) bool) []KeyModification\n```\n\n```go\ntype KeyPair struct {\n\tPublicKey []byte\n\tSecretKey []byte\n}\n```\nKeyPair is a pair of bfv public and private keys\n\n```go\ntype KeyValueHandler struct {\n}\n```\n\n```go\nfunc (self *KeyValueHandler) Get(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (self *KeyValueHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *KeyValueHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *KeyValueHandler) Set(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\ntype KvTest struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewKvTest() *KvTest\n```\n\n```go\nfunc (t *KvTest) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *KvTest) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype LNGDocument struct {\n\tDocumentID  string   `json:\"DocumentID\"`\n\tDocumentCID string   `json:\"DocumentCID\"`\n\tOwner       string   `json:\"Owner\"`\n\tAccessList  []string `json:\"AccessList\"`\n\tQR          string   `json:\"QR\"`\n\tTimestamp   string   `json:\"Timestamp\"`\n}\n```\nAsset describes basic details of what makes up a simple asset Insert struct field in alphabetic order =\u003e to achieve determinism across languages golang keeps the order when marshal to json but doesn't order automatically\n\n```go\nfunc DecodeAsset(data []byte) (LNGDocument, error)\n```\n\n```go\ntype LedgerGetter interface {\n\tGetLedger(cid string) ledger.PeerLedger\n}\n```\nLedgerGetter gets the PeerLedger associated with a channel.\n\n```go\ntype LedgerQuerier struct {\n\t// contains filtered or unexported fields\n}\n```\nLedgerQuerier implements the ledger query functions, including: - GetChainInfo returns BlockchainInfo - GetBlockByNumber returns a block - GetBlockByHash returns a block - GetTransactionByID returns a transaction\n\n```go\nfunc New(aclProvider aclmgmt.ACLProvider, ledgers LedgerGetter) *LedgerQuerier\n```\nNew returns an instance of QSCC. Typically this is called once per peer.\n\n```go\nfunc (e *LedgerQuerier) Chaincode() shim.Chaincode\n```\n\n```go\nfunc (e *LedgerQuerier) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit is called once per chain when the chain is created. This allows the chaincode to initialize any variables on the ledger prior to any transaction execution on the chain.\n\n```go\nfunc (e *LedgerQuerier) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke is called with args\\[0] contains the query function name, args\\[1] contains the chain ID, which is temporary for now until it is part of stub. Each function requires additional parameters as described below: # GetChainInfo: Return a BlockchainInfo object marshalled in bytes # GetBlockByNumber: Return the block specified by block number in args\\[2] # GetBlockByHash: Return the block specified by block hash in args\\[2] # GetTransactionByID: Return the transaction specified by ID in args\\[2]\n\n```go\nfunc (e *LedgerQuerier) Name() string\n```\n\n```go\ntype LegacySecurity struct {\n\tSupport      FilesystemSupport\n\tPackageCache *PackageCache\n}\n```\n\n```go\nfunc (ls *LegacySecurity) SecurityCheckLegacyChaincode(cd *ccprovider.ChaincodeData) error\n```\n\n```go\ntype LetterChaincode struct {\n}\n```\ncreate structure for the chaincode\n\n```go\nfunc (t *LetterChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\ninitialize the chaincode only call when the chaincode is instantiated\n\n```go\nfunc (t *LetterChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\ninvoke function is the basis of chaincode calls, call an argument\n\n```go\ntype Liability struct {\n\tObjectType     string  `json:\"objectType\"`\n\tPanNumber      string  `json:\"panNumber\"`\n\tEmail          string  `json:\"email\"`\n\tCorporateName  string  `json:\"corporateName\"`\n\tTotalLiability float64 `json:\"totalLiability\"`\n}\n```\n\n```go\ntype License struct {\n\tId               string    `json:\"Id\"`\n\tParticipant_id   string    `json:\"Participant_id\"`\n\tCreatedOn        time.Time `json:\"CreatedOn\"`\n\tCreatedBy        string    `json:\"CreatedBy\"`\n\tIsDelete         bool      `json:\"IsDelete\"`\n\tLicenseId        string    `json:\"LicenseId\"`\n\tLicenseKey       string    `json:\"LicenseKey\"`\n\tOrganisationName string    `json:\"OrganisationName\"`\n\tNotes            string    `json:\"Notes\"`\n}\n```\n\n```go\ntype LicenseChaincode struct {\n}\n```\n\n```go\nfunc (cc *LicenseChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (cc *LicenseChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype LinkedQueue struct {\n\t// contains filtered or unexported fields\n}\n```\nQue\n\n```go\nfunc (queue *LinkedQueue) Add(value interface{})\n```\nAdd\n\n```go\nfunc (queue *LinkedQueue) Peek() interface{}\n```\nPeek\n\n```go\nfunc (queue *LinkedQueue) Remove()\n```\nRemove\n\n```go\nfunc (queue *LinkedQueue) Size() int\n```\nGet size\n\n```go\ntype ListForSaleEvent struct {\n\tOperator  string\n\tSender    string\n\tId        string\n\tIsForSale bool\n\tPrice     uint64\n}\n```\n\n```go\ntype ListItem struct {\n\tStatus     string\n\tPrice      uint64\n\tTaxPercent uint64\n}\n```\nToken struct for marshal/unmarshal buy and sell listings\n\n```go\ntype LoanBuyerContract struct {\n\tcontractapi.Contract\n}\n```\nLoanBuyerContract for handling writing and reading from the world state\n\n```go\nfunc (sc *LoanBuyerContract) Get(ctx contractapi.TransactionContextInterface, key string) (*LoanBuyerObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *LoanBuyerContract) History(ctx contractapi.TransactionContextInterface, key string) ([]LoanBuyerHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *LoanBuyerContract) Put(ctx contractapi.TransactionContextInterface, loanbuyerID int, loanbuyername string, buyercategory string, adminuserID int, hqaddress string, location string, locationlat string, locationlong string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype LoanBuyerHistory struct {\n\tTxID      string        `json:\"txID\"`\n\tTimestamp time.Time     `json:\"timestamp\"`\n\tLoanBuyer *LoanBuyerObj `json:\"loanbuyer\"`\n}\n```\nLoanBuyerHistory ...\n\n```go\ntype LoanBuyerObj struct {\n\tLoanBuyerID   int       `json:\"loanbuyerID\"`\n\tLoanBuyerName string    `json:\"loanbuyername\"`\n\tBuyerCategory string    `json:\"buyercategory\"`\n\tAdminUserID   int       `json:\"adminuserID\"`\n\tHqAddress     string    `json:\"hqaddress\"`\n\tLocation      string    `json:\"location\"`\n\tLocationLat   string    `json:\"locationlat\"`\n\tLocationLong  string    `json:\"locationlong\"`\n\tCreated       time.Time `json:\"created\"`\n\tCreatedby     string    `json:\"createdby\"`\n}\n```\nLoanBuyerObj ...\n\n```go\ntype LoanContract struct {\n\tcontractapi.Contract\n}\n```\nLoanContract for handling writing and reading from the world state\n\n```go\nfunc (sc *LoanContract) Get(ctx contractapi.TransactionContextInterface, key string) (*LoanObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *LoanContract) History(ctx contractapi.TransactionContextInterface, key string) ([]LoanHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *LoanContract) Put(ctx contractapi.TransactionContextInterface, loanID int, propertyID int, userID int, buyerID int, repayment float64, loanstatus string, perfrating float64) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype LoanDoc struct {\n\tObjectType string      `json:\"docType\"` // default is 'LONDOC'\n\tDocID      string      `json:\"docID\"`\n\tData       LoanDocBase `json:\"data\"` // composition\n}\n```\nLoanDoc struct for chain state\n\n```go\nfunc (asset *LoanDoc) GetState(stub shim.ChaincodeStubInterface) pb.Response\n```\nGetState Read asset state from the ledger\n\n```go\nfunc (asset *LoanDoc) PutState(stub shim.ChaincodeStubInterface) pb.Response\n```\nPutState Write asset state to ledger\n\n```go\ntype LoanDocBase struct {\n\tDocID     int       `json:\"docID\"`\n\tLoanID    int       `json:\"loanID\"`\n\tDocName   string    `json:\"docname\"`\n\tDocDesc   string    `json:\"docdesc\"`\n\tDocLink   string    `json:\"doclink\"`\n\tCreated   time.Time `json:\"created\"`\n\tCreatedby string    `json:\"createdby\"`\n}\n```\nLoanDoc data structure\n\n```go\ntype LoanHistory struct {\n\tTxID      string    `json:\"txID\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\tLoan      *LoanObj  `json:\"loan\"`\n}\n```\nLoanHistory ...\n\n```go\ntype LoanMarketShareContract struct {\n\tcontractapi.Contract\n}\n```\nLoanMarketShareContract for handling writing and reading from the world state\n\n```go\nfunc (sc *LoanMarketShareContract) Get(ctx contractapi.TransactionContextInterface, key string) (*LoanMarketShareObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *LoanMarketShareContract) History(ctx contractapi.TransactionContextInterface, key string) ([]LoanMarketShareHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *LoanMarketShareContract) Put(ctx contractapi.TransactionContextInterface, shareID int, titleholder string, amount float64, repayments float64, statutes string, rating float64, status string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype LoanMarketShareHistory struct {\n\tTxID            string              `json:\"txID\"`\n\tTimestamp       time.Time           `json:\"timestamp\"`\n\tLoanMarketShare *LoanMarketShareObj `json:\"loanmarketshare\"`\n}\n```\nLoanMarketShareHistory ...\n\n```go\ntype LoanMarketShareObj struct {\n\tShareID     int       `json:\"shareID\"`\n\tTitleHolder string    `json:\"titleholder\"`\n\tAmount      float64   `json:\"amount\"`\n\tRepayments  float64   `json:\"repayments\"`\n\tStatutes    string    `json:\"statutes\"`\n\tRating      float64   `json:\"rating\"`\n\tStatus      string    `json:\"status\"`\n\tCreated     time.Time `json:\"created\"`\n\tCreatedby   string    `json:\"createdby\"`\n}\n```\nLoanMarketShareObj ...\n\n```go\ntype LoanObj struct {\n\tLoanID     int       `json:\"loanID\"`\n\tPropertyID int       `json:\"propertyID\"`\n\tUserID     int       `json:\"userID\"`\n\tBuyerID    int       `json:\"buyerID\"`\n\tRepayment  float64   `json:\"repayment\"`\n\tLoanStatus string    `json:\"loanstatus\"`\n\tPerfRating float64   `json:\"perfrating\"`\n\tCreated    time.Time `json:\"created\"`\n\tCreatedby  string    `json:\"createdby\"`\n}\n```\nLoanObj ...\n\n```go\ntype LoanRatingContract struct {\n\tcontractapi.Contract\n}\n```\nLoanRatingContract for handling writing and reading from the world state\n\n```go\nfunc (sc *LoanRatingContract) Get(ctx contractapi.TransactionContextInterface, key string) (*LoanRatingObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *LoanRatingContract) History(ctx contractapi.TransactionContextInterface, key string) ([]LoanRatingHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *LoanRatingContract) Put(ctx contractapi.TransactionContextInterface, ratingID int, loanID int, rating float64, ratingdesc string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype LoanRatingHistory struct {\n\tTxID       string         `json:\"txID\"`\n\tTimestamp  time.Time      `json:\"timestamp\"`\n\tLoanRating *LoanRatingObj `json:\"loanrating\"`\n}\n```\nLoanRatingHistory ...\n\n```go\ntype LoanRatingObj struct {\n\tRatingID   int       `json:\"ratingID\"`\n\tLoanID     int       `json:\"loanID\"`\n\tRating     float64   `json:\"rating\"`\n\tRatingDesc string    `json:\"ratingdesc\"`\n\tCreated    time.Time `json:\"created\"`\n\tCreatedby  string    `json:\"createdby\"`\n}\n```\nLoanRatingObj ...\n\n```go\ntype LocalModelMetaInfo struct {\n\tCurHashId       string     `json:\"curHashId\"`\n\tRound           int        `json:\"round\"`\n\tLocalModelBlock ModelBlock `json:\"localModelBlock\"`\n\n\tSparseVector []float32 `json:\"sparseVector\"`\n}\n```\nmeta infomation of local model in each organization k: 'orgX' v: LocalModelMetaInfo\n\n```go\ntype Location struct {\n\tLatitude  float64 `json:\"latitude\"`\n\tLongitude float64 `json:\"longitude\"`\n}\n```\nLocation TBF\n\n```go\ntype LocatorChaincodeStubInvoker struct {\n\tLocator    *ChaincodeLocator\n\tSerializer serialize.Serializer\n}\n```\n\n```go\nfunc (c *LocatorChaincodeStubInvoker) Query(\n\tstub shim.ChaincodeStubInterface, fn string, args []interface{}, target interface{}) (interface{}, error)\n```\n\n```go\ntype LockedContract struct {\n\t//Path           string  `json:\"path\"`\n\tXATransactionID string `json:\"xaTransactionID\"`\n}\n```\n\n```go\ntype Log struct {\n\tLogID       string `json:\"LogID\"`\n\tFileName    string `json:\"FileName\"`\n\tContentHash string `json:\"ContentHash\"`\n\tTimestamp   string `json:\"Timestamp\"`\n\tOwner       string `json:\"Owner\"`\n}\n```\n\n```go\ntype LogAsset struct {\n\tID        string `json:\"ID\"`\n\tAction    string `json:\"Action\"`\n\tPeer      string `json:\"Peer\"`\n\tJCAAnswer bool   `json:\"JCAAnswer\"`\n}\n```\n\n```go\ntype LoginInfo struct {\n\tIp        string `json:\"ip\"`\n\tUserAgent string `json:\"user_agent\"`\n\tDeviceID  string `json:\"device_id\"`\n\tTime      string `json:\"time\"`\n}\n```\n\n```go\ntype Lot struct {\n\tSGTIN           int     `json:\"sgtin\"` //Serialized Global Trade Item Number, GS1\n\tProduct         string  `json:\"product\"`\n\tQuantity        float64 `json:\"quantity\"`\n\tUnit            string  `json:\"unit\"`\n\tOrganisationID  string  `json:\"owner\"`\n\tStatus          string  `json:\"status\"`\n\tPrecessorLotIDs []int   `json:\"precessorLotIds\"`\n\tSuccessorLotIDs []int   `json:\"successorLotIds\"`\n\tSpaceID         string  `json:\"spaceId\"` //z. B. Milchsammelwagen, Lager\n\tMhd             string  `json:\"mhd\"`\n}\n```\nLot is he central element in this chaincode. It respresents an actual physical product.\n\n```go\ntype MKContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *MKContract) CreateMk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *MKContract) DeleteMk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *MKContract) GetAllMk(ctx contractapi.TransactionContextInterface) ([]*MataKuliah, error)\n```\n\n```go\nfunc (s *MKContract) GetMkById(ctx contractapi.TransactionContextInterface) (*MataKuliah, error)\n```\n\n```go\nfunc (t *MKContract) GetMkByIdSp(ctx contractapi.TransactionContextInterface) ([]*MataKuliah, error)\n```\n\n```go\nfunc (s *MKContract) UpdateMk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype MSPIDsGetter func(string) []string\n```\nMSPsIDGetter is used to get the MSP IDs for a channel.\n\n```go\ntype MSPManagerGetter func(string) msp.MSPManager\n```\nMSPManagerGetter used to get the MSP Manager for a channel.\n\n```go\ntype Machining struct {\n\t//加工ID\n\tMachiningId string `json:\"machining_id\"`\n\t//原料厂商负责人\n\tLeader string `json:\"leader\"`\n\t//货物ID\n\tCropsId string `json:\"crops_id\"`\n\t//厂商负责人tel\n\tLeaderTel string `json:\"leader_tel\"`\n\t//厂商名称\n\tFactoryName string `json:\"factory_name\"`\n\t//检测结果\n\tTestingResult string `json:\"testing_result\"`\n\t//入库时间\n\tInFactoryTime string `json:\"in_factory_time\"`\n\t//出库时间\n\tOutFactoryTime string `json:\"out_factory_time\"`\n\t//质检过程图片\n\tTestingPhotoUrl string `json:\"testing_photo_url\"`\n\t//备注\n\tRemarks string `json:\"remarks\"`\n}\n```\nMachining 加工信息\n\n```go\ntype Malware struct {\n\tMalwareID         string `json:\"malwareID\"`\n\tInfectionDuration string `json:\"duration\"`\n\tDeviceID          string `json:\"deviceID\"`\n\tChecksum          string `json:\"checksum\"`\n}\n```\n\n```go\ntype ManagerImpl struct {\n\tStub           shim.ChaincodeStubInterface\n\tClientIdentity cid.ClientIdentity\n\tWriteKeySet    map[string][]string\n}\n```\n\n```go\nfunc (lockManager *ManagerImpl) GetStateMaybeLocked(key string) ([]byte, error)\n```\n\n```go\nfunc (lockManager *ManagerImpl) PutLockedStateWithBranchLock(key string, value []byte, primaryNetwork string, primaryChain string, primaryTxID string) error\n```\n\n```go\nfunc (lockManager *ManagerImpl) PutLockedStateWithPrimaryLock(key string, value []byte) error\n```\n\n```go\nfunc (lockManager *ManagerImpl) PutStateMaybeLocked(key string, value []byte) error\n```\n\n```go\ntype MapLedgerShim map[string][]byte\n```\nMapLedgerShim is a ledger 'implementation' based on a map, useful for pre-populating a ledger with desired serialized data.\n\n```go\nfunc (m MapLedgerShim) DelState(key string) error\n```\n\n```go\nfunc (m MapLedgerShim) GetState(key string) (value []byte, err error)\n```\n\n```go\nfunc (m MapLedgerShim) GetStateHash(key string) (value []byte, err error)\n```\n\n```go\nfunc (m MapLedgerShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\n\n```go\nfunc (m MapLedgerShim) PutState(key string, value []byte) error\n```\n\n```go\ntype Marble struct {\n\tObjectType string `json:\"docType\"` //docType is used to distinguish the various types of objects in state database\n\tName       string `json:\"name\"`    //the fieldtags are needed to keep case from bouncing around\n\tColor      string `json:\"color\"`\n\tSize       int    `json:\"size\"`\n\tOwner      string `json:\"owner\"`\n}\n```\n\n```go\ntype MarblePrivateDetails struct {\n\tObjectType string `json:\"docType\"` //docType is used to distinguish the various types of objects in state database\n\tName       string `json:\"name\"`    //the fieldtags are needed to keep case from bouncing around\n\tPrice      int    `json:\"price\"`\n}\n```\n\n```go\ntype MarketContract struct {\n\tcontractapi.Contract\n\tnonce.INonce\n}\n```\nMarketContract implements IMarket interface\n\n```go\nfunc NewMarketContract(nonceContract nonce.INonce) *MarketContract\n```\nNewMarketContract creates a new instance of MarketContract with the specified nonce.\n\n```go\nfunc (lc *MarketContract) ApplyLicense(ctx context.ContextInterface, msg context.Message, repoID string, componentID string) (string, error)\n```\nApplyLicense applies a license to a component for a specific repository. It returns the license ID if successful, and an error otherwise.\n\n```go\nfunc (lc *MarketContract) ConsumeLicense(ctx context.ContextInterface, msg context.Message, licenseID string) error\n```\n\n```go\nfunc (lc *MarketContract) CreateRepo(ctx context.ContextInterface, msg context.Message, url string,\n) (string, error)\n```\nCreateRepo creates a new Repository object and stores it on the ledger.\n\nctx: is the context interface for calling chaincode functions, msg is the message: being processed, and url is the URL for the new repository. The function returns the ID of the new repository and an error, if any.\n\n```go\nfunc (lc *MarketContract) EndorseComponent(ctx context.ContextInterface, msg context.Message, repoID string, swUUID string, version string) error\n```\nEndorseComponent endorses a specific version of a component in a repository. It checks if the caller is the owner of the repository and if the version hasn't been endorsed yet. If the checks pass, it sets the SignedByRepoOwner flag to true for the selected version and emits an EndorseComponent event.\n\n```go\nfunc (lc *MarketContract) GetComponents(ctx context.ContextInterface, repoID string) ([]Component, error)\n```\nGetComponents retrieves all components from a repository using the provided context and repository ID.\n\n```go\nfunc (lc *MarketContract) GetLicenses(ctx context.ContextInterface) ([]License, error)\n```\nGetLicenses returns a list of all licenses stored on the ledger. It takes a context interface as an argument and returns a slice of Licenses and an error, if any.\n\n```go\nfunc (lc *MarketContract) GetRepos(ctx context.ContextInterface) ([]Repository, error)\n```\nGetRepos gets all the repositories from the state by iterating over all the composite keys with a prefix of \"repo\". It returns a slice of Repositories or an error if any occurred.\n\nctx: the context of the function with a GetStub() method that returns an interface that can read/write to the state database. (\\[]Repository, error): a slice of Repositories and/or an error if any occurred.\n\n```go\nfunc (lc *MarketContract) Initialize(ctx context.ContextInterface) error\n```\n\n```go\nfunc (lc *MarketContract) IssueLicense(ctx context.ContextInterface, msg context.Message, licenseID string, encActivationCode string) error\n```\nIssueLicense issues a license for a component\n\n```go\nfunc (lc *MarketContract) PublishComponent(ctx context.ContextInterface, msg context.Message, repoID string, swUUID string, version string) (string, error)\n```\nPublishComponent publishes a component with a specific version to a repository. Only when repo owner verified this swid, the component can be really published.\n\nParameters:\n\n  - ctx: the context interface.\n  - msg: the context message.\n  - repoID: the ID of the repository to which the component belongs.\n  - swUUID: the ID of the component to be published.\n  - version: the version of the component to be published.\n\nReturns:\n\n  - string: an empty string.\n  - error: an error if there is an issue with creating a composite key.\n\n```go\nfunc (lc *MarketContract) RejectLicense(ctx context.ContextInterface, msg context.Message, licenseID string) error\n```\n\n```go\nfunc (lc *MarketContract) UpdateRepo(\n\tctx context.ContextInterface, msg context.Message,\n\trepoID string, newUrl string,\n) error\n```\nUpdateRepo updates the repository URL for the given repoID.\n\nctx: the context interface. msg: the message context. repoID: the ID of the repository to be updated. newUrl: the new URL to replace the current one. error: returns an error if the function fails to update the repository.\n\n```go\ntype MarshalPrivState interface {\n\t// WriteState .\n\tWritePrivState(collection, key string, value interface{}) error\n\t// ReadState .\n\tReadPrivState(collection, key string, value interface{}) error\n}\n```\nMarshalPrivState .\n\n```go\ntype MarshalQueryState interface {\n\tGetAllStates(query string, factFunc FactoryFunc, visitFunc VisitFunc) error\n}\n```\nMarshalQueryState .\n\n```go\ntype MarshalState interface {\n\t// WriteState .\n\tWriteState(key string, value interface{}) error\n\t// ReadState .\n\tReadState(key string, value interface{}) error\n}\n```\nMarshalState .\n\n```go\ntype MarshalStateImpl struct {\n\tshim.ChaincodeStubInterface\n\t// contains filtered or unexported fields\n}\n```\nMarshalStateImpl .\n\n```go\nfunc (stub *MarshalStateImpl) GetAllStates(query string, factFunc FactoryFunc, visitFunc VisitFunc) error\n```\nGetAllStates .\n\n```go\nfunc (stub *MarshalStateImpl) ReadPrivState(collection, key string, value interface{}) error\n```\nReadPrivState .\n\n```go\nfunc (stub *MarshalStateImpl) ReadState(key string, value interface{}) error\n```\nReadState .\n\n```go\nfunc (stub *MarshalStateImpl) WritePrivState(collection, key string, value interface{}) error\n```\nWritePrivState .\n\n```go\nfunc (stub *MarshalStateImpl) WriteState(key string, value interface{}) error\n```\nWriteState .\n\n```go\ntype MarshalStub interface {\n\tshim.ChaincodeStubInterface\n\n\tMarshalQueryState\n\tMarshalState\n\tMarshalPrivState\n}\n```\nMarshalStub .\n\n```go\nfunc NewMarshalStateImpl(stub shim.ChaincodeStubInterface,\n\tmarshalFunc utils.MarshalFunc, unmarshalFunc utils.UnmarshalFunc) MarshalStub\n```\nNewMarshalStateImpl .\n\n```go\ntype MataKuliah struct {\n\tID                string `json:\"id\"`\n\tIdSP              string `json:\"idSp\"`\n\tIdSMS             string `json:\"idSms\"`\n\tNamaMK            string `json:\"namaMk\"`\n\tKodeMK            string `json:\"kodeMk\"`\n\tSKS               int    `json:\"sks\"`\n\tJenjangPendidikan string `json:\"jenjangPendidikan\"`\n}\n```\n\n```go\ntype MedicalChainCode struct {\n}\n```\n\n```go\nfunc (m *MedicalChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (m *MedicalChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype Medicine struct {\n\tId        string\n\tName      string\n\tPCompany  string\n\tPdate     string\n\tExpdate   string\n\tCurrstage string\n\tOwnerId   string\n\tPath      string\n\tType      string\n\tImg_path  string\n}\n```\n\n```go\ntype Medico struct {\n\tNome string `json:\"nome\"`\n}\n```\n\n```go\ntype MeowType struct {\n\tType   string `json:\"type\"`\n\tAmount uint32 `json:\"amount\"`\n}\n```\nMeowType ...\n\n```go\ntype MergeSortRecHandler struct {\n}\n```\n\n```go\nfunc (self *MergeSortRecHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *MergeSortRecHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *MergeSortRecHandler) MergeSortRec(A []int, l int, r int)\n```\n\n```go\ntype Message struct {\n\tObjectType string      `json:\"docType\"` // default is 'MESSAG'\n\tMessageID  string      `json:\"messageID\"`\n\tData       MessageBase `json:\"data\"` // composition\n}\n```\nMessage struct for chain state\n\n```go\nfunc (asset *Message) GetState(stub shim.ChaincodeStubInterface) pb.Response\n```\nGetState Read asset state from the ledger\n\n```go\nfunc (asset *Message) PutState(stub shim.ChaincodeStubInterface) pb.Response\n```\nPutState Write asset state to ledger\n\n```go\ntype MessageBase struct {\n\tMessageID   int       `json:\"messageID\"`\n\tFrom        string    `json:\"from\"`\n\tTo          string    `json:\"to\"`\n\tSubject     string    `json:\"subject\"`\n\tMessage     string    `json:\"message\"`\n\tMessageDate string    `json:\"messagedate\"`\n\tCreated     time.Time `json:\"created\"`\n\tCreatedby   string    `json:\"createdby\"`\n}\n```\nMessageBase data structure\n\n```go\ntype Metadata struct {\n\tId                string `json:\"id\"`                 // Id interno do NFT no sistema\n\tStatus            string `json:\"status\"`             // Ativo, bloqueado\n\tLandOwner         string `json:\"land_owner\"`         // Dono da terra\n\tLandArea          string `json:\"land_area\"`          // Área em  hectares\n\tPhyto             string `json:\"phyto\"`              // Fitofisiologia\n\tGeolocation       string `json:\"geolocation\"`        //Coordenadas da área {(x1,y1),(x2,y2})}\n\tCompensationOwner string `json:\"compensation_owner\"` // Detentor do direito de compensacao (Account ID ou Token ID)\n\tCompensationState string `json:\"compensation_state\"` // Compensado, Não compensado\n\tMintSylvas        string `json:\"mint_sylvas\"`        // Booleano referente ao direito de gerar FTs\n\tMintRate          string `json:\"mint_rate\"`          // Potencial de geracao com base no tipo de area\n\tCertificate       string `json:\"certificate\"`        // Comprovante emitido pelo órgão governamental permitindo a ativação do NFT.\n\tNFTType           string `json:\"nft_type\"`           // Tipo de nft (preservação/corte)\n\tCustomNotes       string `json:\"custom_notes\"`       // Demais anotações\n\n}\n```\n\n```go\ntype Meter struct {\n\tVehicle      string    `json:\"VEHICLE_TYPE\"`\n\tImbalanceApv []string  `json:\"IMBALANCE_APPROVAL\"`\n\tPbApv        string    `json:\"PARK_BRAKE_APPROVAL\"`\n\tOvrlApv      string    `json:\"OVERALL_EFFICIENCY_APPROVAL\"`\n\tTime         time.Time `json: \"TEST_TIME\"`\n}\n```\nMeter constitutes our key|value struct (digital asset) and implements a single record to manage the meter public key and measures. All blockchain transactions operates with this type. IMPORTANT: all the field names must start with upper case\n\n```go\ntype MethodType string\n```\n\n```go\nconst (\n\tInitFunc                = `init`\n\tMethodInvoke MethodType = `invoke`\n\tMethodQuery  MethodType = `query`\n)\n```\n\n```go\ntype Metrics struct {\n\tTrain_Loss float64\n\tTrain_Acc  float64\n\tTest_Loss  float64\n\tTest_Acc   float64\n}\n```\n\n```go\ntype MiddlewareFunc func(HandlerFunc, ...int) HandlerFunc\n```\nMiddlewareFunc middleware for HandlerFunc\n\n```go\ntype MilkReport struct {\n\tMilkID     string `json:\"milk_id\"`\n\tCowID      string `json:\"cow_id\"`\n\tMachineID  string `json:\"machine_id\"`\n\tReportData string `json:\"report_data\"`\n}\n```\n\n```go\ntype MineTrace struct {\n\tId            string    `json:\"Id\"`\n\tCreatedOn     time.Time `json:\"CreatedOn\"`\n\tCreatedBy     string    `json:\"CreatedBy\"`\n\tIsDelete      bool      `json:\"IsDelete\"`\n\tIsHidden      bool      `json:\"IsHidden\"`\n\tIsProcessed   bool      `json:\"IsProcessed\"`\n\tState         string    `json:\"State\"`\n\tCoordinates   string    `json:\"Coordinates\"`\n\tSeverity      string    `json:\"Severity\"`\n\tType          string    `json:\"Type\"`\n\tMineFoundDate string    `json:\"MineFoundDate\"`\n\tDescription   string    `json:\"Description\"`\n}\n```\n\n```go\ntype MineTraceChaincode struct {\n}\n```\n\n```go\nfunc (cc *MineTraceChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (cc *MineTraceChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype MockAgreementList struct {\n\tmock.Mock\n}\n```\n\\######### HELPERS #########\n\n```go\nfunc (mpl *MockAgreementList) AddAgreement(agree *Agreement) error\n```\n\n```go\nfunc (mpl *MockAgreementList) GetAgreement(issuerOrg string, issuerId string, agreementnumber string) (*Agreement, error)\n```\n\n```go\nfunc (mpl *MockAgreementList) GetAgreementByOrg(issuerOrg string) ([]*Agreement, error)\n```\n\n```go\nfunc (mpl *MockAgreementList) GetAgreementByOrgAndId(issuerOrg, issuerId string) ([]*Agreement, error)\n```\n\n```go\nfunc (mpl *MockAgreementList) GetAgreementByRange(startKey, endKey string) ([]*Agreement, error)\n```\n\n```go\nfunc (mpl *MockAgreementList) GetAllAgreement() ([]*Agreement, error)\n```\n\n```go\nfunc (mpl *MockAgreementList) UpdateAgreement(agree *Agreement) error\n```\n\n```go\ntype MockChaincodeStub struct {\n\n\t// A nice name that can be used for logging\n\tName string\n\n\t// State keeps name value pairs\n\tState map[string][]byte\n\n\t// Keys stores the list of mapped values in lexical order\n\tKeys *list.List\n\n\t// registered list of other MockChaincodeStub chaincodes that can be called from this MockChaincodeStub\n\tInvokables map[string]*MockChaincodeStub\n\n\t// stores a transaction uuid while being Invoked / Deployed\n\t// TODO if a chaincode uses recursion this may need to be a stack of TxIDs or possibly a reference counting map\n\tTxID string\n\n\tTxTimestamp *timestamp.Timestamp\n\n\t// stores a channel ID of the proposal\n\tChannelID string\n\n\tPvtState map[string]map[string][]byte\n\n\t// stores per-key endorsement policy, first map index is the collection, second map index is the key\n\tEndorsementPolicies map[string]map[string][]byte\n\n\t// channel to store ChaincodeEvents\n\tChaincodeEventsChannel chan *pb.ChaincodeEvent\n\n\tCreator []byte\n\n\tDecorations map[string][]byte\n\t// contains filtered or unexported fields\n}\n```\nMockChaincodeStub implements the ChaincodeStubInterface for unit testing chaincode.\n\n```go\nfunc NewMockChaincodeStub(name string, cc shim.Chaincode, transient map[string][]byte) *MockChaincodeStub\n```\nNewMockChaincodeStub Constructor to initialise the internal State map\n\n```go\nfunc (m *MockChaincodeStub) CreateCompositeKey(objectType string, attributes []string) (string, error)\n```\nCreateCompositeKey combines the list of attributes to form a composite key.\n\n```go\nfunc (m *MockChaincodeStub) DelPrivateData(collection string, key string) error\n```\nDelPrivateData ...\n\n```go\nfunc (m *MockChaincodeStub) DelState(key string) error\n```\nDelState removes the specified \\`key\\` and its value from the ledger.\n\n```go\nfunc (m *MockChaincodeStub) GetArgs() [][]byte\n```\nGetArgs ...\n\n```go\nfunc (m *MockChaincodeStub) GetArgsSlice() ([]byte, error)\n```\nGetArgsSlice Not implemented ...\n\n```go\nfunc (m *MockChaincodeStub) GetBinding() ([]byte, error)\n```\nGetBinding Not implemented ...\n\n```go\nfunc (m *MockChaincodeStub) GetChannelID() string\n```\nGetChannelID ...\n\n```go\nfunc (m *MockChaincodeStub) GetCreator() ([]byte, error)\n```\nGetCreator ...\n\n```go\nfunc (m *MockChaincodeStub) GetDecorations() map[string][]byte\n```\nGetDecorations ...\n\n```go\nfunc (m *MockChaincodeStub) GetFunctionAndParameters() (function string, params []string)\n```\nGetFunctionAndParameters ...\n\n```go\nfunc (m *MockChaincodeStub) GetHistoryForKey(key string) (shim.HistoryQueryIteratorInterface, error)\n```\nGetHistoryForKey function can be invoked by a chaincode to return a history of key values across time. GetHistoryForKey is intended to be used for read-only queries.\n\n```go\nfunc (m *MockChaincodeStub) GetPrivateData(collection string, key string) ([]byte, error)\n```\nGetPrivateData ...\n\n```go\nfunc (m *MockChaincodeStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (shim.StateQueryIteratorInterface, error)\n```\nGetPrivateDataByPartialCompositeKey ...\n\n```go\nfunc (m *MockChaincodeStub) GetPrivateDataByRange(collection, startKey, endKey string) (shim.StateQueryIteratorInterface, error)\n```\nGetPrivateDataByRange ...\n\n```go\nfunc (m *MockChaincodeStub) GetPrivateDataHash(collection, key string) ([]byte, error)\n```\nGetPrivateDataHash ...\n\n```go\nfunc (m *MockChaincodeStub) GetPrivateDataQueryResult(collection, query string) (shim.StateQueryIteratorInterface, error)\n```\nGetPrivateDataQueryResult ...\n\n```go\nfunc (m *MockChaincodeStub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error)\n```\nGetPrivateDataValidationParameter ...\n\n```go\nfunc (m *MockChaincodeStub) GetQueryResult(query string) (shim.StateQueryIteratorInterface, error)\n```\nGetQueryResult function can be invoked by a chaincode to perform a rich query against state database.  Only supported by state database implementations that support rich query.  The query string is in the syntax of the underlying state database. An iterator is returned which can be used to iterate (next) over the query result set\n\n```go\nfunc (m *MockChaincodeStub) GetQueryResultWithPagination(query string, pageSize int32,\n\tbookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n```\nGetQueryResultWithPagination ...\n\n```go\nfunc (m *MockChaincodeStub) GetSignedProposal() (*pb.SignedProposal, error)\n```\nGetSignedProposal ...\n\n```go\nfunc (m *MockChaincodeStub) GetState(key string) (value []byte, err error)\n```\nGetState retrieves the value for a given key from the ledger\n\n```go\nfunc (m *MockChaincodeStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (shim.StateQueryIteratorInterface, error)\n```\nGetStateByPartialCompositeKey function can be invoked by a chaincode to query the state based on a given partial composite key. This function returns an iterator which can be used to iterate over all composite keys whose prefix matches the given partial composite key. This function should be used only for a partial composite key. For a full composite key, an iter with empty response would be returned.\n\n```go\nfunc (m *MockChaincodeStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string,\n\tpageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n```\nGetStateByPartialCompositeKeyWithPagination ...\n\n```go\nfunc (m *MockChaincodeStub) GetStateByRange(startKey, endKey string) (shim.StateQueryIteratorInterface, error)\n```\nGetStateByRange ...\n\n```go\nfunc (m *MockChaincodeStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32,\n\tbookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n```\nGetStateByRangeWithPagination ...\n\n```go\nfunc (m *MockChaincodeStub) GetStateValidationParameter(key string) ([]byte, error)\n```\nGetStateValidationParameter ...\n\n```go\nfunc (m *MockChaincodeStub) GetStringArgs() []string\n```\nGetStringArgs ...\n\n```go\nfunc (m *MockChaincodeStub) GetTransient() (map[string][]byte, error)\n```\nGetTransient ...\n\n```go\nfunc (m *MockChaincodeStub) GetTxID() string\n```\nGetTxID ...\n\n```go\nfunc (m *MockChaincodeStub) GetTxTimestamp() (*timestamp.Timestamp, error)\n```\nGetTxTimestamp ...\n\n```go\nfunc (m *MockChaincodeStub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response\n```\nInvokeChaincode locally calls the specified chaincode \\`Invoke\\`. E.g. stub1.InvokeChaincode(\"othercc\", funcArgs, channel) Before calling this make sure to create another MockChaincodeStub stub2, call shim.NewMockChaincodeStub(\"othercc\", Chaincode) and register it with stub1 by calling stub1.MockPeerChaincode(\"othercc\", stub2, channel)\n\n```go\nfunc (m *MockChaincodeStub) MockInvoke(uuid string, args [][]byte) pb.Response\n```\nMockInvoke Invoke this chaincode, also starts and ends a transaction.\n\n```go\nfunc (m *MockChaincodeStub) MockTransactionEnd(uuid string)\n```\nMockTransactionEnd End a mocked transaction, clearing the UUID.\n\n```go\nfunc (m *MockChaincodeStub) MockTransactionStart(txid string)\n```\nMockTransactionStart Used to indicate to a chaincode that it is part of a transaction. This is important when chaincodes invoke each other. MockChaincodeStub doesn't support concurrent transactions at present.\n\n```go\nfunc (m *MockChaincodeStub) PutPrivateData(collection string, key string, value []byte) error\n```\nPutPrivateData ...\n\n```go\nfunc (m *MockChaincodeStub) PutState(key string, value []byte) error\n```\nPutState writes the specified \\`value\\` and \\`key\\` into the ledger.\n\n```go\nfunc (m *MockChaincodeStub) SetArgs(args [][]byte)\n```\nSetArgs is a function to manually set the args of a function call since this is not done automatically in the MockChaincodeStub\n\n```go\nfunc (m *MockChaincodeStub) SetEvent(name string, payload []byte) error\n```\nSetEvent ...\n\n```go\nfunc (m *MockChaincodeStub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error\n```\nSetPrivateDataValidationParameter ...\n\n```go\nfunc (m *MockChaincodeStub) SetStateValidationParameter(key string, ep []byte) error\n```\nSetStateValidationParameter ...\n\n```go\nfunc (m *MockChaincodeStub) SetTransient(transient map[string][]byte)\n```\nSetTransient can be used to change the transient data between transactions while maintaining the world state\n\n```go\nfunc (m *MockChaincodeStub) SetTxTimestamp(t time.Time)\n```\nSetTxTimestamp ...\n\n```go\nfunc (m *MockChaincodeStub) SplitCompositeKey(compositeKey string) (string, []string, error)\n```\nSplitCompositeKey splits the composite key into attributes on which the composite key was formed.\n\n```go\ntype MockClientIdentity struct {\n\t// contains filtered or unexported fields\n}\n```\nMockClientIdentity Implements the ClientIdentity interface for unit testing chaincode.\n\n```go\nfunc NewMockClientIdentity(stub shim.ChaincodeStubInterface, mspID string, cert *x509.Certificate, attrs *attrmgr.Attributes) *MockClientIdentity\n```\n\n```go\nfunc (m *MockClientIdentity) AssertAttributeValue(string, string) error\n```\n\n```go\nfunc (m *MockClientIdentity) GetAttributeValue(string) (string, bool, error)\n```\n\n```go\nfunc (m *MockClientIdentity) GetID() (string, error)\n```\n\n```go\nfunc (m *MockClientIdentity) GetMSPID() (string, error)\n```\n\n```go\nfunc (m *MockClientIdentity) GetX509Certificate() (*x509.Certificate, error)\n```\n\n```go\ntype MockContext struct {\n\tcontractapi.TransactionContextInterface\n\tmock.Mock\n}\n```\n\n```go\nfunc (mc *MockContext) GetStub() shim.ChaincodeStubInterface\n```\n\n```go\ntype MockEmissionsCC struct{}\n```\n\n```go\nfunc (MockEmissionsCC) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (MockEmissionsCC) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype MockPaperList struct {\n\tmock.Mock\n}\n```\n\\######### HELPERS #########\n\n```go\nfunc (mpl *MockPaperList) AddPaper(paper *CommercialPaper) error\n```\n\n```go\nfunc (mpl *MockPaperList) GetPaper(issuer string, papernumber string) (*CommercialPaper, error)\n```\n\n```go\nfunc (mpl *MockPaperList) UpdatePaper(paper *CommercialPaper) error\n```\n\n```go\ntype MockStateList struct{}\n```\nMockStateList is a mock implementation of contractapi.StateListInterface for testing.\n\n```go\nfunc (m *MockStateList) AddState(key string, value []byte) error\n```\n\n```go\nfunc (m *MockStateList) DeleteState(key string) error\n```\n\n```go\nfunc (m *MockStateList) GetState(key string) ([]byte, error)\n```\n\n```go\nfunc (m *MockStateList) UpdateState(key string, value []byte) error\n```\n\n```go\ntype MockStateRangeQueryIterator struct {\n\tClosed   bool\n\tStub     *MockStub\n\tStartKey string\n\tEndKey   string\n\tCurrent  *list.Element\n}\n```\nMockStateRangeQueryIterator ...\n\n```go\nfunc NewMockStateRangeQueryIterator(m *MockChaincodeStub, startKey string, endKey string) *MockStateRangeQueryIterator\n```\nNewMockStateRangeQueryIterator ...\n\n```go\nfunc (iter *MockStateRangeQueryIterator) Close() error\n```\nClose closes the range query iterator. This should be called when done reading from the iterator to free up resources.\n\n```go\nfunc (iter *MockStateRangeQueryIterator) HasNext() bool\n```\nHasNext returns true if the range query iterator contains additional keys and values.\n\n```go\nfunc (iter *MockStateRangeQueryIterator) Next() (*queryresult.KV, error)\n```\nNext returns the next key and value in the range query iterator.\n\n```go\ntype MockStub struct {\n\tshim.ChaincodeStubInterface\n\tmock.Mock\n}\n```\n\n```go\nfunc NewMockStub(name string, cc shim.Chaincode) *MockStub\n```\nNewMockStub Constructor to initialise the internal State map\n\n```go\nfunc (stub *MockStub) AddTransient(transient map[string][]byte) *MockStub\n```\nAddTransient adds key-value pairs to transient map\n\n```go\nfunc (stub *MockStub) ClearEvents()\n```\nClearEvents clears chaincode events channel\n\n```go\nfunc (stub *MockStub) CreateCompositeKey(objectType string, attributes []string) (string, error)\n```\nCreateCompositeKey combines the list of attributes to form a composite key.\n\n```go\nfunc (stub *MockStub) DelPrivateData(collection string, key string) error\n```\nDelPrivateData ...\n\n```go\nfunc (stub *MockStub) DelState(key string) error\n```\nDelState removes the specified \\`key\\` and its value from the ledger.\n\n```go\nfunc (stub *MockStub) DumpStateBuffer()\n```\n\n```go\nfunc (stub *MockStub) EventSubscription(from ...int64) (events chan *peer.ChaincodeEvent, closer func() error)\n```\nEventSubscription for new or all events\n\n```go\nfunc (stub *MockStub) EventsList() []*peer.ChaincodeEvent\n```\n\n```go\nfunc (stub *MockStub) From(txCreator ...interface{}) *MockStub\n```\nFrom mock tx creator\n\n```go\nfunc (stub *MockStub) GetArgs() [][]byte\n```\nGetArgs ...\n\n```go\nfunc (stub *MockStub) GetArgsSlice() ([]byte, error)\n```\nGetArgsSlice Not implemented ...\n\n```go\nfunc (stub *MockStub) GetBinding() ([]byte, error)\n```\nGetBinding Not implemented ...\n\n```go\nfunc (stub *MockStub) GetChannelID() string\n```\nGetChannelID ...\n\n```go\nfunc (stub *MockStub) GetCreator() ([]byte, error)\n```\nGetCreator ...\n\n```go\nfunc (stub *MockStub) GetDecorations() map[string][]byte\n```\nGetDecorations ...\n\n```go\nfunc (stub *MockStub) GetFunctionAndParameters() (function string, params []string)\n```\nGetFunctionAndParameters ...\n\n```go\nfunc (stub *MockStub) GetHistoryForKey(key string) (shim.HistoryQueryIteratorInterface, error)\n```\nGetHistoryForKey function can be invoked by a chaincode to return a history of key values across time. GetHistoryForKey is intended to be used for read-only queries.\n\n```go\nfunc (stub *MockStub) GetPrivateData(collection string, key string) ([]byte, error)\n```\nGetPrivateData ...\n\n```go\nfunc (stub *MockStub) GetPrivateDataByPartialCompositeKey(collection, objectType string, attributes []string) (shim.StateQueryIteratorInterface, error)\n```\nGetPrivateDataByPartialCompositeKey ...\n\n```go\nfunc (stub *MockStub) GetPrivateDataByRange(collection, startKey, endKey string) (shim.StateQueryIteratorInterface, error)\n```\nGetPrivateDataByRange ...\n\n```go\nfunc (stub *MockStub) GetPrivateDataHash(collection, key string) ([]byte, error)\n```\nGetPrivateDataHash ...\n\n```go\nfunc (stub *MockStub) GetPrivateDataQueryResult(collection, query string) (shim.StateQueryIteratorInterface, error)\n```\nGetPrivateDataQueryResult ...\n\n```go\nfunc (stub *MockStub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error)\n```\nGetPrivateDataValidationParameter ...\n\n```go\nfunc (stub *MockStub) GetQueryResult(query string) (shim.StateQueryIteratorInterface, error)\n```\nGetQueryResult function can be invoked by a chaincode to perform a rich query against state database.  Only supported by state database implementations that support rich query.  The query string is in the syntax of the underlying state database. An iterator is returned which can be used to iterate (next) over the query result set\n\n```go\nfunc (stub *MockStub) GetQueryResultWithPagination(query string, pageSize int32,\n\tbookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n```\nGetQueryResultWithPagination ...\n\n```go\nfunc (stub *MockStub) GetSignedProposal() (*pb.SignedProposal, error)\n```\nGetSignedProposal Not implemented ...\n\n```go\nfunc (stub *MockStub) GetState(key string) ([]byte, error)\n```\nGetState retrieves the value for a given key from the ledger\n\n```go\nfunc (stub *MockStub) GetStateByPartialCompositeKey(objectType string, attributes []string) (shim.StateQueryIteratorInterface, error)\n```\nGetStateByPartialCompositeKey function can be invoked by a chaincode to query the state based on a given partial composite key. This function returns an iterator which can be used to iterate over all composite keys whose prefix matches the given partial composite key. This function should be used only for a partial composite key. For a full composite key, an iter with empty response would be returned.\n\n```go\nfunc (stub *MockStub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string,\n\tpageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n```\nGetStateByPartialCompositeKeyWithPagination ...\n\n```go\nfunc (stub *MockStub) GetStateByRange(startKey, endKey string) (shim.StateQueryIteratorInterface, error)\n```\nGetStateByRange ...\n\n```go\nfunc (stub *MockStub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32,\n\tbookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error)\n```\nGetStateByRangeWithPagination ...\n\n```go\nfunc (stub *MockStub) GetStateValidationParameter(key string) ([]byte, error)\n```\nGetStateValidationParameter ...\n\n```go\nfunc (stub *MockStub) GetStringArgs() []string\n```\nGetStringArgs ...\n\n```go\nfunc (stub *MockStub) GetTransient() (map[string][]byte, error)\n```\nGetTransient ...\n\n```go\nfunc (stub *MockStub) GetTxID() string\n```\nGetTxID ...\n\n```go\nfunc (stub *MockStub) GetTxTimestamp() (*timestamp.Timestamp, error)\n```\nGetTxTimestamp ...\n\n```go\nfunc (stub *MockStub) Init(iargs ...interface{}) peer.Response\n```\nInit func of chaincode - sugared version with autogenerated tx uuid\n\n```go\nfunc (stub *MockStub) InitBytes(args ...[]byte) peer.Response\n```\nInitBytes init func with ...\\[]byte args\n\n```go\nfunc (stub *MockStub) Invoke(funcName string, iargs ...interface{}) peer.Response\n```\nInvoke sugared invoke function with autogenerated tx uuid\n\n```go\nfunc (stub *MockStub) InvokeBytes(args ...[]byte) peer.Response\n```\nInvokeBytes mock invoke with autogenerated tx uuid\n\n```go\nfunc (stub *MockStub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response\n```\nInvokeChaincode locally calls the specified chaincode \\`Invoke\\`. E.g. stub1.InvokeChaincode(\"othercc\", funcArgs, channel) Before calling this make sure to create another MockStub stub2, call shim.NewMockStub(\"othercc\", Chaincode) and register it with stub1 by calling stub1.MockPeerChaincode(\"othercc\", stub2, channel)\n\n```go\nfunc (stub *MockStub) MockCreator(mspID string, certPEM []byte)\n```\nMockCreator of tx\n\n```go\nfunc (stub *MockStub) MockInit(uuid string, args [][]byte) pb.Response\n```\nMockInit Initialise this chaincode,  also starts and ends a transaction.\n\n```go\nfunc (stub *MockStub) MockInvoke(uuid string, args [][]byte) pb.Response\n```\nMockInvoke Invoke this chaincode, also starts and ends a transaction.\n\n```go\nfunc (stub *MockStub) MockInvokeWithSignedProposal(uuid string, args [][]byte, sp *pb.SignedProposal) pb.Response\n```\nMockInvokeWithSignedProposal Invoke this chaincode, also starts and ends a transaction.\n\n```go\nfunc (stub *MockStub) MockPeerChaincode(invokableChaincodeName string, otherStub *MockStub, channel string)\n```\nMockPeerChaincode Register another MockStub chaincode with this MockStub. invokableChaincodeName is the name of a chaincode. otherStub is a MockStub of the chaincode, already initialized. channel is the name of a channel on which another MockStub is called.\n\n```go\nfunc (stub *MockStub) MockQuery(uuid string, args [][]byte) peer.Response\n```\nMockQuery\n\n```go\nfunc (stub *MockStub) MockTransactionEnd(uuid string)\n```\nMockTransactionEnd End a mocked transaction, clearing the UUID.\n\n```go\nfunc (stub *MockStub) MockTransactionStart(txid string)\n```\nMockTransactionStart Used to indicate to a chaincode that it is part of a transaction. This is important when chaincodes invoke each other. MockStub doesn't support concurrent transactions at present.\n\n```go\nfunc (stub *MockStub) MockedPeerChaincodes() []string\n```\nMockedPeerChaincodes returns names of mocked chaincodes, available for invoke from current stub\n\n```go\nfunc (stub *MockStub) PurgePrivateData(collection string, key string) error\n```\nPurgePrivateData ...\n\n```go\nfunc (stub *MockStub) PutPrivateData(collection string, key string, value []byte) error\n```\nPutPrivateData ...\n\n```go\nfunc (stub *MockStub) PutState(key string, value []byte) error\n```\nPutState writes the specified \\`value\\` and \\`key\\` into the ledger.\n\n```go\nfunc (stub *MockStub) Query(funcName string, iargs ...interface{}) peer.Response\n```\n\n```go\nfunc (stub *MockStub) QueryBytes(args ...[]byte) peer.Response\n```\nQueryBytes mock query with autogenerated tx uuid\n\n```go\nfunc (stub *MockStub) RegisterCreatorTransformer(creatorTransformer CreatorTransformer) *MockStub\n```\nRegisterCreatorTransformer  that transforms creator data to MSP\\_ID and X.509 certificate\n\n```go\nfunc (stub *MockStub) SetArgs(args [][]byte)\n```\nSetArgs set mocked args\n\n```go\nfunc (stub *MockStub) SetEvent(name string, payload []byte) error\n```\nSetEvent ...\n\n```go\nfunc (stub *MockStub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error\n```\nSetPrivateDataValidationParameter ...\n\n```go\nfunc (stub *MockStub) SetStateValidationParameter(key string, ep []byte) error\n```\nSetStateValidationParameter ...\n\n```go\nfunc (stub *MockStub) SetTransient(tMap map[string][]byte) error\n```\nSetTransient set TransientMap to mockStub\n\n```go\nfunc (stub *MockStub) SplitCompositeKey(compositeKey string) (string, []string, error)\n```\nSplitCompositeKey splits the composite key into attributes on which the composite key was formed.\n\n```go\nfunc (stub *MockStub) WithChannel(channelID string) *MockStub\n```\nWithChannel sets channel id\n\n```go\nfunc (stub *MockStub) WithTransient(transient map[string][]byte) *MockStub\n```\nWithTransient sets transient map\n\n```go\ntype MockSupport struct {\n\tPutChaincodeToLocalStorageErr    error\n\tGetChaincodeFromLocalStorageRv   ccprovider.CCPackage\n\tGetChaincodeFromLocalStorageErr  error\n\tGetChaincodesFromLocalStorageRv  *peer.ChaincodeQueryResponse\n\tGetChaincodesFromLocalStorageErr error\n\tGetInstantiationPolicyRv         []byte\n\tGetInstantiationPolicyErr        error\n\tCheckInstantiationPolicyErr      error\n\tGetInstantiationPolicyMap        map[string][]byte\n\tCheckInstantiationPolicyMap      map[string]error\n\tCheckCollectionConfigErr         error\n}\n```\n\n```go\nfunc (s *MockSupport) CheckCollectionConfig(collectionConfig *peer.CollectionConfig, channelName string) error\n```\n\n```go\nfunc (s *MockSupport) CheckInstantiationPolicy(signedProp *peer.SignedProposal, chainName string, instantiationPolicy []byte) error\n```\n\n```go\nfunc (s *MockSupport) GetChaincodeFromLocalStorage(ccNameVersion string) (ccprovider.CCPackage, error)\n```\n\n```go\nfunc (s *MockSupport) GetChaincodesFromLocalStorage() (*peer.ChaincodeQueryResponse, error)\n```\n\n```go\nfunc (s *MockSupport) GetInstantiationPolicy(channel string, ccpack ccprovider.CCPackage) ([]byte, error)\n```\n\n```go\nfunc (s *MockSupport) PutChaincodeToLocalStorage(ccpack ccprovider.CCPackage) error\n```\n\n```go\ntype MockTransactionContext struct {\n\tcontractapi.TransactionContext\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMockTransactionContext(stub shim.ChaincodeStubInterface, cid cid.ClientIdentity) *MockTransactionContext\n```\n\n```go\nfunc (mtc *MockTransactionContext) GetAgreementList() ListInterface\n```\n\n```go\nfunc (t *MockTransactionContext) GetClientIdentity() cid.ClientIdentity\n```\n\n```go\nfunc (mtc *MockTransactionContext) GetPaperList() ListInterface\n```\n\n```go\nfunc (m *MockTransactionContext) GetStub() shim.ChaincodeStubInterface\n```\n\n```go\ntype MockedPeer struct {\n\t// channel name -\u003e chaincode name\n\tChannelCC ChannelsMockStubs\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPeer() *MockedPeer\n```\nNewInvoker implements Invoker interface from hlf-sdk-go\n\n```go\nfunc (mp *MockedPeer) Blocks(\n\t_ context.Context,\n\t_ string,\n\t_ msp.SigningIdentity,\n\t_ ...int64,\n) (blockChan \u003c-chan *common.Block, closer func() error, err error)\n```\n\n```go\nfunc (mp *MockedPeer) Chaincode(channel string, chaincode string) (*MockStub, error)\n```\n\n```go\nfunc (mp *MockedPeer) CurrentIdentity() msp.SigningIdentity\n```\n\n```go\nfunc (mp *MockedPeer) Events(\n\tctx context.Context,\n\tchannel string,\n\tchaincode string,\n\t_ msp.SigningIdentity,\n\tblockRange ...int64,\n) (events chan interface {\n\tEvent() *peer.ChaincodeEvent\n\tBlock() uint64\n\tTxTimestamp() *timestamp.Timestamp\n}, closer func() error, err error)\n```\n\n```go\nfunc (mp *MockedPeer) Invoke(\n\t_ context.Context,\n\tchannel string,\n\tchaincode string,\n\targs [][]byte,\n\tidentity msp.SigningIdentity,\n\ttransArgs map[string][]byte,\n\t_ string) (res *peer.Response, chaincodeTx string, err error)\n```\n\n```go\nfunc (mp *MockedPeer) Query(\n\t_ context.Context,\n\tchannel string,\n\tchaincode string,\n\targs [][]byte,\n\tidentity msp.SigningIdentity,\n\ttransArgs map[string][]byte) (*peer.Response, error)\n```\n\n```go\nfunc (mi *MockedPeer) Subscribe(\n\tctx context.Context, from msp.SigningIdentity, channel, chaincode string) (api.EventCCSubscription, error)\n```\n\n```go\nfunc (mp *MockedPeer) WithChannel(channel string, mockStubs ...*MockStub) *MockedPeer\n```\n\n```go\ntype MockedPeerDecorator struct {\n\tSDK sdk.SDK\n\n\tInvokeMutator InvokeMutator\n\tQueryMutator  QueryMutator\n}\n```\n\n```go\nfunc NewPeerDecorator(sdk sdk.SDK) *MockedPeerDecorator\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) CurrentIdentity() msp.SigningIdentity\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) Events(\n\tctx context.Context,\n\tchannel string,\n\tchaincode string,\n\tidentity msp.SigningIdentity,\n\tblockRange ...int64,\n) (events chan interface {\n\tEvent() *peer.ChaincodeEvent\n\tBlock() uint64\n\tTxTimestamp() *timestamp.Timestamp\n}, closer func() error, err error)\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) FailChaincode(chaincodes ...string)\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) FailInvoke(chaincodes ...string)\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) FailQuery(chaincodes ...string)\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) Invoke(\n\tctx context.Context,\n\tchannel string,\n\tchaincode string,\n\targs [][]byte,\n\tidentity msp.SigningIdentity,\n\ttransArgs map[string][]byte,\n\ttxWaiterType string) (res *peer.Response, chaincodeTx string, err error)\n```\n\n```go\nfunc (mpd *MockedPeerDecorator) Query(\n\tctx context.Context,\n\tchannel string,\n\tchaincode string,\n\targs [][]byte,\n\tidentity msp.SigningIdentity,\n\ttransArgs map[string][]byte) (*peer.Response, error)\n```\n\n```go\ntype Model struct {\n\tName  string                 `json:\"name\"`\n\tGrads map[string][][]float64 `json:\"grads\"`\n}\n```\n\n```go\ntype ModelBlock struct {\n\tModelType    string `json:\"modelType\"`\n\tPrevHashId   string `json:\"prevHashId\"`\n\tModelUrl     string `json:\"modelUrl\"`\n\tTimestamp    string `json:\"timestamp\"`\n\tOrganization string `json:\"organization\"`\n}\n```\nmodel detail information k: curHashId v:ModelBlock\n\n```go\ntype Molecule struct {\n\n\t// calculated properties\n\tCalculatedProperties []string `json:\"calculated-properties\"`\n\n\t// comments\n\tComments string `json:\"comments,omitempty\"`\n\n\t// documented properties\n\tDocumentedProperties []string `json:\"documented-properties\"`\n\n\t// inchi\n\tInchi string `json:\"inchi,omitempty\"`\n\n\t// institution\n\tInstitution string `json:\"institution,omitempty\"`\n\n\t// name\n\t// Required: true\n\tName *string `json:\"name\"`\n\n\t// smiles\n\tSmiles string `json:\"smiles,omitempty\"`\n\n\t// uploader\n\tUploader string `json:\"uploader,omitempty\"`\n\n\t// value\n\tValue int64 `json:\"value,omitempty\"`\n\n\tOwner string\n}\n```\n\n```go\ntype MoveOutInFund struct {\n\tObjectType  string    `json:\"docType\"`\n\tRefID       string    `json:\"refID\"`\n\tAccountID   string    `json:\"accountID\"`\n\tChannelFrom string    `json:\"channelFrom\"`\n\tChannelTo   string    `json:\"channelTo\"`\n\tAmount      float64   `json:\"amount\"`\n\tCurrency    string    `json:\"currency\"`\n\tCreateTime  time.Time `json:\"createTime\"`\n}\n```\n\n```go\ntype Msg struct {\n\tFn   string\n\tArgs [][]byte\n}\n```\nMsg is a chaincode invocation\n\n```go\nfunc (msg Msg) Validate() error\n```\nValidate validates the msg\n\n```go\ntype MultiOrgChaincode struct {\n}\n```\nMultiOrgChaincode implementation of Chaincode\n\n```go\nfunc (t *MultiOrgChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit of the chaincode This function is called only one when the chaincode is instantiated. So the goal is to prepare the ledger to handle future requests.\n\n```go\nfunc (t *MultiOrgChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke All future requests named invoke will arrive here.\n\n```go\ntype Multihash struct {\n\tFileName     string `json:\"file_name\"`\n\tHashFunction string `json:\"hash_function\"`\n\tSize         string `json:\"size\"`\n\tHash         string `json:\"hash\"`\n}\n```\n\n```go\ntype MyAssetContract struct {\n\tcontractapi.Contract\n}\n```\nMyAssetContract contract for managing CRUD for MyAsset\n\n```go\nfunc (c *MyAssetContract) CreateMyAsset(ctx contractapi.TransactionContextInterface, myAssetID string, value string) error\n```\nCreateMyAsset creates a new instance of MyAsset\n\n```go\nfunc (c *MyAssetContract) DeleteMyAsset(ctx contractapi.TransactionContextInterface, myAssetID string) error\n```\nDeleteMyAsset deletes an instance of MyAsset from the world state\n\n```go\nfunc (c *MyAssetContract) MyAssetExists(ctx contractapi.TransactionContextInterface, myAssetID string) (bool, error)\n```\nMyAssetExists returns true when asset with given ID exists in world state\n\n```go\nfunc (c *MyAssetContract) ReadMyAsset(ctx contractapi.TransactionContextInterface, myAssetID string) (*MyAsset, error)\n```\nReadMyAsset retrieves an instance of MyAsset from the world state\n\n```go\nfunc (c *MyAssetContract) UpdateMyAsset(ctx contractapi.TransactionContextInterface, myAssetID string, newValue string) error\n```\nUpdateMyAsset retrieves an instance of MyAsset from the world state and updates its value\n\n```go\ntype MyBST struct {\n\tPrimaryKey string    `json:\"PrimaryKey\"`\n\tRoot       *TreeNode `json:\"Root\"`\n}\n```\n\n```go\ntype MyChainCode struct {\n}\n```\n\n```go\nfunc (t *MyChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (t *MyChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype MyError struct{}\n```\n\n```go\nfunc (m *MyError) Error() string\n```\n\n```go\ntype MyPrivateAssetContract struct {\n\tcontractapi.Contract\n}\n```\nMyPrivateAssetContract contract for managing CRUD for MyPrivateAsset\n\n```go\nfunc (c *MyPrivateAssetContract) CreateMyPrivateAsset(ctx contractapi.TransactionContextInterface, myPrivateAssetID string) error\n```\nCreateMyPrivateAsset creates a new instance of MyPrivateAsset\n\n```go\nfunc (c *MyPrivateAssetContract) DeleteMyPrivateAsset(ctx contractapi.TransactionContextInterface, myPrivateAssetID string) error\n```\nDeleteMyPrivateAsset deletes an instance of MyPrivateAsset from the private data collection\n\n```go\nfunc (c *MyPrivateAssetContract) MyPrivateAssetExists(ctx contractapi.TransactionContextInterface, myPrivateAssetID string) (bool, error)\n```\nMyPrivateAssetExists returns true when asset with given ID exists in private data collection\n\n```go\nfunc (c *MyPrivateAssetContract) ReadMyPrivateAsset(ctx contractapi.TransactionContextInterface, myPrivateAssetID string) (*MyPrivateAsset, error)\n```\nReadMyPrivateAsset retrieves an instance of MyPrivateAsset from the private data collection\n\n```go\nfunc (c *MyPrivateAssetContract) UpdateMyPrivateAsset(ctx contractapi.TransactionContextInterface, myPrivateAssetID string) error\n```\nUpdateMyPrivateAsset retrieves an instance of MyPrivateAsset from the private data collection and updates its value\n\n```go\nfunc (c *MyPrivateAssetContract) VerifyMyPrivateAsset(ctx contractapi.TransactionContextInterface, mspid string, myPrivateAssetID string, objectToVerify *MyPrivateAsset) (bool, error)\n```\nVerifyMyPrivateAsset verifies the hash for an instance of MyPrivateAsset from the private data collection matches the hash stored in the public ledger //FIXME check this\n\n```go\ntype NFT struct {\n\tID           string   `json:\"ID\"`\n\tCreator      string   `json:\"Creator\"`\n\tOwner        string   `json:\"Owner\"`\n\tPrice        float64  `json:\"Price\"`\n\tPriceHistory []string `json:\"PriceHistory\"`\n\tCreatedAt    string   `json:\"CreatedAt\"`\n\tTxIDCreated  string   `json:\"TxIDCreated\"`\n\tUri          string   `json:\"Uri\"`\n\tOpHistory    []string `json:\"OpHistory\"`\n\tOpHash       []string `json:\"OpHash\"`\n\tCertID       string   `json:\"CertID\"`\n\tStatus       int      `json:\"status\"`\n}\n```\n\n```go\ntype NFToken struct {\n\tAmount   string   `json:\"amount\"`\n\tMetadata Metadata `json:\"metadata\"`\n}\n```\n\n```go\ntype NPDContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *NPDContract) CreateNpd(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *NPDContract) DeleteNpd(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *NPDContract) GetAllNpd(ctx contractapi.TransactionContextInterface) ([]*NilaiPesertaDidik, error)\n```\n\n```go\nfunc (s *NPDContract) GetNpdById(ctx contractapi.TransactionContextInterface) (*NilaiPesertaDidik, error)\n```\n\n```go\nfunc (t *NPDContract) GetNpdByIdKls(ctx contractapi.TransactionContextInterface) ([]*NilaiPesertaDidik, error)\n```\n\n```go\nfunc (t *NPDContract) GetNpdByIdPd(ctx contractapi.TransactionContextInterface) ([]*NilaiPesertaDidik, error)\n```\n\n```go\nfunc (t *NPDContract) GetNpdLastTxIdById(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *NPDContract) UpdateNpd(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype NeedReleaseExpiredLockError struct {\n}\n```\n\n```go\nfunc (nrele *NeedReleaseExpiredLockError) Error() string\n```\n\n```go\ntype NftChaincode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *NftChaincode) AI(ctx contractapi.TransactionContextInterface, Owner string, aititle string, tokenId string, aisum float64, learningdata string) error\n```\n\t AiTitle string `json:\"aititle\"`\n\t\tTokenId string `json:\"tokenId\"`\n\t\tAiSum float64 `json:\"aisum\"`\n\t\tLearningData float64 `json:\"learningdata\"`\n\n//////////////////////////////// AiInfo //////////////////////////////////\n\n```go\nfunc (c *NftChaincode) AddScore(ctx contractapi.TransactionContextInterface, username string, project_name string, activity_score string) error\n```\nAdd Score (수정 예정)\n\n```go\nfunc (c *NftChaincode) AddUser(ctx contractapi.TransactionContextInterface, username string) error\n```\n//////////////////////////////// User(라벨러) //////////////////////////////////\n\n```go\nfunc (c *NftChaincode) MintWithTokenURI(ctx contractapi.TransactionContextInterface, tokenId string, tokenURI string) (*Nft, error)\n```\n\n```go\nfunc (c *NftChaincode) Name(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *NftChaincode) ReadAIinfo(ctx contractapi.TransactionContextInterface, Owner string) (string, error)\n```\n\n```go\nfunc (c *NftChaincode) ReadScore(ctx contractapi.TransactionContextInterface, username string) (string, error)\n```\n\n```go\nfunc (c *NftChaincode) Symbol(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *NftChaincode) TokenURI(ctx contractapi.TransactionContextInterface, tokenId string) (string, error)\n```\n\n```go\nfunc (c *NftChaincode) Wallet(ctx contractapi.TransactionContextInterface, owner string) error\n```\n\t Owner string `json:\"owner\"`\n\t\tCount float64 `json:\"count\"`\n\t\tAiInfos []AiInfo `json:\"aiinfos\"`\n\n//////////////////////////////// WalletInfo //////////////////////////////////\n\n```go\ntype NilaiPesertaDidik struct {\n\tID         string  `json:\"id\"`\n\tIdKLS      string  `json:\"idKls\"`\n\tIdPTK      string  `json:\"idPtk\"`\n\tIdPD       string  `json:\"idPd\"`\n\tNilaiAngka float64 `json:\"nilaiAngka\"`\n\tNilaiHuruf string  `json:\"nilaiHuruf\"`\n\tNilaiIndex float64 `json:\"nilaiIndex\"`\n}\n```\n\n```go\ntype Node struct {\n\tID           string `json:\"id\"`\n\tPlatform     string `json:\"platform\"`\n\tArchitecture string `json:\"architecture\"`\n\tInfo         string `json:\"info\"`\n}\n```\nNode :  Define the Node structure, with 4 properties.  Structure tags are used by encoding/json library\n\n```go\ntype NodePrivateDetails struct {\n\tInfo  string `json:\"info\"`\n\tPrice string `json:\"price\"`\n}\n```\n\n```go\ntype NodesContract struct {\n}\n```\n\n```go\nfunc (s *NodesContract) Init(APIstub shim.ChaincodeStubInterface) sc.Response\n```\nInit is called when the smart contract is instantiated\n\n```go\nfunc (s *NodesContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response\n```\n\n```go\ntype Nonce struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (nonce *Nonce) Check(ctx context.ContextInterface, account string, dstNonce uint64) error\n```\n\n```go\nfunc (nonce *Nonce) Current(ctx context.ContextInterface, account string) (uint64, error)\n```\n\n```go\nfunc (nonce *Nonce) Increment(ctx context.ContextInterface, account string) (uint64, error)\n```\n\n```go\ntype Noop struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *Noop) CreateView(ctx contractapi.TransactionContextInterface, viewName, viewPredicate, mergePeriod string) error\n```\n\n```go\nfunc (t *Noop) InvokeTxn(ctx contractapi.TransactionContextInterface, pub_arg, private_arg string) error\n```\n\n```go\ntype Notification struct {\n\tTxId        string   `json:\"txId\"`\n\tDescription string   `json:\"description\"`\n\tUsers       []string `json:\"users\"`\n}\n```\n\n```go\ntype OnChainView struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *OnChainView) CreateView(ctx contractapi.TransactionContextInterface, viewName, viewPredicate, mergePeriod string) error\n```\nCreateView can be constrained to be called by view owner only. Refer to [https://hyperledger-fabric.readthedocs.io/en/release-2.2/access\\_control.html](https://hyperledger-fabric.readthedocs.io/en/release-2.2/access_control.html) Func CreateView(viewName, viewPredicate):\n\n\tview_predicates[viewName] = viewPredicate;\n\tview_txns[viewName] = [];\n\n```go\nfunc (t *OnChainView) InvokeTxn(ctx contractapi.TransactionContextInterface, pub_arg, private_arg string) error\n```\n\n```go\nfunc (t *OnChainView) RetrieveTxnIdsByView(ctx contractapi.TransactionContextInterface, view_name string) string\n```\nFunc RetrieveTxnIdsByView(viewName):\n\n\tReturn view_txns[view_name];\n\n```go\ntype Operate struct {\n\tId            string `json:\"tradeId\"`       // 操作id\n\tTime          string `json:\"time\"`          // 时间\n\tOperaterId    string `json:\"operaterId\"`    // 操作员id\n\tOperatereedId string `json:\"operatereedId\"` // 被操作者id\n\tOperateType   string `json:\"operateType\"`   // 操作类型\n}\n```\nt\\_operate\n\n```go\ntype Operation struct {\n\tTimestamp timer.TimeStamp\n\tPayload   []byte\n\tOpType    string\n}\n```\nOperation is an operation: whose detail is {Payload}, will do {OpType} work, set to be available after {TimeStamp}.\n\n```go\ntype Order struct {\n\tId       string    `json:\"id\"`\n\tCustomer *Customer `json:\"customer\"`\n\tHouse    *House    `json:\"house\"`\n}\n```\n\n```go\nfunc ReadPrivateState(ctx contractapi.TransactionContextInterface, orderID string) (*Order, error)\n```\n\n```go\nfunc (order *Order) Get(ctx contractapi.TransactionContextInterface) (*Order, error)\n```\n\n```go\nfunc (order *Order) Insert(ctx contractapi.TransactionContextInterface) (*Order, error)\n```\n\n```go\nfunc (order *Order) ParseArgsWithCustomer(ctx contractapi.TransactionContextInterface) (*Order, error)\n```\n\n```go\nfunc (order *Order) ParseArgsWithCustomerAndHouse(ctx contractapi.TransactionContextInterface) (*Order, error)\n```\n\n```go\ntype OrderContract struct {\n\tcontractapi.Contract\n}\n```\nOrderContract contract for managing CRUD for Order\n\n```go\nfunc (c *OrderContract) ClearData(ctx contractapi.TransactionContextInterface, startKey, endKey string) error\n```\nClearData delete data for simulations. Not part of features.\n\n```go\nfunc (o *OrderContract) CreateOrder(ctx contractapi.TransactionContextInterface, orderID string) (string, error)\n```\nCreateOrder creates a new instance of Order\n\n```go\nfunc (o *OrderContract) DeleteOrder(ctx contractapi.TransactionContextInterface, orderID string) error\n```\nDeleteOrder deletes an instance of Order from the private data collection\n\n```go\nfunc (o *OrderContract) GetAllOrders(ctx contractapi.TransactionContextInterface) ([]*Order, error)\n```\n\n```go\nfunc (o *OrderContract) GetOrdersByRange(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]*Order, error)\n```\n\n```go\nfunc (o *OrderContract) OrderExists(ctx contractapi.TransactionContextInterface, orderID string) (bool, error)\n```\nOrderExists returns true when asset with given ID exists in private data collection\n\n```go\nfunc (s *OrderContract) PlaceOrder(\n\tctx contractapi.TransactionContextInterface,\n\tjsonStr string,\n) error\n```\n\n```go\nfunc (s *OrderContract) PrematureClose(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) error\n```\n\n```go\nfunc (o *OrderContract) ReadOrder(ctx contractapi.TransactionContextInterface, orderID string) (*Order, error)\n```\nReadOrder retrieves an instance of Order from the private data collection\n\n```go\ntype OrgAdmin struct {\n\tId             string    `json:\"Id\"`\n\tParticipant_id string    `json:\"Participant_id\"`\n\tCreatedOn      time.Time `json:\"CreatedOn\"`\n\tCreatedBy      string    `json:\"CreatedBy\"`\n\tIsDelete       bool      `json:\"IsDelete\"`\n\tOrganizationId string    `json:\"OrganizationId\"`\n\tBusinessEmail  string    `json:\"BusinessEmail\"`\n\tWalletid       string    `json:\"Walletid\"`\n\tPassword       string    `json:\"Password\"`\n\tNotes          string    `json:\"Notes\"`\n}\n```\n\n```go\ntype OrgAdminChaincode struct {\n}\n```\n\n```go\nfunc (cc *OrgAdminChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (cc *OrgAdminChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype OrgCredentials struct {\n\tOrgName string `json:\"orgName\"`\n\tOrgNum  int    `json:\"orgNum\"`\n}\n```\n\n```go\ntype Organisation struct {\n\tSGLN     int    `json:\"sgln\"` // Global Location Number with or without Extension\n\tName     string `json:\"orgName\"`\n\tLocation `json:\"location\"`\n}\n```\nOrganisation TBF\n\n```go\ntype OurStruct struct {\n\tID string `json:\"ID\"`\n}\n```\nOurStruct describes basic details\n\n```go\ntype OwnChaincode struct {\n}\n```\n\n```go\nfunc (t *OwnChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (t *OwnChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype OwnableContract struct {\n\tcontractapi.Contract\n\t// contains filtered or unexported fields\n}\n```\nOwnableContract implements IOwnable which provides basic access control mechanism where there is an owner can be granted exclusive access to specific functions.\n\n```go\nfunc NewOwnableContract() *OwnableContract\n```\n\n```go\nfunc (ownable *OwnableContract) Initialize(ctx context.ContextInterface) error\n```\nInitialize will set the owner\n\n```go\nfunc (ownable *OwnableContract) Owner(ctx context.ContextInterface) (string, error)\n```\nOwner returns the address of the current owner - ZeroAddress will be returned if current owner is empty\n\n```go\nfunc (ownable *OwnableContract) RenounceOwnership(ctx context.ContextInterface) error\n```\nRenounceOwnership will reset owner to ZeroAddress - only current Owner has this permission\n\n```go\nfunc (ownable *OwnableContract) TransferOwnership(ctx context.ContextInterface, newOwner string) error\n```\nTransferOwnership will transfer ownership to newOwner - only current Owner has this permission\n\n```go\ntype Owner struct {\n\tOwnerName    string `json:\"OwnerName\"`\n\tOwnerAddress string `json:\"OwnerAddress\"`\n}\n```\n\n```go\ntype OwnerAsset struct {\n\tOwnerID   string `json:\"OwnerID\"`\n\tOwnerName string `json:\"OwnerName\"`\n\tIsActive  bool   `json:\"IsActive\"`\n}\n```\n\n```go\ntype PDContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *PDContract) CreatePd(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PDContract) DeletePd(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PDContract) GetAllPd(ctx contractapi.TransactionContextInterface) ([]*PesertaDidik, error)\n```\n\n```go\nfunc (s *PDContract) GetPdById(ctx contractapi.TransactionContextInterface) (*PesertaDidik, error)\n```\n\n```go\nfunc (t *PDContract) GetPdByIdSms(ctx contractapi.TransactionContextInterface) ([]*PesertaDidik, error)\n```\n\n```go\nfunc (t *PDContract) GetPdByIdSp(ctx contractapi.TransactionContextInterface) ([]*PesertaDidik, error)\n```\n\n```go\nfunc (s *PDContract) SetPdGraduated(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PDContract) SetPdGraduatedBatch(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PDContract) UpdatePd(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PDContract) UpdatePdRecord(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype PRChainCode struct {\n}\n```\nStruct For Chain Code\n\n```go\nfunc (t *PRChainCode) AirlinesExists(stub hypConnect, args []string) (bool, error)\n```\nAirlinesExists returns true when GovBit with given user exists in world state\n\n```go\nfunc (t *PRChainCode) AirportsExists(stub hypConnect, args []string) (bool, error)\n```\nAirportsExists returns true when GovBit with given user exists in world state\n\n```go\nfunc (t *PRChainCode) BaggageExists(stub hypConnect, args []string) (bool, error)\n```\nBaggageExists returns true when GovBit with given user exists in world state\n\n```go\nfunc (t *PRChainCode) ChangeBaggageStatusByAirlines(stub hypConnect, args []string) pb.Response\n```\n\n```go\nfunc (t *PRChainCode) ChangeBaggageStatusByAirport(stub hypConnect, args []string) pb.Response\n```\n\n```go\nfunc (t *PRChainCode) CreateBaggage(stub hypConnect, args []string) pb.Response\n```\n\n```go\nfunc (t *PRChainCode) GetBaggageDetails(stub hypConnect, args []string) pb.Response\n```\n\n```go\nfunc (t *PRChainCode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit is called during chaincode instantiation to initialize any data.\n\n```go\nfunc (t *PRChainCode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke is called per transaction on the chaincode\n\n```go\nfunc (t *PRChainCode) RegisterAirlines(stub hypConnect, args []string) pb.Response\n```\n\n```go\nfunc (t *PRChainCode) RegisterAirports(stub hypConnect, args []string) pb.Response\n```\n\n```go\ntype PTKContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *PTKContract) CreatePtk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PTKContract) DeletePtk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *PTKContract) GetAllPtk(ctx contractapi.TransactionContextInterface) ([]*PendidikTenagaKependidikan, error)\n```\n\n```go\nfunc (s *PTKContract) GetPtkById(ctx contractapi.TransactionContextInterface) (*PendidikTenagaKependidikan, error)\n```\n\n```go\nfunc (t *PTKContract) GetPtkByIdSms(ctx contractapi.TransactionContextInterface) ([]*PendidikTenagaKependidikan, error)\n```\n\n```go\nfunc (t *PTKContract) GetPtkByIdSp(ctx contractapi.TransactionContextInterface) ([]*PendidikTenagaKependidikan, error)\n```\n\n```go\nfunc (s *PTKContract) UpdatePtk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype Paciente struct {\n\tNome          string `json:\"nome\"`\n\tSala          string `json:\"sala\"`\n\tMedico        string `json:\"medico\"`\n\tEspecialidade string `json:\"especialidade\"`\n\tExame         string `json:\"exame\"`\n}\n```\n\n```go\ntype Package struct {\n\tID                string   `json:\"id\"`\n\tDateOfManufacture string   `json:\"dateOfManufacture\"` // ISO 8601 date format\n\tPlaceOfOrigin     string   `json:\"placeOfOrigin\"`     // \"City, Country\"\n\tCurrentStatus     string   `json:\"currentStatus\"`\n\tCustomsDetails    []string `json:\"customsDetails\"`\n\tIsDamaged         bool     `json:\"isDamaged\"`\n}\n```\n\n```go\ntype PackageCache struct {\n\tMutex             sync.RWMutex\n\tValidatedPackages map[string]*ccprovider.ChaincodeData\n}\n```\n\n```go\ntype PageResponse struct {\n\tBookmark string   `json:\"bookmark\"`\n\tKeys     []string `json:\"keys\"`\n}\n```\n\n```go\ntype PaginatedQueryResult struct {\n\tRecords             []*Asset `json:\"records\"`\n\tFetchedRecordsCount int32    `json:\"fetchedRecordsCount\"`\n\tBookmark            string   `json:\"bookmark\"`\n}\n```\n\n```go\ntype PaillerKey struct {\n\tPatientFamilyID string              `json:\"patientFamilyID\"`\n\tKey             *Pailler.PrivateKey `json:\"key\"`\n}\n```\n\n```go\ntype PaillerResult struct {\n\tKey    string `json:\"Key\"`\n\tRecord *PaillerKey\n}\n```\n\n```go\ntype ParameterIndex struct {\n\tName     string\n\tJSONType string\n\t// contains filtered or unexported fields\n}\n```\nParameterIndex stores transaction parameters and its location in raw JSON schema string start and end location is used to sort the parameter list to match the parameter order in schema\n\n```go\nfunc OrderedParameters(schemaData []byte) ([]ParameterIndex, error)\n```\nOrderedParameters returns parameters of a JSON schema object sorted by their position in schema definition This is necessary because Golang JSON parser does not maintain the sequence of object parameters.\n\n```go\ntype ParentInfo struct {\n\tParentContract string `json:\"parent_contract\"`\n\tProductID      string `json:\"product_id\"`\n}\n```\n\n```go\ntype ParkingSlot struct {\n\tSlotID       string `json:\"slot_id\"`\n\tSlotNumber   string `json:\"slot_number\"`\n\tProviderID   string `json:\"provider_id\"`\n\tIntegratorID string `json:\"integrator_id\"`\n\tOccupierID   string `json:\"occupier_id\"`\n\tStatus       uint32 `json:\"status\"`\n}\n```\n\n```go\ntype PartTrade struct {\n\tcontractapi.Contract\n}\n```\nPartTrade : Business logic Contract\n\n```go\nfunc (pt *PartTrade) AddPart(ctx contractapi.TransactionContextInterface, partID string, pName string, desc string, qprice uint32, maker string) (string, error)\n```\nAddPart : Method to add a part to the ledger\n\n```go\nfunc (pt *PartTrade) DeletePart(ctx contractapi.TransactionContextInterface, partID string) error\n```\nDeletePart : Is going to delete the part from the state database\n\n```go\nfunc (pt *PartTrade) GetPartHistory(ctx contractapi.TransactionContextInterface, partID string) ([]HistoryResult, error)\n```\nGetPartHistory : Fetches the history of the part given the partID\n\n```go\nfunc (pt *PartTrade) GetRichQueryResult(ctx contractapi.TransactionContextInterface, query string) ([]QueryResult, error)\n```\nGetRichQueryResult : Gets the query results based on User Query\n\n```go\nfunc (pt *PartTrade) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger : Method to initialize the ledger\n\n```go\nfunc (pt *PartTrade) QueryPart(ctx contractapi.TransactionContextInterface, partID string) (*Part, error)\n```\nQueryPart : Method to query the part given the partID\n\n```go\nfunc (pt *PartTrade) QueryParts(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]QueryResult, error)\n```\nQueryParts : Method to query the parts in the given range\n\n```go\nfunc (pt *PartTrade) QueryPartsWithPagination(ctx contractapi.TransactionContextInterface, startKey string, endKey string, pageSize int32, bookmark string) (*PagedQueryResult, error)\n```\nQueryPartsWithPagination : Method to query the parts in the given range with Pagination\n\n```go\nfunc (pt *PartTrade) SellPart(ctx contractapi.TransactionContextInterface, partID string, buyer string, dprice uint32) (*Part, error)\n```\nSellPart : Method to sell the part if the conditions meet\n\n```go\ntype Parties struct {\n\tShipper     Party `json:\"shipper\"`\n\tConsignee   Party `json:\"consignee\"`\n\tNotifyParty Party `json:\"notifyParty\"`\n}\n```\n\n```go\ntype Party struct {\n\tName string `json:\"name\"`\n\tNPWP string `json:\"npwp\"`\n}\n```\n\n```go\ntype PassthruChaincode struct {\n}\n```\nPassthruChaincode passes thru invoke and query to another chaincode where\n\n\tcalled ChaincodeID = args[0]\n\tcalled chaincode's function = args[1]\n\tcalled chaincode's args = args[2:len-2]\n\tcalled ChannelID = args[len-1]\n\n```go\nfunc (p *PassthruChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (p *PassthruChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke passes through the invoke call The chaincode ID to call MUST be specified as first argument The channel ID to call the chaincode on MUST be specified as the last argument\n\n```go\ntype Patient struct {\n\tNik          string `json:\"nik,omitempty\"  bson:\"nik\"  form:\"nik\"  binding:\"nik\"`\n\tDate         string `json:\"date,omitempty\"  bson:\"date\"  form:\"date\"  binding:\"date\"`\n\tGender       string `json:\"gender,omitempty\"  bson:\"gender\"  form:\"gender\"  binding:\"gender\"`\n\tAge          string `json:\"age,omitempty\"  bson:\"age\"  form:\"age\"  binding:\"age\"`\n\tLocation     string `json:\"location,omitempty\"  bson:\"location\"  form:\"location\"  binding:\"location\"`\n\tHealthRecord string `json:\"health_record,omitempty\"  bson:\"health_record\"  form:\"health_record\"  binding:\"health_record\"`\n\tStatus       string `json:\"status,omitempty\"  bson:\"status\"  form:\"status\"  binding:\"status\"`\n}\n```\n\n```go\nfunc (t *Patient) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *Patient) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype PatientEHR struct {\n\tPatientID    string         `json:\"id\"`\n\tName         string         `json:\"name\"`\n\tSingleRecord []singleRecord `json:\"singleRecord\"`\n}\n```\nPatientEHR struct\n\n```go\nfunc (EHR *PatientEHR) LoadState(ctx contractapi.TransactionContextInterface) (bool, error)\n```\nLoadState loads the data from the ledger into the Lot object if data is found. Returns false if a Lot object wasn't found in the ledger; otherwise returns true\n\n```go\nfunc (EHR *PatientEHR) SaveState(ctx contractapi.TransactionContextInterface) error\n```\nSaveState saves the lot struct to the ledger\n\n```go\nfunc (EHR *PatientEHR) ToLedgerValue() ([]byte, error)\n```\nToLedgerValue covnerts a \\[]byte to JSON for ledger\n\n```go\ntype PatientResult struct {\n\tKey    string `json:\"Key\"`\n\tRecord *Patient\n}\n```\n\n```go\ntype Payment struct {\n\tTermOfPayment string `json:\"termOfPayment\"`\n}\n```\n\n```go\ntype PaymentDetail struct {\n\tInvoice Invoice `json:\"invoice\"`\n}\n```\n\n```go\ntype PaymentMetaData struct {\n\tAmount       float64 `json:”amount”`       // Amount of the payment\n\tCurrencyCode string  `json:”currencyCode”` // Currency Code of the payment\n\n\tApplicationReferenceId string `json:\"applicationReferenceId\"`        // ID of the application or uuid of Payment Engine\n\tIsPaymentEngineUsed    bool   `json:\"isPaymentEngineUsed,omitempty\"` // If Payment Engine used or not, default value should be true\n\t// contains filtered or unexported fields\n}\n```\nPaymentTracker represents the payment tracking information associated with a transaction on the Kalptantra blockchain network. The struct is used for storing and retrieving payment-related data.\n\n```go\ntype PaymentTracker struct {\n\tTransactionId        string          `json:\"transactionId\"`        // The ID of the transaction.\n\tDocType              string          `json:\"DocType\"`              // The type of the document it must be PAYMENT-INFO.\n\tPaymentTransactionID string          `json:”paymentTransactionId\"` // The reference number of the payment.\n\tPaymentGatewayName   string          `json:\"paymentGatewayName`    // The Name of the payment gateway.\n\tPaymentMetaData      PaymentMetaData `json:\"paymentMetaData\"`      // Additional metadata related to the payment.\n\tAssetInfo            interface{}     `json:\"assetInfo,omitempty”`  // Information about the associated asset.\n\tAssetId              string          `json:\"id,omitempty”`\n\tAssetDocType         string          `json:\"docType,omitempty”`\n}\n```\n\n```go\ntype PeerConfiger struct {\n\t// contains filtered or unexported fields\n}\n```\nPeerConfiger implements the configuration handler for the peer. For every configuration transaction coming in from the ordering service, the committer calls this system chaincode to process the transaction.\n\n```go\nfunc New(\n\taclProvider aclmgmt.ACLProvider,\n\tdeployedCCInfoProvider ledger.DeployedChaincodeInfoProvider,\n\tlr plugindispatcher.LifecycleResources,\n\tnr plugindispatcher.CollectionAndLifecycleResources,\n\tpolicyChecker policy.PolicyChecker,\n\tp *peer.Peer,\n\tbccsp bccsp.BCCSP,\n) *PeerConfiger\n```\nNew creates a new instance of the CSCC. Typically, only one will be created per peer instance.\n\n```go\nfunc (e *PeerConfiger) Chaincode() shim.Chaincode\n```\n\n```go\nfunc (e *PeerConfiger) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit is mostly useless from an SCC perspective\n\n```go\nfunc (e *PeerConfiger) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke is called for the following: # to process joining a chain (called by app as a transaction proposal) # to get the current configuration block (called by app) # to update the configuration block (called by committer) Peer calls this function with 2 arguments: # args\\[0] is the function name, which must be JoinChain, GetConfigBlock or UpdateConfigBlock # args\\[1] is a configuration Block if args\\[0] is JoinChain or UpdateConfigBlock; otherwise it is the chain id TODO: Improve the scc interface to avoid marshal/unmarshal args\n\n```go\nfunc (e *PeerConfiger) InvokeNoShim(args [][]byte, sp *pb.SignedProposal) pb.Response\n```\n\n```go\nfunc (e *PeerConfiger) JoinChainBySnapshot(\n\tsnapshotDir string,\n\tdeployedCCInfoProvider ledger.DeployedChaincodeInfoProvider,\n\tlr plugindispatcher.LifecycleResources,\n\tnr plugindispatcher.CollectionAndLifecycleResources,\n) pb.Response\n```\nJohnChainBySnapshot will join the channel by the specified snapshot.\n\n```go\nfunc (e *PeerConfiger) Name() string\n```\n\n```go\ntype PeerShim struct {\n\tPeer *peer.Peer\n}\n```\nPeerShim adapts the peer instance for use with LSCC by providing methods previously provided by the scc provider.  If the lscc code weren't all getting deleted soon, it would probably be worth rewriting it to use these APIs directly rather that go through this shim, but it will be gone soon.\n\n```go\nfunc (p *PeerShim) GetApplicationConfig(cid string) (channelconfig.Application, bool)\n```\nGetApplicationConfig returns the configtxapplication.SharedConfig for the channel and whether the Application config exists\n\n```go\nfunc (p *PeerShim) GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error)\n```\nGetQueryExecutorForLedger returns a query executor for the specified channel\n\n```go\nfunc (p *PeerShim) PolicyManager(channelID string) (policies.Manager, bool)\n```\nReturns the policy manager associated to the passed channel and whether the policy manager exists\n\n```go\ntype PendidikTenagaKependidikan struct {\n\tID       string `json:\"id\"`\n\tIdSP     string `json:\"idSp\"`\n\tIdSMS    string `json:\"idSms\"`\n\tNamaPTK  string `json:\"namaPtk\"`\n\tNIDN     string `json:\"nidn\"`\n\tJabatan  string `json:\"jabatan\"`\n\tNomorSK  string `json:\"nomorSk\"`\n\tUsername string `json:\"username\"`\n}\n```\n\n```go\ntype PermittedNetworkInfo struct {\n\tNetworkName        string `json:\"NetworkName\"`\n\tIP                 string `json:\"IP\"`\n\tADDRESS            string `json:\"ADDRESS\"`\n\tCompanyName        string `json:\"CompanyName\"`\n\tPermittedNetworkId string `json:\"PermittedNetworkId\"`\n}\n```\n\n```go\ntype Person struct {\n\tName      string `json:\"name\"`\n\tBirthdate string `json:\"birthdate\"`\n\tAddress   string `json:\"address\"`\n\tPhone     string `json:\"phone\"`\n}\n```\nPerson defines the person structure with properties\n\n```go\ntype PersonAsset struct {\n\tID                 string\n\tEmailAddress       string\n\tFirstName          string\n\tLastName           string\n\tAmountOfMoneyOwned float32\n}\n```\n\n```go\ntype Persons struct {\n\tDumb     bool   `json:\"dumb\"`\n\tClientId string `json:\"clientid,omitempty\" metadata:\",optional\"`\n\tNumId    int    `json:\"numid,omitempty\" metadata:\",optional\"`\n}\n```\nedited as per [https://stackoverflow.com/questions/69637688/json-encode-in-golang-fabric-chaincode-behavior](https://stackoverflow.com/questions/69637688/json-encode-in-golang-fabric-chaincode-behavior)\n\n```go\ntype PesertaDidik struct {\n\tID        string  `json:\"id\"`\n\tIdSP      string  `json:\"idSp\"`\n\tIdSMS     string  `json:\"idSms\"`\n\tNamaPD    string  `json:\"namaPd\"`\n\tNIPD      string  `json:\"nipd\"`\n\tUsername  string  `json:\"username\"`\n\tTotalMutu float64 `json:\"totalMutu\"`\n\tTotalSKS  int     `json:\"totalSks\"`\n\tIPK       float64 `json:\"ipk\"`\n\tStatus    int     `json:\"status\"`\n}\n```\n\n```go\ntype Pessoa struct {\n\tPessoaID string `json:\"pessoaId\"`\n\tNome     string `json:\"nome\"`\n\tCpf      string `json:\"cpf\"`\n}\n```\n\n```go\ntype Phase struct {\n\tQty                float64                `json:\"qty\"`\n\tOutstandingQty     float64                `json:\"outstandingQty\"`\n\tPhaseState         string                 `json:\"phaseState\"` //Created, Open For Funding, PartlyFunded, FullyFunded, Seeking Validation, Validated, Complete\n\tStartDate          int                    `json:\"startDate\"`\n\tEndDate            int                    `json:\"endDate\"`\n\tValidationCriteria map[string][]Criterion `json:\"validationCriteria\"`\n\tCAValidation       Validation             `json:\"caValidation\"`\n}\n```\n\n```go\ntype PingChaincode struct {\n\tObjectType string `json:\"docType\"`\n\tNumber     int    `json:\"number\"`\n}\n```\n\n```go\ntype Plan struct {\n\tObjectType    string   `json:\"docType\"` //docType is used to distinguish the various types of objects in state database\n\tPlanId        string   `json:\"planid\"`  //the fieldtags are needed to keep case from bouncing around\n\tDescription   string   `json:\"description\"`\n\tDeadline      string   `json:\"deadline\"`\n\tFinalUpvote   int      `json:\"finalupvote\"`\n\tFinalDownvote int      `json:\"finaldownvote\"`\n\tIsActive      bool     `json: \"isactive\"`\n\tFinalComments []string `json: \"finalcomments\"`\n}\n```\n\n```go\ntype PlanPrivateDetails struct {\n\tObjectType string              `json:\"docType\"` //docType is used to distinguish the various types of objects in state database\n\tPlanId     string              `json:\"planid\"`  //the fieldtags are needed to keep case from bouncing around\n\tUpvote     int                 `json:\"upvote\"`\n\tDownvote   int                 `json:\"downvote\"`\n\tUserMap    map[string]int      `json:\"usermap\"`\n\tComments   map[string][]string `json: \"comments\"`\n}\n```\n\n```go\ntype PlatformChainCode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *PlatformChainCode) FindById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *PlatformChainCode) FindIndividualById(ctx contractapi.TransactionContextInterface, individualOrgId string) (string, error)\n```\n\n```go\nfunc (t *PlatformChainCode) FindIssueOrgById(ctx contractapi.TransactionContextInterface, issueOrgId string) (string, error)\n```\n\n```go\nfunc (t *PlatformChainCode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype PlatformOrg struct {\n\tID   string `json:\"id\"`   //平台机构ID\n\tName string `json:\"name\"` //平台机构名称\n}\n```\n\\*\n\n\t平台机构属性\n\n```go\ntype PledgeRedeemFund struct {\n\tObjectType string    `json:\"docType\"`\n\tRefID      string    `json:\"refID\"`\n\tAccountID  string    `json:\"accountID\"`\n\tAmount     float64   `json:\"amount\"`\n\tCurrency   string    `json:\"currency\"`\n\tCreateTime time.Time `json:\"createTime\"`\n}\n```\n\n```go\ntype Policy struct {\n\tObjectType   string `json:\"docType\"`      // Type of the object stored in the ledger\n\tPolicyID     string `json:\"policyID\"`     // Unique identifier for the policy\n\tSumAssured   int    `json:\"sumAssured\"`   // Total sum assured for the policy\n\tPersonName   string `json:\"personName\"`   // Name of the insured person\n\tDateOfBirth  string `json:\"dateOfBirth\"`  // Date of birth of the insured person\n\tGender       string `json:\"gender\"`       // Gender of the insured person\n\tStartDate    string `json:\"startDate\"`    // Start date of the policy\n\tEndDate      string `json:\"endDate\"`      // End date of the policy\n\tCoPay        int    `json:\"coPay\"`        // Co-pay percentage for the policy\n\tCoverages    string `json:\"coverages\"`    // Coverage details of the policy\n\tBenefits     string `json:\"benefits\"`     // Benefits provided by the policy\n\tExclusions   string `json:\"exclusions\"`   // Exclusions or limitations of the policy\n\tClaimedTotal int    `json:\"claimedTotal\"` // Total amount claimed so far\n}\n```\nPolicy represents the structure of a health insurance policy\n\n```go\ntype PortSupplyChain struct {\n}\n```\n\n```go\nfunc (t *PortSupplyChain) GetTxTimestampChannel(stub shim.ChaincodeStubInterface) (string, error)\n```\n\n```go\nfunc (t *PortSupplyChain) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *PortSupplyChain) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke is called per transaction on the chaincode.\n\n```go\ntype Portfolio struct {\n\tDocType    string     `json:\"docType\"`\n\tID         string     `json:\"id\"`\n\tFund       string     `json:\"fund\"`\n\tName       string     `json:\"name\"`\n\tSecurities []Security `json:\"securities\"`\n}\n```\n\n```go\ntype PortfolioAction struct {\n\tDocType     string   `json:\"docType\"`\n\tID          string   `json:\"id\"`\n\tFund        string   `json:\"fund\"`\n\tPortfolio   string   `json:\"portfolio\"`\n\tSecurity    Security `json:\"security\"`\n\tType        string   `json:\"type\"`\n\tDate        string   `json:\"date\"`\n\tPeriod      int      `json:\"period\"`\n\tStatus      string   `json:\"status\"`\n\tDescription string   `json:\"description\"`\n}\n```\n\n```go\ntype Post struct {\n\tHash     string   `json:\"hash\"`\n\tCreator  string   `json:\"creator\"`\n\tCID      string   `json:\"cid\"`\n\tReplyTo  string   `json:\"replyTo\"`\n\tBelongTo string   `json:\"belongTo\"`\n\tAssets   []string `json:\"assets,omitempty\"`\n\n\tDeleted bool `json:\"deleted\"`\n\n\tUpvotes   []string            `json:\"upvotes,omitempty\"`\n\tDownvotes []string            `json:\"downvotes,omitempty\"`\n\tEmojis    map[string][]string `json:\"emojis,omitempty\"`\n}\n```\n\n```go\ntype Postinginfo struct {\n\tUserID          string  `json:\"projecttitle\"`\n\tPostingtitle    string  `json:\"projecttitle\"`\n\tPostingcontents string  `json:\"projecttitle\"`\n\tPostingdate     string  `json:\"projecttitle\"`\n\tScore           float64 `json:\"score\"`\n}\n```\n\n```go\ntype PowerTXContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (p *PowerTXContract) Accept(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string) (*Compact, error)\n```\nAccept powerUser接受报价\n\n```go\nfunc (p *PowerTXContract) Bid(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string,\n\tpowerPlantName string,\n\tprice float32) (*Compact, error)\n```\nBid powerPlant 竞价\n\n```go\nfunc (p *PowerTXContract) CancelBid(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string) (*Compact, error)\n```\nCancelBid powerPlant取消报价\n\n```go\nfunc (p *PowerTXContract) CancelCommit(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string) (*Compact, error)\n```\nCancelCommit powerUser取消提交commit\n\n```go\nfunc (p *PowerTXContract) CheckCompact(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string,\n\tpowerUsed int,\n\tpowerPlant int) (*Compact, error)\n```\n\n```go\nfunc (p *PowerTXContract) Commit(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string,\n\tpowerUserName string,\n\ttransaction int,\n\tprice float32,\n\tstartTime string,\n\tendTime string) (*Compact, error)\n```\nCommit powerUser提交compact\n\n```go\nfunc (p *PowerTXContract) CompactExist(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string) bool\n```\nCompactExist 判断compact是否存在\n\n```go\nfunc (p *PowerTXContract) Deal(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string,\n\tadminName string) (*Compact, error)\n```\nDeal admin参与交易，达成三方交易\n\n```go\nfunc (p *PowerTXContract) QueryCompact(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string) (*Compact, error)\n```\nQueryCompact 获取compact信息\n\n```go\nfunc (p *PowerTXContract) Reject(\n\tctx contractapi.TransactionContextInterface,\n\tcompactId string,\n\tnewPrice float32) (*Compact, error)\n```\nReject powerUser 拒绝报价，并重新提出报价\n\n```go\ntype PrevisaoRio struct {\n\tRegiao       string `json:\"regiao\"`\n\tTempMinMax   string `json:\"tempminmax\"`\n\tCeuMadrugada string `json:\"ceumadrugada\"`\n\tCeuManha     string `json:\"ceumanha\"`\n\tForecastTime string `json:\"forecasttime\"`\n\tInsertTime   string `json:\"inserttime\"`\n}\n```\n\n```go\ntype PrimaryContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *PrimaryContract) CreatePatient(ctx contractapi.TransactionContextInterface, patientID string, firstName string, lastName string, age int, password string) error\n```\n\n```go\nfunc (c *PrimaryContract) DeletePatient(ctx contractapi.TransactionContextInterface, patientId string) error\n```\n\n```go\nfunc (c *PrimaryContract) GetLatestPatientID(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *PrimaryContract) GetPatientPassword(ctx contractapi.TransactionContextInterface, patientID string) (string, error)\n```\n\n```go\nfunc (c *PrimaryContract) GrantAccessToDoctor(ctx contractapi.TransactionContextInterface, patientId string, doctorId string) error\n```\n\n```go\nfunc (c *PrimaryContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (c *PrimaryContract) PatientExists(ctx contractapi.TransactionContextInterface, patientID string) (bool, error)\n```\n\n```go\nfunc (c *PrimaryContract) QueryAllPatients(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\n\n```go\nfunc (c *PrimaryContract) QueryPatientsByLastName(ctx contractapi.TransactionContextInterface, lastName string) ([]*entities.Patient, error)\n```\n\n```go\nfunc (c *PrimaryContract) ReadPatient(ctx contractapi.TransactionContextInterface, patientID string) (*entities.Patient, error)\n```\n\n```go\nfunc (c *PrimaryContract) SetPatientAsDeleted(ctx contractapi.TransactionContextInterface, patientID string) error\n```\n\n```go\nfunc (c *PrimaryContract) UpdatePatient(ctx contractapi.TransactionContextInterface, patientID string, firstName string, lastName string, age int) error\n```\n\n```go\ntype PrivacyChaincode struct {\n}\n```\n\n```go\nfunc (t *PrivacyChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (t *PrivacyChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n============================================================================================================================ Invoke - Our entry point for Invocations ============================================================================================================================\n\n```go\ntype PrivacyData struct {\n\tIdentifier string                 `json:\"identifier\"` // 唯一标识, client1_to_rsu1_epoch1\n\tData       map[string]interface{} `json:\"data\"`       // 存储数据\n}\n```\n\n```go\nfunc GetPrivacyDataInfo(stub shim.ChaincodeStubInterface, Identifier string) (PrivacyData, bool)\n```\n\n```go\ntype PrivateDataDistributor interface {\n\tDistributePrivateData(channel string, txID string, privateData *transientstore.TxPvtReadWriteSetWithConfigInfo, blkHt uint64) error\n}\n```\n\n```go\ntype PrivateDetails struct {\n\tSecretKey string `json:\"secretKey\"`\n\tNonce     string `json:\"nonce\"`\n}\n```\n\n```go\ntype PrivateHistoryStrategy interface {\n\t// Append .\n\tAppend(stub shim.ChaincodeStubInterface, collection, key string, value []byte, isDelete bool) error\n\t// GetIterator .\n\tGetIterator(stub shim.ChaincodeStubInterface, collection, key string) (shim.HistoryQueryIteratorInterface, error)\n}\n```\nPrivateHistoryStrategy .\n\n```go\nfunc NewPrivateHistoryArrayAppendStrategy(keysPrefix, keysSuffix string) PrivateHistoryStrategy\n```\nNewPrivateHistoryArrayAppendStrategy .\n\n```go\ntype PrivateMockStateRangeQueryIterator struct {\n\tClosed     bool\n\tStub       *MockStub\n\tStartKey   string\n\tEndKey     string\n\tCurrent    *list.Element\n\tCollection string\n}\n```\n\n```go\nfunc NewPrivateMockStateRangeQueryIterator(stub *MockStub, collection string, startKey string, endKey string) *PrivateMockStateRangeQueryIterator\n```\n\n```go\nfunc (iter *PrivateMockStateRangeQueryIterator) Close() error\n```\nClose closes the range query iterator. This should be called when done reading from the iterator to free up resources.\n\n```go\nfunc (iter *PrivateMockStateRangeQueryIterator) HasNext() bool\n```\nHasNext returns true if the range query iterator contains additional keys and values.\n\n```go\nfunc (iter *PrivateMockStateRangeQueryIterator) Next() (*queryresult.KV, error)\n```\nNext returns the next key and value in the range query iterator.\n\n```go\ntype PrivateOnChainView struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *PrivateOnChainView) CreateView(ctx contractapi.TransactionContextInterface, viewName, viewPredicate, mergePeriod string) error\n```\nCreateView can be constrained to be called by view owner only. Refer to [https://hyperledger-fabric.readthedocs.io/en/release-2.2/access\\_control.html](https://hyperledger-fabric.readthedocs.io/en/release-2.2/access_control.html) Func CreateView(viewName, viewPredicate):\n\n\tview_predicates[viewName] = viewPredicate;\n\tview_txns[viewName] = [];\n\n```go\nfunc (t *PrivateOnChainView) InvokeTxn(ctx contractapi.TransactionContextInterface, pub_arg, private_arg string) error\n```\n\n```go\nfunc (t *PrivateOnChainView) RetrieveTxnIdsByView(ctx contractapi.TransactionContextInterface, view_name string) string\n```\nFunc RetrieveTxnIdsByView(viewName):\n\n\tReturn view_txns[view_name];\n\n```go\ntype PrivateQueryExecutor interface {\n\tGetPrivateDataHash(namespace, collection, key string) (value []byte, err error)\n}\n```\n\n```go\ntype PrivateQueryExecutorShim struct {\n\tNamespace  string\n\tCollection string\n\tState      PrivateQueryExecutor\n}\n```\n\n```go\nfunc (pqes *PrivateQueryExecutorShim) CollectionName() string\n```\n\n```go\nfunc (pqes *PrivateQueryExecutorShim) GetStateHash(key string) ([]byte, error)\n```\n\n```go\ntype Process struct {\n\tID string `json:\"id\"`\n\n\tStatus string `json:\"status\"`\n\n\tProcess struct {\n\t\tID string `json:\"id\"`\n\n\t\tName string `json:\"name\"`\n\n\t\tNameAr string `json:\"name_ar\"`\n\t} `json:\"process\"`\n\n\tSteps []Step `json:\"steps\"`\n\n\tQuantity interface{} `json:\"quantity\"`\n\n\tQuantityUnit interface{} `json:\"quantity_unit\"`\n\n\tCreatedBy CreatedBy `json:\"created_by\"`\n\n\tCreatedAt string `json:\"created_at\"`\n}\n```\n\n```go\ntype ProcessRecord = structures.ProcessRecord\n```\n\n```go\ntype ProduceRecord = structures.ProduceRecord\n```\n\n```go\ntype Product struct {\n\tProductID        string `json:\"ProductID\"`\n\tProductType      string `json:\"ProductType\"`\n\tOwner            Owner  `json:\"Owner\"`\n\tWithManufacturer bool   `json:\"WithManufacturer\"`\n\tWithRetailer     bool   `json:\"WithRetailer\"`\n\tWithConsumer     bool   `json:\"WithConsumer\"`\n}\n```\n\n```go\ntype ProductContract struct {\n\tcontractapi.Contract\n}\n```\nProductContract contract for handling products\n\n```go\nfunc (s *ProductContract) CreateProduct(ctx utils.RoleBasedTransactionContextInterface, id string, name string, origin string, category string,\n\tunitPrice float64, unitMeasurement string, quantity int, productionDateString string, expirationDateString string, imageSrc string) error\n```\nCreateProduct creates a new product and adds it to the world state using id as key. Note: A product created by this method is marked as unavailable upon creation time. In order to make it available, method MarkAsAvailable() must be used.\n\n```go\nfunc (s *ProductContract) CreateProductAvailable(ctx utils.RoleBasedTransactionContextInterface, id string, name string, origin string, category string,\n\tunitPrice float64, unitMeasurement string, quantity int, productionDateString string, expirationDateString string, imageSrc string) error\n```\nCreateProductAvailable is the combination of CreateProduct() and MarkAsAvailable() This method creates a new product and marks it as available upon creation time. The product is then added to the world state using id as key.\n\n```go\nfunc (s *ProductContract) DeleteProduct(ctx utils.RoleBasedTransactionContextInterface, productID string) error\n```\nDeleteProduct removes a product key-value pair from the ledger.\n\n```go\nfunc (s *ProductContract) GetEvaluateTransactions() []string\n```\nGetEvaluateTransactions returns functions of ProductContract not to be tagged as submit.\n\n```go\nfunc (s *ProductContract) GetProductHistory(ctx utils.RoleBasedTransactionContextInterface, productID string) ([]HistoryQueryResult, error)\n```\nGetProductHistory returns the chain of update for a product since issuance.\n\n```go\nfunc (s *ProductContract) GetProductsByCategory(ctx utils.RoleBasedTransactionContextInterface, category string) ([]*Product, error)\n```\nGetProductsByCategory performs a range query based on the category provided.\n\n```go\nfunc (s *ProductContract) GetProductsByRange(ctx utils.RoleBasedTransactionContextInterface, startID, endID string) ([]*Product, error)\n```\nGetProductsByRange performs a range query based on the start and end IDs provided.\n\n```go\nfunc (s *ProductContract) MarkAsAvailable(ctx utils.RoleBasedTransactionContextInterface, productID string) error\n```\nMarkAsAvailable marks a product as available.\n\n```go\nfunc (s *ProductContract) MarkAsUnavailable(ctx utils.RoleBasedTransactionContextInterface, productID string) error\n```\nMarkAsAvailable marks a product as unavailable.\n\n```go\nfunc (s *ProductContract) ProductExists(ctx utils.RoleBasedTransactionContextInterface, productID string) (bool, error)\n```\nProductExists returns true when product with given ID exists in the ledger.\n\n```go\nfunc (s *ProductContract) QueryAllAvailableProducts(ctx utils.RoleBasedTransactionContextInterface) ([]*Product, error)\n```\nQueryAllAvailableProducts queries for all available products. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (s *ProductContract) QueryAllProducts(ctx utils.RoleBasedTransactionContextInterface) ([]*Product, error)\n```\nQueryAllProducts queries for all products. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (s *ProductContract) QueryAllUnavailableProducts(ctx utils.RoleBasedTransactionContextInterface) ([]*Product, error)\n```\nQueryAllUnavailableProducts queries for all unavailable products. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (s *ProductContract) QueryProducts(ctx utils.RoleBasedTransactionContextInterface, queryString string) ([]*Product, error)\n```\nQueryProducts uses a query string to perform a query for products. Query string matching state database syntax is passed in and executed as is. Supports ad hoc queries that can be defined at runtime by the client. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (s *ProductContract) QueryProductsByCategory(ctx utils.RoleBasedTransactionContextInterface, category string) ([]*Product, error)\n```\nQueryProductsByCategory an alias of GetProductsByCategory()\n\n```go\nfunc (s *ProductContract) QueryProductsByName(ctx utils.RoleBasedTransactionContextInterface, name string) ([]*Product, error)\n```\nQueryProductsByOwner queries for products based on their names. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (s *ProductContract) ReadProduct(ctx utils.RoleBasedTransactionContextInterface, productID string) (*Product, error)\n```\nReadProduct retrieves a product from the ledger.\n\n```go\nfunc (s *ProductContract) UpdateProduct(ctx utils.RoleBasedTransactionContextInterface, productID string,\n\tnewName string, newOrigin string, newCategory string, newUnitPrice float64, newUnitMeasurement string,\n\tnewQuantity int, newProductionDateString string, newExpirationDateString string) error\n```\nUpdateProduct updates all product's fields using id as key. New value of a field may be the same as old value. However, if all new values are the same as old values, then no update is executed and nothing is committed to the ledger.\n\n```go\nfunc (s *ProductContract) UpdateProductCategory(ctx utils.RoleBasedTransactionContextInterface, productID string, newCategory string) error\n```\nUpdateProductName updates a product's category using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductExpirationDate(ctx utils.RoleBasedTransactionContextInterface, productID string,\n\tnewExpirationDateString string) error\n```\nUpdateProductExpirationDate updates a product's expiration date using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductImageSource(ctx utils.RoleBasedTransactionContextInterface, productID string, newImageSrc string) error\n```\nUpdateProductUnitMeasurement updates a product's image source using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductName(ctx utils.RoleBasedTransactionContextInterface, productID string, newName string) error\n```\nUpdateProductName updates a product's name using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductOrigin(ctx utils.RoleBasedTransactionContextInterface, productID string, newOrigin string) error\n```\nUpdateProductOrigin updates a product's origin using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductProductionDate(ctx utils.RoleBasedTransactionContextInterface, productID string,\n\tnewProductionDateString string) error\n```\nUpdateProductProductionDate updates a product's production date using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductQuantity(ctx utils.RoleBasedTransactionContextInterface, productID string, newQuantity int) error\n```\nUpdateProductQuantity updates a product's quantity using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductUnitMeasurement(ctx utils.RoleBasedTransactionContextInterface, productID string,\n\tnewUnitMeasurement string) error\n```\nUpdateProductUnitMeasurement updates a product's unit of measurement using id as key.\n\n```go\nfunc (s *ProductContract) UpdateProductUnitPrice(ctx utils.RoleBasedTransactionContextInterface, productID string, newUnitPrice float64) error\n```\nUpdateProductUnitPrice updates a product's unit price using id as key.\n\n```go\ntype ProductDates struct {\n\tCreateProductDate                     string `json:\"CreateProductDate\"`\n\tSendToFreightForwarderDate            string `json:\"SendToFreightForwarderDate\"`\n\tSendToExportPortDate                  string `json:\"SendToExportPortDate\"`\n\tSendToShippingCompanyDate             string `json:\"SendToShippingCompanyDate\"`\n\tSendToImportPortDate                  string `json:\"SendToImportPortDate\"`\n\tSendToDestinationFreightForwarderDate string `json:\"SendToDestinationFreightForwarderDate\"`\n\tSendToConsigneeDate                   string `json:\"SendToConsigneeDate\"`\n\tOrderedDate                           string `json:\"OrderedDate\"`\n\tDeliveredDate                         string `json:\"DeliveredDate\"`\n}\n```\n\n```go\ntype ProductHistory struct {\n\tRecord    *Product  `json:\"Record\"`\n\tTxId      string    `json:\"TxId\"`\n\tTimestamp time.Time `json:\"Timestamp\"`\n\tIsDelete  bool      `json:\"IsDelete\"`\n}\n```\n\n```go\ntype ProductState struct {\n\tSellerID        string `json:\"SellerID\"`\n\tProductID       string `json:\"ProductID\"`\n\tState           string `json:\"State\"`\n\tBuyerID         string `json:\"BuyerID\"`\n\tBuyDate         uint64 `json:\"BuyDate\"`\n\tDeliver_address string `json:\"Deliver_address\"`\n\tDeliverID       string `json:\"DeliverID\"`\n\tReject_info     string `json:\"Reject_info\"`\n\tUpdate_date     uint64 `json:\"Update_date\"`\n}\n```\n\n```go\ntype Project struct {\n\tObjectType       string                  `json:\"docType\"`\n\tProjectName      string                  `json:\"projectName\"`\n\tProjectType      string                  `json:\"projectType\"`\n\tPlace            string                  `json:\"place\"`\n\tPhases           []Phase                 `json:\"phases\"`\n\tCreationDate     int                     `json:\"creationDate\"`\n\tActualStartDate  int                     `json:\"actualStartDate\"`\n\tTotalProjectCost float64                 `json:\"totalProjectCost\"`\n\tProjectState     string                  `json:\"projectState\"`  //Created, Open For Funding, PartlyFunded, FullyFunded, Seeking Validation, Completed\n\tApprovalState    string                  `json:\"approvalState\"` //Approved, Abandoned, UnApproved\n\tNGO              string                  `json:\"ngo\"`\n\tContributors     map[string]string       `json:\"contributors\"`\n\tContributions    map[string]Contribution `json:\"contributions\"`\n\tTotalReceived    float64                 `json:\"totalReceived\"`\n\tTotalRedeemed    float64                 `json:\"totalRedeemed\"`\n\tComments         string                  `json:\"comments\"`\n\tBalance          float64                 `json:\"balance\"`\n}\n```\n\n```go\ntype ProjectContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (o *ProjectContract) Delete(ctx contractapi.TransactionContextInterface, pJSON string) error\n```\nDelete 删除指定pJSON的信息\n\n```go\nfunc (o *ProjectContract) Exists(ctx contractapi.TransactionContextInterface, index string) (bool, error)\n```\nExists 判断某项目是否存在\n\n```go\nfunc (s *ProjectContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n初始化智能合约数据\n\n```go\nfunc (o *ProjectContract) Insert(ctx contractapi.TransactionContextInterface, pJSON string) error\n```\nInsert 写入新记录\n\n```go\nfunc (o *ProjectContract) SelectAll(ctx contractapi.TransactionContextInterface) ([]*model.Project, error)\n```\nSelectAll 读取所有记录\n\n```go\nfunc (o *ProjectContract) SelectAllWithPagination(ctx contractapi.TransactionContextInterface, pageSize int32, bookmark string) (string, error)\n```\n富分页查询所有数据\n\n```go\nfunc (o *ProjectContract) SelectByIndex(ctx contractapi.TransactionContextInterface, pJSON string) (*model.Project, error)\n```\nSelectByIndex 读取指定index的记录\n\n```go\nfunc (o *ProjectContract) SelectBySome(ctx contractapi.TransactionContextInterface, key, value string) ([]*model.Project, error)\n```\n按某索引查询所有数据\n\n```go\nfunc (o *ProjectContract) SelectBySomeWithPagination(ctx contractapi.TransactionContextInterface, key, value string, pageSize int32, bookmark string) (string, error)\n```\n按关键字富分页查询所有数据\n\n```go\nfunc (o *ProjectContract) SelectHistoryByIndex(ctx contractapi.TransactionContextInterface, pJSON string) (string, error)\n```\n按某索引查询数据历史\n\n```go\nfunc (o *ProjectContract) Update(ctx contractapi.TransactionContextInterface, pJSON string) error\n```\nUpdate 更新项目信息.\n\n```go\ntype ProjectKickerChaincode struct {\n\t// contains filtered or unexported fields\n}\n```\nProjectKickerChaincode example - simple Chaincode implementation\n\n```go\nfunc (t *ProjectKickerChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n//////////////////////////////////////////////////////////////////////////////// Initialize Chaincode at Deploy Time ////////////////////////////////////////////////////////////////////////////////\n\n```go\nfunc (t *ProjectKickerChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n//////////////////////////////////////////////////////////////////////////////// Invoke Chaincode functions as requested by the Invoke Function In fabric 1.0 both Invoke and Query Requests are handled by Invoke ////////////////////////////////////////////////////////////////////////////////\n\n```go\ntype ProofSmartContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *ProofSmartContract) AddCampaignTokenTransaction(ctx contractapi.TransactionContextInterface, camId string, deviceId string, addedTimeStr int64, dCsStr string, dRsStr string, dHashesStr string, dKeyStr string, uCsStr string, uRsStr string, uHashesStr string, uKeyStr string) (*putils.CustomerCampaignTokenTransaction, error)\n```\n\n```go\nfunc (s *ProofSmartContract) DeleteAllProofs(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *ProofSmartContract) DeleteProofById(ctx contractapi.TransactionContextInterface, proofId string) (bool, error)\n```\n\n```go\nfunc (s *ProofSmartContract) FindTokenTransactionsByCampaignId(ctx contractapi.TransactionContextInterface, camId string, mode string) ([]*putils.CustomerCampaignTokenTransaction, error)\n```\n\n```go\nfunc (s *ProofSmartContract) FindTokenTransactionsByTimestamps(ctx contractapi.TransactionContextInterface, startTimeStr string, endTimeStr string) ([]*putils.CustomerCampaignTokenTransaction, error)\n```\n\n```go\nfunc (s *ProofSmartContract) GeneratePoCProof2(ctx contractapi.TransactionContextInterface, camId string, userId string) (*putils.PoCProof, error)\n```\n\n```go\nfunc (s *ProofSmartContract) GetAllProofs(ctx contractapi.TransactionContextInterface) ([]*putils.CustomerCampaignTokenTransaction, error)\n```\n\n```go\nfunc (s *ProofSmartContract) GetAllProofsInCampaignRange(ctx contractapi.TransactionContextInterface, camId string) ([]*putils.CustomerCampaignTokenTransaction, error)\n```\n\n```go\nfunc (s *ProofSmartContract) GetProofById(ctx contractapi.TransactionContextInterface, proofId string) (*putils.CollectedCustomerProof, error)\n```\n\n```go\nfunc (s *ProofSmartContract) VerifyCampaignProof(ctx contractapi.TransactionContextInterface, camId string, proofId string) (bool, error)\n```\n\n```go\nfunc (s *ProofSmartContract) VerifyPoCProof(ctx contractapi.TransactionContextInterface, camId string, cStr string, rStr string) (bool, error)\n```\n\n```go\nfunc (s *ProofSmartContract) VerifyTPoCProof(ctx contractapi.TransactionContextInterface, camId string, csStr string, rsStr string, hashesStr string, keyStr string) (bool, error)\n```\n\n```go\ntype Property struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\"`\n}\n```\nProperty model\n\n```go\ntype PropertyContract struct {\n\tcontractapi.Contract\n}\n```\nPropertyContract for handling writing and reading from the world state\n\n```go\nfunc (c *PropertyContract) CreateProperty(\n\tctx contractapi.TransactionContextInterface,\n\tpropertyId string,\n\tplotNumber int,\n\tbuilder string,\n\towner string,\n\tcurrentPrice float32,\n\tsellingPrice float32) error\n```\n\n```go\nfunc (c *PropertyContract) DeleteProperty(\n\tctx contractapi.TransactionContextInterface,\n\tpropertyId string) error\n```\nDeleteProperty deletes an given property from the world state.\n\n```go\nfunc (sc *PropertyContract) Get(ctx contractapi.TransactionContextInterface, key string) (*PropertyObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (c *PropertyContract) GetAllProperty(\n\tctx contractapi.TransactionContextInterface,\n) ([]*models.Property, error)\n```\nGetAllProperty returns all properties found in world state\n\n```go\nfunc (sc *PropertyContract) History(ctx contractapi.TransactionContextInterface, key string) ([]PropertyHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (c *PropertyContract) PropertyExists(\n\tctx contractapi.TransactionContextInterface,\n\tpropertyId string) (bool, error)\n```\nPropertyExists returns true when property with given ID exists in world state\n\n```go\nfunc (sc *PropertyContract) Put(ctx contractapi.TransactionContextInterface, proID int, sellerID int, protype string, proname string, desc string, address string, location string, locationlat string, locationlong string, views string, viewerstats string, entrydate string, expirydate string, status string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\nfunc (c *PropertyContract) ReadProperty(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) (*models.Property, error)\n```\n\n```go\nfunc (c *PropertyContract) TransferProperty(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n\tnewOwner string) (string, error)\n```\n\n```go\nfunc (c *PropertyContract) UpdateProperty(\n\tctx contractapi.TransactionContextInterface,\n\tpropertyId string,\n\tplotNumber int,\n\tbuilder string,\n\towner string,\n\tcurrentPrice float32,\n\tsellingPrice float32) error\n```\n\n```go\ntype PropertyHistory struct {\n\tTxID      string       `json:\"txID\"`\n\tTimestamp time.Time    `json:\"timestamp\"`\n\tProperty  *PropertyObj `json:\"property\"`\n}\n```\nPropertyHistory ...\n\n```go\ntype PropertyObj struct {\n\tProID        int       `json:\"proID\"`\n\tSellerID     int       `json:\"sellerID\"`\n\tProType      string    `json:\"protype\"`\n\tProName      string    `json:\"proname\"`\n\tDesc         string    `json:\"desc\"`\n\tAddress      string    `json:\"address\"`\n\tLocation     string    `json:\"location\"`\n\tLocationLat  string    `json:\"locationlat\"`\n\tLocationLong string    `json:\"locationlong\"`\n\tViews        string    `json:\"views\"`\n\tViewerStats  string    `json:\"viewerstats\"`\n\tEntryDate    string    `json:\"entrydate\"`\n\tExpiryDate   string    `json:\"expirydate\"`\n\tStatus       string    `json:\"status\"`\n\tCreated      time.Time `json:\"created\"`\n\tCreatedby    string    `json:\"createdby\"`\n}\n```\nPropertyObj ...\n\n```go\ntype Proposal struct {\n\t//docType is used to distinguish the various types of objects in state database\n\tObjectType string `json:\"docType\"`\n\n\t// ID is the ID of the proposal\n\tID string `json:\"ID\"`\n\n\t// ChannelID is the channel ID targeted by the proposal\n\tChannelID string `json:\"channelID\"`\n\n\t// Description describes the proposal\n\tDescription string `json:\"description,omitempty\" metadata:\",optional\"`\n\n\t// Creator describes the msp ID of the proposal creator\n\tCreator string `json:\"creator\"`\n\n\t// Action describes the action type of the proposed update ('update' or 'create')\n\tAction string `json:\"action\"`\n\n\t// Status is the status of the proposal\n\tStatus string `json:\"status\"`\n\n\t// OpsProfile is the ops profile used for the input of configtx-cli to create the ConfigUpdate.\n\t// This is the information corresponding to Artifacts.ConfigUpdate.\n\tOpsProfile interface{} `json:\"opsProfile\"`\n\n\t// Artifacts contains the artifacts for the channel update proposal\n\tArtifacts Artifacts `json:\"artifacts\"`\n}\n```\nProposal gathers all information of a proposed update, including all added signatures.\n\n```go\ntype ProposalInput struct {\n\tID           string      `json:\"ID\"`\n\tChannelID    string      `json:\"channelID\"`\n\tDescription  string      `json:\"description,omitempty\" metadata:\",optional\"`\n\tAction       string      `json:\"action,omitempty\" metadata:\",optional\"`\n\tOpsProfile   interface{} `json:\"opsProfile\"`\n\tConfigUpdate string      `json:\"configUpdate\"`\n\tSignature    string      `json:\"signature\"`\n}\n```\nProposalInput represents a request input of a new proposal.\n\n```go\ntype ProviderInfo struct {\n\tProviderID   string `json:\"provider_id\"`\n\tProviderName string `json:\"provider_name\"`\n\tAddress      string `json:\"address\"`\n}\n```\n\n```go\ntype Proxy struct {\n}\n```\n\n```go\nfunc (p *Proxy) Init(stub shim.ChaincodeStubInterface) (res peer.Response)\n```\n\n```go\nfunc (p *Proxy) Invoke(stub shim.ChaincodeStubInterface) (res peer.Response)\n```\n\n```go\ntype PseudoRecord struct {\n\t// 直接拿PID当成索引\n\tPID              string\n\tOrigDomain       string\n\tDestDomain       string\n\tPubkeyDev2Domain string\n\tValid            string\n\tTag              string // 谁核验的\n\tTimestamp        string\n}\n```\n\n```go\ntype PublicParametersManager interface {\n\tGraphHiding() bool\n}\n```\n\n```go\ntype QRISAsset struct {\n\tID       string `json:\"ID\"`\n\tOwner    string `json:\"Owner\"`\n\tProducer string `json:\"Producer\"`\n\tValue    int    `json:\"Value\"`\n}\n```\n\n```go\ntype QrCodeDinamico struct {\n\tIspb          string  `json:\"ispb\"`\n\tTipoConta     string  `json:\"tipo_conta\"`\n\tAgencia       string  `json:\"agencia\"`\n\tConta         string  `json:\"conta\"`\n\tLink          string  `json:\"link\"`\n\tIdentificador string  `json:\"identificador\"`\n\tValor         float64 `json:\"valor\"`\n}\n```\n\n```go\ntype QueryBuy struct {\n\tKey    string `json:\"Key\"`\n\tRecord *Buy\n}\n```\n\n```go\ntype QueryCard struct {\n\tCards []Card `json:\"cards\"`\n}\n```\n\n```go\ntype QueryChaincode struct {\n}\n```\nQueryChaincode Represents our chaincode object\n\n```go\nfunc (token *QueryChaincode) GetTokenByRange(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetTokenByRange executes the Range query on state data Returns the data in the specified key range args\\[0]=startKey   args\\[1]=endKey\n\n```go\nfunc (token *QueryChaincode) GetTokenByRangeWithPagination(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetTokenByRangeWithPagination executes the stub funtion GetStateByRangeWithPagination\n\n```go\nfunc (token *QueryChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit Implements the Init method args\\[0]=Start index, args\\[1]=Count of records If args not provided then Initializes the state with 10 records (key1 to key10)\n\n```go\nfunc (token *QueryChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\nfunc (token *QueryChaincode) SetupSampleData(stub shim.ChaincodeStubInterface, args []string)\n```\nSetupSampleData creates multiple instances of the SimpleToken Reuires the startIndex \u0026 the count of records to be created in the State DB Once data is setup, we will use it for querying using range function\n\n```go\ntype QueryExecutorProvider interface {\n\tTxQueryExecutor(channelID, txID string) ledger.SimpleQueryExecutor\n}\n```\nQueryExecutorProvider provides a way to retrieve the query executor assosciated with an invocation\n\n```go\ntype QueryMutator func(\n\tsdk sdk.SDK,\n\tctx context.Context,\n\tchannel string,\n\tchaincode string,\n\targs [][]byte,\n\tidentity msp.SigningIdentity,\n\ttransArgs map[string][]byte) (*peer.Response, error)\n```\n\n```go\ntype QueryProductResult struct {\n\tKey    string   `json:\"key\"`\n\tRecord *Product `json:\"record\"`\n}\n```\n\n```go\ntype QueryResponseMetadata struct {\n\tFetchedRecordsCount int\n\tBookmark            string\n}\n```\n\n```go\ntype QueryResult struct {\n\tKey    string `json:\"Key\"`\n\tRecord *Car\n}\n```\n\n```go\ntype QueryResult_incompany struct {\n\tKey    string `json:\"Key\"`\n\tRecord *Contract_in_company\n}\n```\n\n```go\ntype QueryUserResult struct {\n\tKey    string `json:\"key\"`\n\tRecord *User  `json:\"record\"`\n}\n```\nQueryResult structure used for handling result of query\n\n```go\ntype QueuedTransaction struct {\n\tObjectType string    `json:\"docType\"`\n\tRefID      string    `json:\"refID\"`\n\tSender     string    `json:\"sender\"`\n\tReceiver   string    `json:\"receiver\"`\n\tPriority   int       `json:\"priority\"`\n\tNettable   bool      `json:\"nettable\"`\n\tAmount     float64   `json:\"amount\"`\n\tCurrency   string    `json:\"currency\"`\n\tStatus     string    `json:\"status\"`\n\tIsFrozen   bool      `json:\"isFrozen\"`\n\tCreateTime time.Time `json:\"createTime\"`\n\tUpdateTime time.Time `json:\"updateTime\"`\n}\n```\n\n```go\ntype QuickSortRecHandler struct {\n}\n```\n\n```go\nfunc (self *QuickSortRecHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *QuickSortRecHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *QuickSortRecHandler) QuickSortRec(A []int, l int, r int)\n```\n\n```go\ntype RangeQueryResult struct {\n\tRecord *Asset `json:\"record\"`\n}\n```\nRangeQueryResult structure used for returning result of range query\n\n```go\ntype RangedQueryResult struct {\n\tFromKey string `json:\"fromKey\"`\n\tToKey   string `json:\"toKey\"`\n\tRecord  *Asset\n}\n```\n\n```go\ntype Rate struct {\n\tProjectTitle string  `json:\"projecttitle\"`\n\tScore        float64 `json:\"score\"`\n}\n```\n\n```go\ntype Raw struct {\n\tRawId          string `json:\"RawId\"`\n\tRawName        string `json:\"RawName\"`\n\tCreatedDate    string `json:\"CreateDate\"`\n\tSuppliedDate   string `json:\"SuppliedDate\"`\n\tSupplierId     string `json:\"SupplierId\"`\n\tManufacturerId string `json:\"ManufacturerId\"`\n\tStatus         string `json:\"Status\"`\n\tHashCode       string `json:\"HashCode\"`\n}\n```\n\n```go\ntype RawHistory struct {\n\tRecord    *Raw      `json:\"Record\"`\n\tTxId      string    `json:\"TxId\"`\n\tTimestamp time.Time `json:\"Timestamp\"`\n\tIsDelete  bool      `json:\"IsDelete\"`\n}\n```\n\n```go\ntype Rcro struct {\n\tID         string `json:\"ID\"`\n\tDownstream string `json:\"Downstream\"`\n\tUpstream   string `json:\"Upstream\"`\n\tUPC        string `json:\"UPC\"`\n}\n```\n\n```go\ntype ReadingsContract struct {\n\tcontractapi.Contract\n\t// contains filtered or unexported fields\n}\n```\nReadingsContract provides functions for managing a models.MetricReadings from models.Device sensors\n\n```go\nfunc NewReadingsContract() *ReadingsContract\n```\nNewReadingsContract constructs new ReadingsContract instance.\n\n```go\nfunc (rc *ReadingsContract) BindToEventSocket(ctx contractapi.TransactionContextInterface, assetID, metric string) string\n```\nBindToEventSocket creates EventSocketSubscriptionTicket for connected party, so that each posted models.MetricReadings record, which satisfies client request for given \\`assetID\\` and \\`metric\\`, would be sent directly to it via event streaming subscription.\n\n```go\nfunc (rc *ReadingsContract) CloseEventSocket(_ contractapi.TransactionContextInterface, eventToken string)\n```\nCloseEventSocket revokes EventSocketSubscriptionTicket for connected party aka close event streaming subscription for newly posted models.MetricReadings records.\n\n```go\nfunc (rc *ReadingsContract) Exists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nExists determines whether the models.MetricReadings record exists in the blockchain ledger.\n\n```go\nfunc (rc *ReadingsContract) ForAsset(\n\tctx contractapi.TransactionContextInterface,\n\tassetID string,\n) (*response.MetricReadingsResponse, error)\n```\nForAsset retrieves all models.MetricReadings records from blockchain ledger for specific asset by given \\`assetID\\`, aggregating them into the response.MetricReadingsStream.\n\n```go\nfunc (rc *ReadingsContract) ForMetric(ctx contractapi.TransactionContextInterface, assetID string, metricID string) (response.MetricReadingsStream, error)\n```\nForMetric retrieves all models.MetricReadings records from blockchain ledger for specific asset by given \\`assetID\\`, aggregating them into the response.MetricReadingsStream containing only values for given \\`metricID\\`.\n\n```go\nfunc (rc *ReadingsContract) Init(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (rc *ReadingsContract) NotifyRequirementsChange(\n\tctx contractapi.TransactionContextInterface,\n\tr *models.Requirements,\n)\n```\nNotifyRequirementsChange ...\n\n```go\nfunc (rc *ReadingsContract) Post(ctx contractapi.TransactionContextInterface, payload string) (string, error)\n```\nPost inserts new models.MetricReadings record into the blockchain ledger.\n\n```go\nfunc (rc *ReadingsContract) Remove(ctx contractapi.TransactionContextInterface, id string) error\n```\nRemove removes models.MetricReadings record from the blockchain ledger.\n\n```go\nfunc (rc *ReadingsContract) RemoveAll(ctx contractapi.TransactionContextInterface) error\n```\nRemoveAll removes all models.MetricReadings records from the blockchain ledger. !! This method is for development use only and it must be removed when all dev phases will be completed.\n\n```go\ntype Receipt struct {\n\tEncrypt bool          `json:\"encrypt\"`\n\tTyp     uint64        `json:\"typ\"`\n\tResult  peer.Response `json:\"result\"`\n}\n```\n\n```go\ntype Receive struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (sc *Receive) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *Receive) Receive(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype Record struct {\n\tcontractapi.Contract\n}\n```\nRecord provides functions for managing an Asset\n\n```go\nfunc GenerateRecord(seed *rand.Rand, seq int) *Record\n```\n\n```go\nfunc GetMultipleRandomTrees(recordNum int, treeNum int) []*Record\n```\n\n```go\nfunc GetRandomTree(recordNum int) []*Record\n```\n\n```go\nfunc GetRandomTreeWithJump(recordNum int, jump int) []*Record\n```\n\n```go\nfunc (s *Record) AssetExists(ctx contractapi.TransactionContextInterface, uuid string) (bool, error)\n```\nAssetExists returns true when asset with given UUID exists in world state\n\n```go\nfunc (s *Record) AssetValid(ctx contractapi.TransactionContextInterface, uuid string) (bool, error)\n```\nAssetValid returns true when an asset's timestamp is less than the expiration\n\n```go\nfunc (s *Record) CreateAsset(ctx contractapi.TransactionContextInterface, uuid string, timestamp string, owner string, expiration string) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\nfunc (s *Record) DeleteAsset(ctx contractapi.TransactionContextInterface, uuid string) error\n```\nDeleteAsset deletes an given asset from the world state.\n\n```go\nfunc (s *Record) GetAllAssets(ctx contractapi.TransactionContextInterface) ([]*Asset, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (s *Record) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of assets to the ledger\n\n```go\nfunc (s *Record) ReadAsset(ctx contractapi.TransactionContextInterface, uuid string) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given uuid.\n\n```go\nfunc (s *Record) TransferAsset(ctx contractapi.TransactionContextInterface, uuid string, newOwner string) error\n```\nTransferAsset updates the owner field of asset with given uuid in world state.\n\n```go\ntype RecycleAsset struct {\n\tAsset\n\tAmount     float64 `json:\"Amount\"`\n\tMeasure    string  `json:\"Measure\"`\n\tRefAssetID string  `json:\"RefAssetID\"`\n}\n```\n\n```go\ntype ReferensiHargaChaincode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *ReferensiHargaChaincode) Create(ctx contractapi.TransactionContextInterface, payload string) (*web.ReferensiHargaResponse, error)\n```\n\n```go\nfunc (c *ReferensiHargaChaincode) GetAll(ctx contractapi.TransactionContextInterface) ([]*web.ReferensiHargaResponse, error)\n```\n\n```go\nfunc (c *ReferensiHargaChaincode) GetHistoryById(ctx contractapi.TransactionContextInterface, id string) ([]*web.ReferensiHargaResponse, error)\n```\n\n```go\nfunc (c *ReferensiHargaChaincode) Update(ctx contractapi.TransactionContextInterface, payload string) (*web.ReferensiHargaResponse, error)\n```\n\n```go\ntype RegistroManutencao struct {\n\tMChassis                      string  `json:\"mChassis\"`\n\tPnFalha                       int     `json:\"pnFalha\"`\n\tTipoFalha                     string  `json:\"tipoFalha\"`\n\tSintomaFalha                  string  `json:\"sintomaFalha\"`\n\tInvestigacaoFalha             string  `json:\"investigacaoFalha\"`\n\tCodigoFalha                   int     `json:\"codigoFalha\"`\n\tManutencaoRealizada           string  `json:\"manutencaoRealizada\"`\n\tPnTrocado                     int     `json:\"pnTrocado\"`\n\tNSerieTrocado                 int     `json:\"nSerieTrocado\"`\n\tNotaFiscal                    string  `json:\"notaFiscal\"`\n\tCustoManutencao               float64 `json:\"custoManutencao\"`\n\tDataReparo                    string  `json:\"dataReparo\"`\n\tKmAtual                       int     `json:\"kmAtual\"`\n\tConsumoCombustivel            float64 `json:\"consumoCombustivel\"`\n\tCargaCarregada                int     `json:\"cargaCarregada\"`\n\tMDocumentoResponsavelRegistro int     `json:\"mDocumentoResponsavelRegistro\"`\n\tResponsavelRegistro           string  `json:\"responsavelRegistro\"`\n\tId                            string  `json:\"id\"`\n}\n```\nRegistros de Manutencao\n\n```go\ntype Registry struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (verifyRegistry *Registry) Register(ctx contractapi.TransactionContextInterface, network string, chain string, contract string, function string) error\n```\n\n```go\nfunc (verifyRegistry *Registry) Resolve(ctx contractapi.TransactionContextInterface, network string, chain string) (string, error)\n```\n\n```go\ntype Regulador struct {\n\tNome string `json:\"nome\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Reigocode struct {\n\tID             string `json:\"ID\"`\n\tCalculatedData string `json:\"CalculatedData\"`\n}\n```\nStructure to implement chaincode interface\n\n```go\nfunc (ccode *Reigocode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInitializes chaincode\n\n```go\nfunc (ccode *Reigocode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype ReleaseResponse struct {\n\tTxId string `json:\"txId\"`\n}\n```\n\n```go\ntype RentingSystem struct {\n\tcontractapi.Contract\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (sc *RentingSystem) GetLandLord(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *RentingSystem) GetLocation(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *RentingSystem) GetName(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *RentingSystem) GetRent(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\n\n```go\nfunc (sc *RentingSystem) GetTenant(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *RentingSystem) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *RentingSystem) PayRent(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *RentingSystem) SetRent(ctx contractapi.TransactionContextInterface, _rent uint64) error\n```\n\n```go\ntype RepairOrder struct {\n\tClaimUUID    string `json:\"claim_uuid\"`\n\tContractUUID string `json:\"contract_uuid\"`\n\tItem         Item   `json:\"item\"`\n\tReady        bool   `json:\"ready\"`\n}\n```\nKey consists of prefix + UUID fo the repair order\n\n```go\ntype Repo interface {\n\tCreate(ctx contractapi.TransactionContextInterface, entity interface{}, docPrefix string, keys []string) error\n\tUpdate(ctx contractapi.TransactionContextInterface, entity interface{}, docPrefix string, keys []string) error\n\tGet(ctx contractapi.TransactionContextInterface, docPrefix string, keys []string) (interface{}, error)\n\tGetQueryStringWithPagination(ctx contractapi.TransactionContextInterface, queryString string) (shim.StateQueryIteratorInterface, error)\n\tIsExist(ctx contractapi.TransactionContextInterface, docPrefix string, keys []string) (bool, error)\n\tGetQueryString(ctx contractapi.TransactionContextInterface, queryString string) (shim.StateQueryIteratorInterface, error)\n\tGetAndCheckExist(ctx contractapi.TransactionContextInterface, docPrefix string, keys []string) (bool, interface{}, error)\n}\n```\nWe currently don't support delete function and getAll document There will not be any deletion. GetAll is quite dangerous as we never know what it can break.\n\n```go\ntype Report struct {\n\tObjectType   string `json:\"docType\"`\n\tRepId        string `json:\"rid\"`\n\tOrganization string `json:\"org\"`\n\tDate         string `json:\"date\"`\n\tTotalVuln    int    `json:\"nVuln\"`\n\tAuditReport  string `json:\"report\"`\n}\n```\n\n```go\ntype RequestDetails struct {\n\tRequestor     Requestor     `json:\"requestor\"`\n\tShippingLine  ShippingLine  `json:\"shippingLine\"`\n\tPayment       Payment       `json:\"payment\"`\n\tDocument      Document      `json:\"document\"`\n\tParties       Parties       `json:\"parties\"`\n\tCargoDetails  CargoDetails  `json:\"cargoDetails\"`\n\tLocation      Location      `json:\"location\"`\n\tPaymentDetail PaymentDetail `json:\"paymentDetail\"`\n\tSupportingDoc SupportingDoc `json:\"supportingDocument\"`\n}\n```\nRequestDetails represents the structure of the delivery order request details\n\n```go\ntype RequestEncInfo struct {\n\tRequesterID    string `json:\"requesterID\"`\n\tModelID        string `json:\"modelID\"`\n\tEncryptionCode string `json:\"code\"`\n}\n```\n\n```go\ntype Requestor struct {\n\tRequestorType string `json:\"requestorType\"`\n\tURLFile       string `json:\"urlFile\"`\n\tNPWP          string `json:\"npwp\"`\n\tNIB           string `json:\"nib\"`\n\tRequestorName string `json:\"requestorName\"`\n\tRequestorAddr string `json:\"requestorAddress\"`\n}\n```\n\n```go\ntype ResourceType struct {\n\tID     string `json:\"id\"`\n\tName   string `json:\"name\"`\n\tActive bool   `json:\"active\"`\n}\n```\nResourceType resource\n\n```go\ntype ResourceTypeTransactionItem struct {\n\tTXID         string       `json:\"tx_id\"`\n\tResourceType ResourceType `json:\"resource_type\"`\n\tTimestamp    int64        `json:\"timestamp\"`\n}\n```\nResourceTypeTransactionItem\n\n```go\ntype ResourceTypesContract struct {\n\tcontractapi.Contract\n}\n```\nResourceTypesContract contract for handling writing and reading from the world state\n\n```go\nfunc (rc *ResourceTypesContract) Create(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n\tname string,\n) error\n```\nCreate adds a new id with value to the world state\n\n```go\nfunc (rc *ResourceTypesContract) Index(\n\tctx contractapi.TransactionContextInterface,\n) (rets []*ResourceType, err error)\n```\nIndex - read all resources from the world state\n\n```go\nfunc (rc *ResourceTypesContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of cars to the ledger\n\n```go\nfunc (rc *ResourceTypesContract) Read(ctx contractapi.TransactionContextInterface, id string) (ret *ResourceType, err error)\n```\nRead returns the value at id in the world state\n\n```go\nfunc (rc *ResourceTypesContract) SetPrivateData(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n\tprivateName string,\n) error\n```\n\n```go\nfunc (rc *ResourceTypesContract) Transactions(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) ([]*ResourceTypeTransactionItem, error)\n```\nTransactions get all the transactions of an id\n\n```go\nfunc (rc *ResourceTypesContract) Update(ctx contractapi.TransactionContextInterface, id string, name string) error\n```\nUpdate changes the value with id in the world state\n\n```go\ntype ResourcesContract struct {\n\tcontractapi.Contract\n}\n```\nResourcesContract contract for handling writing and reading from the world state\n\n```go\nfunc (rc *ResourcesContract) Create(ctx contractapi.TransactionContextInterface, id, name, resourceTypeID string) error\n```\nCreate adds a new id with value to the world state\n\n```go\nfunc (rc *ResourcesContract) Index(\n\tctx contractapi.TransactionContextInterface,\n) (rets []*Resource, err error)\n```\nIndex - read all resources from the world state\n\n```go\nfunc (rc *ResourcesContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of cars to the ledger\n\n```go\nfunc (rc *ResourcesContract) Transactions(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) ([]*ResourceTransactionItem, error)\n```\nTransactions get all the transactions of an id\n\n```go\ntype Response struct {\n\tCode string      `json:\"code\"`\n\tMsg  string      `json:\"msg\"`\n\tData interface{} `json:\"data\"`\n}\n```\nResponse 统一消息返回\n\n```go\nfunc (resp *Response) FormatResponse() []byte\n```\nFormatResponse - present response in json format\n\n```go\ntype ResultsIteratorShim struct {\n\tResultsIterator commonledger.ResultsIterator\n}\n```\n\n```go\nfunc (ris *ResultsIteratorShim) Close() error\n```\n\n```go\nfunc (ris *ResultsIteratorShim) Next() (*queryresult.KV, error)\n```\n\n```go\ntype RetailerOrg struct {\n\tID                      string `json:\"id\"`                      //零售商机构ID\n\tName                    string `json:\"name\"`                    //零售商机构名称\n\tUnifiedSocialCreditCode string `json:\"unifiedSocialCreditCode\"` //统一社会信用代码\n\tStatus                  int    `json:\"status\"`                  //零售商机构状态(启用/禁用)\n}\n```\n\\*\n\n\t零售商机构数据属性\n\n```go\ntype RetailerOrgChainCode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *RetailerOrgChainCode) Create(ctx contractapi.TransactionContextInterface, id string, name string, unifiedSocialCreditCode string, agencyOrgID string) (string, error)\n```\n\\*\n\n\t新建零售商机构\n\n```go\nfunc (t *RetailerOrgChainCode) FindById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *RetailerOrgChainCode) FindPrivateDataById(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\n\n```go\nfunc (t *RetailerOrgChainCode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype RetailerOrgFinancialAccountPrivateData struct {\n\tID                    string `json:\"id\"`                    //零售商机构账户ID\n\tRetailerOrgOrgID      string `json:\"retailerOrgID\"`         //零售商机构ID RetailerOrg.ID\n\tFinancialCode         string `json:\"financialCode\"`         //金融机构代码\n\tFinancialCardNo       string `json:\"financialCardNo\"`       //金融机构零售商机构账号\n\tCurrentBalance        int    `json:\"currentBalance\"`        //金融机构共管账户余额(现金)\n\tVoucherCurrentBalance int    `json:\"voucherCurrentBalance\"` //金融机构零售商机构账户凭证(token)余额\n\tAccStatus             int    `json:\"accStatus\"`             //系统账户状态(正常/冻结/禁用)\n}\n```\n\\*\n\n\t零售商机构金融账户私有数据属性\n\n```go\ntype RetailerOrgPrivateData struct {\n\tID          string  `json:\"id\"`          //零售商机构ID\n\tAgencyOrgID string  `json:\"agencyOrgID\"` //分销商机构ID AgencyOrg.ID\n\tRateBasic   float64 `json:\"rateBasic\"`   //下发机构基础费率\n}\n```\n\\*\n\n\t零售商机构属性\n\n```go\ntype RetailorBasicData struct {\n\tRetailor_id   string             `json:\"Retailor_ID\"`\n\tName          string             `json:\"name\"`\n\tAddress       string             `json:\"address\"`\n\tRetailorSeeds []RetailorSeedData `json:\"retailorSeeds\"`\n}\n```\n\n```go\ntype RetailorSeedData struct {\n\tBatch_id            string `json:\"batchId\"`\n\tRetailorName        string `json:\"retailorName\"`\n\tPlaceKeptRetailor   string `json:\"placeKeptImporter\"`\n\tArrivalDateRetailor string `json:\"arrivalDateImporter\"`\n}\n```\n\n```go\ntype ReviewContract struct {\n\tcontractapi.Contract\n}\n```\nReviewContract provides functions for recording Reviews of products\n\n```go\nfunc (n *ReviewContract) CreateReview(ctx contractapi.TransactionContextInterface, ReviewID string, Product string, Content string, UserID string,\n\tServiceProvider string, Rating int, CreatedBy string, Uts string, Cts string) error\n```\nCreateReview is used to create Reviews for a product\n\n```go\nfunc (n *ReviewContract) QueryReview(ctx contractapi.TransactionContextInterface, queryString string) ([]*Review, error)\n```\nQueryReview uses a query string to perform a query for assets. Query string matching state database syntax is passed in and executed as is. Supports ad hoc queries that can be defined at runtime by the client. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (n *ReviewContract) UpdateReview(ctx contractapi.TransactionContextInterface, reviewID string, content string, upvoteFlag bool, reportFlag bool, uts string) error\n```\nUpdateReview is used to update Reviews for a product\n\n```go\ntype RewardType struct {\n\tType   string `json:\"type\"`\n\tTo     string `json:\"to\"`\n\tAmount uint32 `json:\"amount\"`\n}\n```\nRewardType ...\n\n```go\ntype RoamingSmartContract struct {\n\tcontractapi.Contract\n}\n```\nRoamingSmartContract creates a new hlf contract api\n\n```go\nfunc InitRoamingSmartContract() *RoamingSmartContract\n```\n\n```go\nfunc (s *RoamingSmartContract) CheckOffchainDBConfig(ctx contractapi.TransactionContextInterface) error\n```\nCheckOffchainDBConfig returns if the database is configured and reachable\n\n```go\nfunc (s *RoamingSmartContract) CreateReferenceID(ctx contractapi.TransactionContextInterface) (string, error)\n```\nCreateReferenceID creates a referenceID and verifies that is has not been used yet\n\n```go\nfunc (s *RoamingSmartContract) CreateReferencePayloadLink(referenceID string, payloadHash string) ([2]string, error)\n```\nCreateReferencePayloadLink returns the reference and payload link based on a referenceID and the payloadHash\n\n```go\nfunc (s *RoamingSmartContract) CreateStorageKey(targetMSPID string, referenceID string) (string, error)\n```\nCreateStorageKey returns the hidden key used for hidden communication based on a referenceID and the targetMSP\n\n```go\nfunc (s *RoamingSmartContract) DeletePrivateDocument(ctx contractapi.TransactionContextInterface, referenceID string) error\n```\nDeletePrivateDocument will delete a private document identified by its referenceID from the database ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) FetchPrivateDocument(ctx contractapi.TransactionContextInterface, referenceID string) (string, error)\n```\nFetchPrivateDocument will return a private document identified by its referenceID ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) FetchPrivateDocumentReferenceIDs(ctx contractapi.TransactionContextInterface) (string, error)\n```\nFetchPrivateDocumentReferenceIDs will return a list of referenceIDs of the private documents ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) GetCertificate(ctx contractapi.TransactionContextInterface, msp string, certType string) (string, error)\n```\nGetCertificate retrieves the certificate for a given organization from the ledger and checks validity for the current time\n\n```go\nfunc (s *RoamingSmartContract) GetCertificateValidAtTime(ctx contractapi.TransactionContextInterface, msp string, certType string, timeString string) (string, error)\n```\nGetCertificate retrieves the certificate for a given organization from the ledger and checks validity at a given time\n\n```go\nfunc (s *RoamingSmartContract) GetEvaluateTransactions() []string\n```\nGetEvaluateTransactions returns functions of RoamingSmartContract to be tagged as evaluate (=query) see [https://godoc.org/github.com/hyperledger/fabric-contract-api-go/contractapi#SystemContract.GetEvaluateTransactions](https://godoc.org/github.com/hyperledger/fabric-contract-api-go/contractapi#SystemContract.GetEvaluateTransactions) note: this is just a hint for the caller, this is not taken into account during invocation\n\n```go\nfunc (s *RoamingSmartContract) GetOffchainDBConfig(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetOffchainDBConfig returns the stored configuration for the rest endpoint ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) GetReferencePayloadLink(ctx contractapi.TransactionContextInterface, referenceID string) (string, error)\n```\nGet the referencePayloadLink ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) GetSignatures(ctx contractapi.TransactionContextInterface, targetMSPID string, key string) (map[string]string, error)\n```\nGetSignatures returns all signatures stored in the ledger for this key\n\n```go\nfunc (s *RoamingSmartContract) GetStorageLocation(ctx contractapi.TransactionContextInterface, storageType string, key string) (string, error)\n```\nGetStorageLocation returns the storage location for a given storageType and key by using the composite key feature\n\n```go\nfunc (s *RoamingSmartContract) IsValidSignature(ctx contractapi.TransactionContextInterface, signerMSPID, signaturePayload, signature, signatureAlgorithm, certChainPEM string) error\n```\nIsValidSignature verifies if a signature is valid based on the the signaturePayload, the certChain, and the signature at the tx time\n\n```go\nfunc (s *RoamingSmartContract) IsValidSignatureAtTime(ctx contractapi.TransactionContextInterface, signerMSPID, signaturePayload, signature, signatureAlgorithm, certChainPEM string, timeString string) error\n```\nIsValidSignature verifies if a signature is valid based on the the signaturePayload, the certChain, and the signature at a given time\n\n```go\nfunc (s *RoamingSmartContract) PublishReferencePayloadLink(ctx contractapi.TransactionContextInterface, key string, value string) (string, error)\n```\nPublishReferencePayloadLink stores a given document hash on the ledger\n\n```go\nfunc (s *RoamingSmartContract) SetCertificate(ctx contractapi.TransactionContextInterface, certType string, certData string) error\n```\nSetCertificate stores the organization certificates on the ledger ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) SetOffchainDBConfig(ctx contractapi.TransactionContextInterface) error\n```\nSetOffchainDBConfig stores the rest endpoint config ACL restricted to local queries only\n\n```go\nfunc (s *RoamingSmartContract) StorePrivateDocument(ctx contractapi.TransactionContextInterface, targetMSPID string, referenceID string, payload string) (string, error)\n```\nStorePrivateDocument will store contract Data locally this can be called on a remote peer or locally payload is a DataPayload object that contains a nonce and the payload\n\n```go\nfunc (s *RoamingSmartContract) StoreSignature(ctx contractapi.TransactionContextInterface, storageKey string, signatureJSON string) (string, error)\n```\nStoreSignature stores a given signature on the ledger\n\n```go\nfunc (s *RoamingSmartContract) SubmitCRL(ctx contractapi.TransactionContextInterface, crlPEM string, certChainPEM string) error\n```\nSubmitCRL takes a PEM encoded CRL and stores included certificates in the contract's revocation list\n\n```go\nfunc (s *RoamingSmartContract) VerifySignatures(ctx contractapi.TransactionContextInterface, referenceID, targetMSPID string) (map[string]map[string]string, error)\n```\nVerifySignatures checks all stored signature on the ledger against a document referenceID  = the referenceID tying everything together targetMSPID  = MSP whose signatures to check ACL restricted to local queries only\n\n```go\ntype Role int\n```\n\n```go\nconst (\n\tBuyer Role = iota\n\tSeller\n\tFactor\n\tTaxInspector\n)\n```\n\n```go\nconst (\n\tBuyer Role = iota\n\tSeller\n\tFactor\n\tTaxInspector\n)\n```\n\n```go\nfunc String2Role(e string) Role\n```\n\n```go\nfunc (asset *Role) GetState(stub shim.ChaincodeStubInterface) pb.Response\n```\nGetState Read asset state from the ledger\n\n```go\nfunc (asset *Role) PutState(stub shim.ChaincodeStubInterface) pb.Response\n```\nPutState Write asset state to ledger\n\n```go\ntype RoleBase struct {\n\tRoleID       int       `json:\"roleID\"`\n\tUserCategory string    `json:\"usercategory\"`\n\tUserType     string    `json:\"usertype\"`\n\tRoleName     string    `json:\"rolename\"`\n\tRoleDesc     string    `json:\"roledesc\"`\n\tCreated      time.Time `json:\"created\"`\n\tCreatedby    string    `json:\"createdby\"`\n}\n```\nRoleBase data structure\n\n```go\ntype RoleContract struct {\n\tcontractapi.Contract\n}\n```\nRoleContract for handling writing and reading from the world state\n\n```go\nfunc (c *RoleContract) Bootstrap(\n\tctx common.TxCtxInterface,\n\treq *cc.BootstrapRequest,\n) (res *cc.BootstrapResponse, err error)\n```\n\n```go\nfunc (r *RoleContract) ChangeCredit(\n\tctx contractapi.TransactionContextInterface,\n\tuserName string,\n\tuserCredit int) error\n```\nChangeCredit 更改用户信用值\n\n```go\nfunc (r *RoleContract) ChangePower(\n\tctx contractapi.TransactionContextInterface,\n\tuserName string,\n\tpower int) error\n```\nChangePower 更改用户交易量\n\n```go\nfunc (c *RoleContract) CreateCollection(\n\tctx common.TxCtxInterface,\n\treq *cc.CreateCollectionRequest,\n) (res *cc.CreateCollectionResponse, err error)\n```\n\n```go\nfunc (sc *RoleContract) Get(ctx contractapi.TransactionContextInterface, key string) (*RoleObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *RoleContract) History(ctx contractapi.TransactionContextInterface, key string) ([]RoleHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *RoleContract) Put(ctx contractapi.TransactionContextInterface, roleID int, usercategory string, usertype string, rolename string, roledesc string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\nfunc (r *RoleContract) QueryUser(\n\tctx contractapi.TransactionContextInterface,\n\tuserName string) (*User, error)\n```\nQueryUser 查询用户\n\n```go\nfunc (r *RoleContract) QueryUserList(\n\tctx contractapi.TransactionContextInterface) *UserList\n```\nQueryUserList 获取用户列表\n\n```go\nfunc (r *RoleContract) Register(\n\tctx contractapi.TransactionContextInterface,\n\tuserName string,\n\tuserRole string) (*User, error)\n```\nRegister 注册用户\n\n```go\nfunc (r *RoleContract) UserExist(\n\tctx contractapi.TransactionContextInterface,\n\tuserName string) bool\n```\nUserExist 判断用户是否存在\n\n```go\ntype RoleHistory struct {\n\tTxID      string    `json:\"txID\"`\n\tTimestamp time.Time `json:\"timestamp\"`\n\tRole      *RoleObj  `json:\"role\"`\n}\n```\nRoleHistory ...\n\n```go\ntype RoleObj struct {\n\tRoleID       int       `json:\"roleID\"`\n\tUserCategory string    `json:\"usercategory\"`\n\tUserType     string    `json:\"usertype\"`\n\tRoleName     string    `json:\"rolename\"`\n\tRoleDesc     string    `json:\"roledesc\"`\n\tCreated      time.Time `json:\"created\"`\n\tCreatedby    string    `json:\"createdby\"`\n}\n```\nRoleObj ...\n\n```go\ntype RoleResult struct {\n\tRole string\n}\n```\n\n```go\ntype RoleResult2 struct {\n\tName  string   `json:\"name\"`\n\tRoles []string `json:\"roles\"`\n}\n```\n\n```go\nfunc LocalGetRoles(ctx contractapi.TransactionContextInterface, name string) (RoleResult2, error)\n```\n\n```go\ntype RoleTransactions struct {\n\tRole         string   `json:\"role\"`\n\tTransactions []string `json:\"transactions\"`\n}\n```\n\n```go\ntype RootCAContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *RootCAContract) CertExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *RootCAContract) DeleteCert(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *RootCAContract) GetAllElem(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *RootCAContract) GetNewCert(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *RootCAContract) Hello(ctx contractapi.TransactionContextInterface) string\n```\n\n```go\nfunc (s *RootCAContract) Init(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *RootCAContract) IssueIntermediateCert(ctx contractapi.TransactionContextInterface, csrBytes string, pubBytes string) (string, error)\n```\n\n```go\nfunc (s *RootCAContract) RevocationCert(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *RootCAContract) VerityCert(ctx contractapi.TransactionContextInterface, certBytes string) (bool, error)\n```\n\n```go\ntype Router interface {\n\tHandleInit(shim.ChaincodeStubInterface)\n\tHandle(shim.ChaincodeStubInterface)\n\tQuery(path string, handler HandlerFunc, middleware ...MiddlewareFunc) Router\n\tInvoke(path string, handler HandlerFunc, middleware ...MiddlewareFunc) Router\n}\n```\n\n```go\ntype Rule struct {\n\tType       string `json:\"type\"`\n\tField      string `json:\"field\"`\n\tComparison string `json:\"Comparison\"`\n\tValue      string `json:\"value\"`\n\tEffect     string `json:\"effect\"`\n}\n```\nAccess rule structure\n\n```go\ntype SCC struct {\n\t// aclProvider is responsible for access control evaluation\n\tACLProvider aclmgmt.ACLProvider\n\n\tBuiltinSCCs scc.BuiltinSCCs\n\n\t// SCCProvider is the interface which is passed into system chaincodes\n\t// to access other parts of the system\n\tSCCProvider sysccprovider.SystemChaincodeProvider\n\n\t// PolicyChecker is the interface used to perform\n\t// access control\n\tPolicyChecker policy.PolicyChecker\n\n\t// Support provides the implementation of several\n\t// static functions\n\tSupport FilesystemSupport\n\n\tGetMSPIDs MSPIDsGetter\n\n\tBuildRegistry *container.BuildRegistry\n\n\tChaincodeBuilder ChaincodeBuilder\n\n\tEbMetadataProvider *externalbuilder.MetadataProvider\n\n\t// BCCSP instance\n\tBCCSP bccsp.BCCSP\n\n\tPackageCache PackageCache\n}\n```\nSCC implements chaincode lifecycle and policies around it\n\n```go\nfunc (scc *SCC) Chaincode() shim.Chaincode\n```\nChaincode returns a reference to itself\n\n```go\nfunc (lscc *SCC) ChaincodeEndorsementInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error)\n```\n\n```go\nfunc (scc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit is mostly useless for system chaincodes and always returns success\n\n```go\nfunc (scc *SCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke takes chaincode invocation arguments and routes them to the correct underlying lifecycle operation.  All functions take a single argument of type marshaled lb.\\\u003cFunctionName\u003eArgs and return a marshaled lb.\\\u003cFunctionName\u003eResult\n\n```go\nfunc (scc *SCC) Name() string\n```\nName returns \"\\_lifecycle\"\n\n```go\nfunc (lscc *SCC) ValidationInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (plugin string, args []byte, unexpectedErr error, validationErr error)\n```\nValidationInfo returns name\u0026arguments of the validation plugin for the supplied chaincode. The function returns two types of errors, unexpected errors and validation errors. The reason for this is that this function is to be called from the validation code, which needs to tell apart the two types of error to halt processing on the channel if the unexpected error is not nil and mark the transaction as invalid if the validation error is not nil.\n\n```go\ntype SCCFunctions interface {\n\t// InstallChaincode persists a chaincode definition to disk\n\tInstallChaincode([]byte) (*chaincode.InstalledChaincode, error)\n\n\t// QueryInstalledChaincode returns metadata for the chaincode with the supplied package ID.\n\tQueryInstalledChaincode(packageID string) (*chaincode.InstalledChaincode, error)\n\n\t// GetInstalledChaincodePackage returns the chaincode package\n\t// installed on the peer as bytes.\n\tGetInstalledChaincodePackage(packageID string) ([]byte, error)\n\n\t// QueryInstalledChaincodes returns the currently installed chaincodes\n\tQueryInstalledChaincodes() []*chaincode.InstalledChaincode\n\n\t// ApproveChaincodeDefinitionForOrg records a chaincode definition into this org's implicit collection.\n\tApproveChaincodeDefinitionForOrg(chname, ccname string, cd *ChaincodeDefinition, packageID string, publicState ReadableState, orgState ReadWritableState) error\n\n\t// QueryApprovedChaincodeDefinition returns a approved chaincode definition from this org's implicit collection.\n\tQueryApprovedChaincodeDefinition(chname, ccname string, sequence int64, publicState ReadableState, orgState ReadableState) (*ApprovedChaincodeDefinition, error)\n\n\t// CheckCommitReadiness returns a map containing the orgs\n\t// whose orgStates were supplied and whether or not they have approved\n\t// the specified definition.\n\tCheckCommitReadiness(chname, ccname string, cd *ChaincodeDefinition, publicState ReadWritableState, orgStates []OpaqueState) (map[string]bool, error)\n\n\t// CommitChaincodeDefinition records a new chaincode definition into the\n\t// public state and returns a map containing the orgs whose orgStates\n\t// were supplied and whether or not they have approved the definition.\n\tCommitChaincodeDefinition(chname, ccname string, cd *ChaincodeDefinition, publicState ReadWritableState, orgStates []OpaqueState) (map[string]bool, error)\n\n\t// QueryChaincodeDefinition returns a chaincode definition from the public\n\t// state.\n\tQueryChaincodeDefinition(name string, publicState ReadableState) (*ChaincodeDefinition, error)\n\n\t// QueryOrgApprovals returns a map containing the orgs whose orgStates were\n\t// supplied and whether or not they have approved a chaincode definition with\n\t// the specified parameters.\n\tQueryOrgApprovals(name string, cd *ChaincodeDefinition, orgStates []OpaqueState) (map[string]bool, error)\n\n\t// QueryNamespaceDefinitions returns all defined namespaces\n\tQueryNamespaceDefinitions(publicState RangeableState) (map[string]string, error)\n}\n```\nSCCFunctions provides a backing implementation with concrete arguments for each of the SCC functions\n\n```go\ntype SCState = map[string]string\n```\n\n```go\ntype SPContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *SPContract) CreateSp(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SPContract) DeleteSp(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SPContract) GetAllSp(ctx contractapi.TransactionContextInterface) ([]*SatuanPendidikan, error)\n```\n\n```go\nfunc (s *SPContract) GetSpById(ctx contractapi.TransactionContextInterface) (*SatuanPendidikan, error)\n```\n\n```go\nfunc (s *SPContract) UpdateSp(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype SampleContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *SampleContract) CreateSampleObject(ctx contractapi.TransactionContextInterface, key string, val string) error\n```\nCreate something\n\n```go\nfunc (sc *SampleContract) GetValue(\n\tctx contractapi.TransactionContextInterface,\n\tkey string,\n) (string, error)\n```\nGetValue - Gets the value for a key from the world state\n\n```go\nfunc (sc *SampleContract) PutValue(\n\tctx contractapi.TransactionContextInterface,\n\tkey string,\n\tvalue string,\n) error\n```\nPutValue - Adds a key value pair to the world state\n\n```go\ntype SampleData struct {\n\tKey1       string `json:\"Key1\"`\n\tAttribute1 string `json:\"Attribute1\"`\n}\n```\nData - struct\n\n```go\ntype SampleRecord struct {\n\tKey   string `json:Key`\n\tValue string `json:Value`\n}\n```\n\n```go\ntype SatuanManagemenSumberdaya struct {\n\tApproversTSK []string `json:\"approversTsk\"`\n\tApproversIJZ []string `json:\"approversIjz\"`\n}\n```\n\n```go\ntype SatuanPendidikan struct {\n\tID            string `json:\"id\"`\n\tIdMSP         string `json:\"idMsp\"`\n\tNamaSP        string `json:\"namaSp\"`\n\tUsernameAdmin string `json:\"usernameAdmin\"`\n}\n```\n\n```go\ntype SearchCriteria struct {\n\tStatus string `json:\"status\"`\n}\n```\nSearchCriteria represents the criteria for searching TodoItems\n\n```go\ntype SecondAsset struct {\n\tAsset\n\tRefAssetID string `json:\"RefAssetID\"`\n\tSpec       string `json:\"Spec\"`\n}\n```\n\n```go\ntype Security struct {\n\tName     string `json:\"name\"`\n\tCUSIP    string `json:\"cusip\"`\n\tAmount   string `json:\"amount\"`\n\tCurrency string `json:\"currency\"`\n}\n```\n\n```go\ntype Selector struct {\n\tMembers []SelectorMember `json:\"$or\"`\n}\n```\nSelector query string constructor\n\n```go\ntype SelectorMember struct {\n\tID string `json:\"previous\"`\n}\n```\nSelector query string constructor\n\n```go\ntype SelfDescribingSysCC interface {\n\t//Unique name of the system chaincode\n\tName() string\n\n\t// Chaincode returns the underlying chaincode\n\tChaincode() shim.Chaincode\n}\n```\n\n```go\ntype Sell struct {\n\t//交易ID\n\tSellID string `json:\"sell_id\"`\n\t//作物ID\n\tCropsID string `json:\"crops_id\"`\n\t//销售商ID\n\tSellerID string `json:\"seller_id\"`\n\t//买家ID\n\tBuyerID string `json:\"buyer_id\"`\n\t//交易价格\n\tPrice string `json:\"price\"`\n}\n```\nSell 交易信息\n\n```go\ntype Seller struct {\n\tId    string\n\tName  string\n\tEmail string\n\tType  string\n\tDtype string\n}\n```\n\n```go\ntype SellerContract struct {\n\tcontractapi.Contract\n}\n```\nSellerContract for handling writing and reading from the world state\n\n```go\nfunc (sc *SellerContract) Get(ctx contractapi.TransactionContextInterface, key string) (*SellerObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (c *SellerContract) GetFullMilkHistory(ctx Context, milkID string) (QueryResult, error)\n```\n\n```go\nfunc (sc *SellerContract) History(ctx contractapi.TransactionContextInterface, key string) ([]SellerHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (c *SellerContract) Instantiate()\n```\n\n```go\nfunc (sc *SellerContract) Put(ctx contractapi.TransactionContextInterface, sellerID int, userID int, sellertype string, details string, regdate string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\nfunc (c *SellerContract) PutMilkReport(ctx Context, milkID, operation string) error\n```\n\n```go\ntype SellerHistory struct {\n\tTxID      string     `json:\"txID\"`\n\tTimestamp time.Time  `json:\"timestamp\"`\n\tSeller    *SellerObj `json:\"seller\"`\n}\n```\nSellerHistory ...\n\n```go\ntype SellerObj struct {\n\tSellerID   int       `json:\"sellerID\"`\n\tUserID     int       `json:\"userID\"`\n\tSellerType string    `json:\"sellertype\"`\n\tDetails    string    `json:\"details\"`\n\tRegDate    string    `json:\"regdate\"`\n\tCreated    time.Time `json:\"created\"`\n\tCreatedby  string    `json:\"createdby\"`\n}\n```\nSellerObj ...\n\n```go\ntype SequenceManager interface {\n\tInitSequence(stub shim.ChaincodeStubInterface) (*Sequence, error)\n\tGetCurrentSequence(stub shim.ChaincodeStubInterface) (*Sequence, error)\n\tGetSequence(stub shim.ChaincodeStubInterface, seq uint64) (*Sequence, error)\n\tGetSequenceFromHeight(ctx sdk.Context, height exported.Height) (*Sequence, error)\n\tUpdateSequence(stub shim.ChaincodeStubInterface) (*Sequence, error)\n\tValidateTimestamp(now time.Time, prevSec int64, next *timestamp.Timestamp) error\n\tSetClock(clock func() time.Time)\n}\n```\n\n```go\nfunc NewDefaultSequenceManager() SequenceManager\n```\n\n```go\nfunc NewSequenceManager(config CommitmentConfig, prefix exported.Prefix) SequenceManager\n```\n\n```go\ntype ServerConfig struct {\n\tCCID    string\n\tAddress string\n}\n```\n\n```go\ntype ServicerReport struct {\n\tSRID           string `json:\"srId\"`\n\tSRKey          string `json:\"srKey\"`\n\tSRValue        string `json:\"srValue\"`\n\tSRMonth        string `json:\"srMonth\"`\n\tSRYear         string `json:\"srYear\"`\n\tSRUpdatedBy    string `json:\"srUpdatedBy\"`\n\tSRUpdationDate string `json:\"srUpdationDate\"`\n\tSRSeqNum       string `json:\"srSeqNum\"`\n\tSRDealID       string `json:\"srDealId\"`\n}\n```\nServicer Data Sheet\n\n```go\ntype SettleMLNettingResp struct {\n\tNettableTxList []string `json:\"nettableTxList\"`\n\tWentToLoop     bool     `json:\"wentToLoop\"`\n}\n```\n\n```go\ntype SetupAction struct {\n\tSetupParameters []byte\n}\n```\n\n```go\nfunc (a *SetupAction) GetSetupParameters() ([]byte, error)\n```\n\n```go\ntype Shard struct {\n\tHash     string `json:\"hash\"`\n\tPosition int    `json:\"position\"`\n}\n```\n\n```go\ntype Sharing struct {\n\tID              float64 `json:\"sharingID\"`\n\tCarID           float64 `json:\"carID\"`\n\tLenderID        int     `json:\"lenderID\"`\n\tBorrowerID      int     `json:\"borrowerID\"`\n\tSharingPrice    int     `json:\"sharingPrice\"`\n\tSharingDate     string  `json:\"sharingDate\"`\n\tSharingLocation string  `json:\"sharingLocation\"`\n\tSharingStatus   string  `json:\"sharingStatus\"`\n}\n```\n차량 공유\n\n```go\ntype Shipping struct {\n\tType         string             `json:\"objectType\"`\n\tItemSold     Item               `json:\"item\"`\n\tSeller       string             `json:\"seller\"`\n\tOrgs         []string           `json:\"organizations\"`\n\tPrivateBids  map[string]BidHash `json:\"privateBids\"`\n\tRevealedBids map[string]FullBid `json:\"revealedBids\"`\n\tWinner       string             `json:\"winner\"`\n\tPrice        int                `json:\"price\"`\n\tStatus       string             `json:\"status\"`\n}\n```\nShipping data\n\n```go\ntype ShippingLine struct {\n\tShippingType string `json:\"shippingType\"`\n\tDOExpired    string `json:\"doExpired\"`\n\tVesselName   string `json:\"vesselName\"`\n\tVoyageNumber string `json:\"voyageNumber\"`\n\tPayment      string `json:\"payment\"`\n}\n```\n\n```go\ntype Show struct {\n\tShowID    int    `json:\"showID\"`\n\tMovie     string `json:\"movie\"`\n\tShowSlot  string `json:\"showSlot\"`\n\tQuantity  int    `json:\"quantity,number\"`\n\tHallNo    int    `json:\"hallNo\"`\n\tTheatreNo int    `json:\"theatreNo\"`\n\tDocType   string `json:\"docType\"`\n}\n```\nShow model\n\n```go\ntype SigmaShow struct {\n\tLK big.Int\n\t// contains filtered or unexported fields\n}\n```\nSigmaShow :\n\n```go\ntype SignalData struct {\n\tLocation string  `json:\"location\"`\n\tLevel    float64 `json:\"level\"`\n}\n```\n\n```go\ntype Signature struct {\n\tName  string `json:\"name\"`\n\tStage string `json:\"stage\"`\n}\n```\n\n```go\ntype Simple struct {\n}\n```\n\n```go\nfunc (t *Simple) Delete(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\ndelete an account, should be \\[delete account]\n\n```go\nfunc (t *Simple) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nThe init function of the Chaincode. Param: the Chaincode stub Return: the result of the initiation of the Chaincode\n\n```go\nfunc (t *Simple) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nThe invoke function of the Chaincode. Param: the Chaincode stub Return: the result of the execution of the function\n\n```go\nfunc (t *Simple) Open(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nopen an account, should be \\[open account money]\n\n```go\nfunc (t *Simple) Query(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nquery current money of the account,should be \\[query account]\n\n```go\nfunc (t *Simple) Transfer(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\ntransfer money from account1 to account2, should be \\[transfer account1 account2 money]\n\n```go\ntype SimpleAsset struct{}\n```\nSimpleAsset implements a simple chaincode to manage an asset\n\n```go\nfunc (t *SimpleAsset) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit is called during chaincode instantiation to initialize any data. Note that chaincode upgrade also calls this function to reset or to migrate data.\n\n```go\nfunc (t *SimpleAsset) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke is called per transaction on the chaincode. Each transaction is either a 'get' or a 'set' on the asset created by Init function. The Set method may create a new asset by specifying a new key-value pair.\n\n```go\nfunc (t *SimpleAsset) QueryAllBSs(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nQueryAllBSs returns all BSs found in world state\n\n```go\ntype SimpleChaincode struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (c *SimpleChaincode) AddCPU(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nAddCPU register a CPU\n\n```go\nfunc (c *SimpleChaincode) AddUsage(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nAddUsage to update the CPU asset\n\n```go\nfunc (t *SimpleChaincode) AssetExists(ctx contractapi.TransactionContextInterface, assetID string) (bool, error)\n```\nAssetExists returns true when asset with given ID exists in the ledger.\n\n```go\nfunc (t *SimpleChaincode) ChangeColorByOwnerFixed(ctx contractapi.TransactionContextInterface, owner string, color string) error\n```\n\n```go\nfunc (t *SimpleChaincode) ChangeColorByOwnerVulnerable(ctx contractapi.TransactionContextInterface, owner string, color string) error\n```\n\n```go\nfunc (t *SimpleChaincode) CreateAsset(ctx contractapi.TransactionContextInterface, assetID, color string, size int, owner string, appraisedValue int) error\n```\nCreateAsset initializes a new asset in the ledger\n\n```go\nfunc (t *SimpleChaincode) Delete(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\ndelete an account, should be \\[delete account]\n\n```go\nfunc (t *SimpleChaincode) DeleteAsset(ctx contractapi.TransactionContextInterface, assetID string) error\n```\nDeleteAsset removes an asset key-value pair from the ledger\n\n```go\nfunc (t *SimpleChaincode) GetAllAssets(ctx contractapi.TransactionContextInterface) ([]*Asset, error)\n```\n\n```go\nfunc (t *SimpleChaincode) GetAllBankRequestStruct(\n\tctx contractapi.TransactionContextInterface) ([]BankRequest, error)\n```\n\n```go\nfunc (t *SimpleChaincode) GetAllItemHistory(ctx contractapi.TransactionContextInterface, itemID string) ([]RangeQueryResult, error)\n```\nTransferAssetByColor will transfer assets of a given color to a certain new owner. Uses GetStateByPartialCompositeKey (range query) against color~name 'index'. Committing peers will re-execute range queries to guarantee that result sets are stable between endorsement time and commit time. The transaction is invalidated by the committing peers if the result set has changed between endorsement time and commit time. Therefore, range queries are a safe option for performing update transactions based on query results. Example: GetStateByPartialCompositeKey/RangeQuery\n\n```go\nfunc (t *SimpleChaincode) GetAssetHistory(ctx contractapi.TransactionContextInterface, assetID string) ([]HistoryQueryResult, error)\n```\nGetAssetHistory returns the chain of custody for an asset since issuance.\n\n```go\nfunc (t *SimpleChaincode) GetAssetsByRange(ctx contractapi.TransactionContextInterface, startKey, endKey string) ([]*Asset, error)\n```\nGetAssetsByRange performs a range query based on the start and end keys provided. Read-only function results are not typically submitted to ordering. If the read-only results are submitted to ordering, or if the query is used in an update transaction and submitted to ordering, then the committing peers will re-execute to guarantee that result sets are stable between endorsement time and commit time. The transaction is invalidated by the committing peers if the result set has changed between endorsement time and commit time. Therefore, range queries are a safe option for performing update transactions based on query results.\n\n```go\nfunc (t *SimpleChaincode) GetAssetsByRangeWithPagination(ctx contractapi.TransactionContextInterface, startKey string, endKey string, pageSize int, bookmark string) ([]*Asset, error)\n```\nGetAssetsByRangeWithPagination performs a range query based on the start and end key, page size and a bookmark. The number of fetched records will be equal to or lesser than the page size. Paginated range queries are only valid for read only transactions. Example: Pagination with Range Query\n\n```go\nfunc (c *SimpleChaincode) GetHistory(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nGetHistory returns entire history of the asset\n\n```go\nfunc (c *SimpleChaincode) GetUsage(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nGetUsage returns stored value\n\n```go\nfunc (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit initializes the chaincode\n\n```go\nfunc (t *SimpleChaincode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger creates the initial set of assets in the ledger.\n\n```go\nfunc (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke ... Transaction makes payment of X units from A to B\n\n```go\nfunc (t *SimpleChaincode) Open(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nopen an account, should be \\[open account money]\n\n```go\nfunc (t *SimpleChaincode) Query(stub shim.ChaincodeStubInterface) pb.Response\n```\nQuery ...\n\n```go\nfunc (t *SimpleChaincode) QueryAssets(ctx contractapi.TransactionContextInterface, queryString string) ([]*Asset, error)\n```\nQueryAssets uses a query string to perform a query for assets. Query string matching state database syntax is passed in and executed as is. Supports ad hoc queries that can be defined at runtime by the client. If this is not desired, follow the QueryAssetsForOwner example for parameterized queries. Only available on state databases that support rich query (e.g. CouchDB) Example: Ad hoc rich query\n\n```go\nfunc (t *SimpleChaincode) QueryAssetsByOwner(ctx contractapi.TransactionContextInterface, owner string) ([]*Asset, error)\n```\nQueryAssetsByOwner queries for assets based on the owners name. This is an example of a parameterized query where the query logic is baked into the chaincode, and accepting a single query parameter (owner). Only available on state databases that support rich query (e.g. CouchDB) Example: Parameterized rich query\n\n```go\nfunc (t *SimpleChaincode) QueryAssetsWithPagination(ctx contractapi.TransactionContextInterface, queryString string, pageSize int, bookmark string) (*PaginatedQueryResult, error)\n```\nQueryAssetsWithPagination uses a query string, page size and a bookmark to perform a query for assets. Query string matching state database syntax is passed in and executed as is. The number of fetched records would be equal to or lesser than the specified page size. Supports ad hoc queries that can be defined at runtime by the client. If this is not desired, follow the QueryAssetsForOwner example for parameterized queries. Only available on state databases that support rich query (e.g. CouchDB) Paginated queries are only valid for read only transactions. Example: Pagination with Ad hoc Rich Query\n\n```go\nfunc (t *SimpleChaincode) ReadAsset(ctx contractapi.TransactionContextInterface, assetID string) (*Asset, error)\n```\nReadAsset retrieves an asset from the ledger\n\n```go\nfunc (t *SimpleChaincode) ResetBankRequests(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (t *SimpleChaincode) Transfer(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\ntransfer money from account1 to account2, should be \\[transfer account1 account2 money]\n\n```go\nfunc (t *SimpleChaincode) TransferAsset(ctx contractapi.TransactionContextInterface, assetID, newOwner string) error\n```\nTransferAsset transfers an asset by setting a new owner name on the asset\n\n```go\nfunc (t *SimpleChaincode) TransferAssetByColor(ctx contractapi.TransactionContextInterface, color, newOwner string) error\n```\nTransferAssetByColor will transfer assets of a given color to a certain new owner. Uses GetStateByPartialCompositeKey (range query) against color~name 'index'. Committing peers will re-execute range queries to guarantee that result sets are stable between endorsement time and commit time. The transaction is invalidated by the committing peers if the result set has changed between endorsement time and commit time. Therefore, range queries are a safe option for performing update transactions based on query results. Example: GetStateByPartialCompositeKey/RangeQuery\n\n```go\nfunc (t *SimpleChaincode) UpdateAsset(ctx contractapi.TransactionContextInterface, assetID, class, upperPSB, currPSB string) error\n```\nTransferAsset transfers an asset by setting a new owner name on the asset\n\n```go\ntype SimpleContract struct {\n\tcontractapi.Contract\n}\n```\nSimpleContract contract for handling writing and reading from the world state\n\n```go\nfunc (sc *SimpleContract) Actualizar(ctx contractapi.TransactionContextInterface, key string, value string) error\n```\nActualizar cambia el valor con llave en el world state\n\n```go\nfunc (sc *SimpleContract) CallAndResponse(ctx contractapi.TransactionContextInterface, value string) string\n```\nCallAndResponse - Returns the string you send\n\n```go\nfunc (sc *SimpleContract) Crear(ctx contractapi.TransactionContextInterface, key string, value string) error\n```\nCrear agrega una nueva llave con valor al world-state\n\n```go\nfunc (sc *SimpleContract) Create(ctx contractapi.TransactionContextInterface, key string) error\n```\nCreate - Initialises a key value pair with the given ID in the world state\n\n```go\nfunc (sc *SimpleContract) Delete(ctx contractapi.TransactionContextInterface, id string) (err error)\n```\n\n```go\nfunc (sc *SimpleContract) DeleteState(ctx contractapi.TransactionContextInterface, key string) error\n```\nDeleteState - Deletes a key from the world state\n\n```go\nfunc (sc *SimpleContract) ExistsState(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nExistsState returns true when asset with given ID exists in world state\n\n```go\nfunc (sc *SimpleContract) GetEvaluateTransactions() []string\n```\nGetEvaluateTransactions returns functions of SimpleContract not to be tagged as submit\n\n```go\nfunc (sc *SimpleContract) GetState(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nGetState - Gets the value for a key from the world state\n\n```go\nfunc (sc *SimpleContract) HelloWorld(ctx contractapi.TransactionContextInterface) string\n```\nHelloWorld - returns a string\n\n```go\nfunc (sc *SimpleContract) InitLedger(ctx contractapi.TransactionContextInterface) (err error)\n```\n\n```go\nfunc (sc *SimpleContract) Leer(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nLeer devuelve el valor en clave en el world-state\n\n```go\nfunc (sc *SimpleContract) MostrarInfoStub(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *SimpleContract) PutState(ctx contractapi.TransactionContextInterface, key string, value string) error\n```\nPutState - Adds a key value pair to the world state\n\n```go\nfunc (sc *SimpleContract) Query(ctx contractapi.TransactionContextInterface, id string) (asset *Asset, err error)\n```\n\n```go\nfunc (sc *SimpleContract) Read(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nRead - Returns value of a key with given ID from world state as string\n\n```go\nfunc (sc *SimpleContract) ReadAll(ctx contractapi.TransactionContextInterface) ([]File, error)\n```\nReadAll returns all the value in the world state\n\n```go\nfunc (sc *SimpleContract) Update(ctx contractapi.TransactionContextInterface, key string, value string) error\n```\nUpdate - Updates a key with given ID in the world state\n\n```go\ntype SimpleQueryExecutorShim struct {\n\tNamespace           string\n\tSimpleQueryExecutor ledger.SimpleQueryExecutor\n}\n```\nSimpleQueryExecutorShim implements the ReadableState and RangeableState interfaces based on an underlying ledger.SimpleQueryExecutor\n\n```go\nfunc (sqes *SimpleQueryExecutorShim) GetState(key string) ([]byte, error)\n```\n\n```go\nfunc (sqes *SimpleQueryExecutorShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\n\n```go\ntype SimpleStorageChainCode struct{}\n```\n\n```go\nfunc (s *SimpleStorageChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\nfunc (s *SimpleStorageChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\n\n```go\ntype SimpleToken struct {\n\tSymbol      string `json:\"symbol\"`\n\tTotalSupply uint64 `json:\"totalSupply\"`\n}\n```\nSimpleToken represents a standard token implementation\n\n```go\ntype SlowSortHandler struct {\n}\n```\n\n```go\nfunc (self *SlowSortHandler) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *SlowSortHandler) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (self *SlowSortHandler) SlowSort(A []int, l int, r int)\n```\n\n```go\ntype SmallBank struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *SmallBank) AMALGAMATE(ctx contractapi.TransactionContextInterface, A string, B string) error\n```\n\n```go\nfunc (t *SmallBank) Almagate(ctx contractapi.TransactionContextInterface, from, to string) error\n```\n\n```go\nfunc (t *SmallBank) BALANCE(ctx contractapi.TransactionContextInterface, A string) (string, error)\n```\nQuery callback representing the query of a chaincode\n\n```go\nfunc (t *SmallBank) CreateAccount(ctx contractapi.TransactionContextInterface, Account string, Saving int, Check int) error\n```\n\n```go\nfunc (t *SmallBank) DEPOSIT_CHECKING(ctx contractapi.TransactionContextInterface, A string, X int) error\n```\n\n```go\nfunc (t *SmallBank) GetBalance(ctx contractapi.TransactionContextInterface, account string) error\n```\n\n```go\nfunc (t *SmallBank) Query(ctx contractapi.TransactionContextInterface, key string) error\n```\n\n```go\nfunc (t *SmallBank) SEND_PAYMENT(ctx contractapi.TransactionContextInterface, A string, B string, X int) error\n```\n\n```go\nfunc (t *SmallBank) SendPayment(ctx contractapi.TransactionContextInterface, from, to, amountArg string) error\n```\n\n```go\nfunc (t *SmallBank) TRANSACT_SAVINGS(ctx contractapi.TransactionContextInterface, A string, X int) error\n```\n\n```go\nfunc (t *SmallBank) UpdateBalance(ctx contractapi.TransactionContextInterface, from, to string) error\n```\n\n```go\nfunc (t *SmallBank) UpdateSaving(ctx contractapi.TransactionContextInterface, from, to string) error\n```\n\n```go\nfunc (t *SmallBank) WRITE_CHECK(ctx contractapi.TransactionContextInterface, A string, X int) error\n```\n\n```go\nfunc (t *SmallBank) WriteCheck(ctx contractapi.TransactionContextInterface, from, amountArg string) error\n```\n\n```go\ntype SmallbankChaincode struct {\n}\n```\n\n```go\nfunc (t *SmallbankChaincode) Amalgamate(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) CreateAccount(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) DepositChecking(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) Query(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) SendPayment(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) TransactSavings(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *SmallbankChaincode) WriteCheck(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\ntype SmartBank struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *SmartBank) CreateWebsite(ctx contractapi.TransactionContextInterface, id string, link string) error\n```\n\n```go\nfunc (s *SmartBank) DeleteWebsite(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartBank) GetAllWebsite(ctx contractapi.TransactionContextInterface) ([]*Website, error)\n```\n\n```go\nfunc (s *SmartBank) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of assets to the ledger\n\n```go\nfunc (s *SmartBank) ReadWebsite(ctx contractapi.TransactionContextInterface, id string) (*Website, error)\n```\n\n```go\nfunc (s *SmartBank) UpdateWebsite(ctx contractapi.TransactionContextInterface, id string, link string) error\n```\n\n```go\nfunc (s *SmartBank) WebsiteExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\ntype SmartContract struct {\n\tcontractapi.Contract\n}\n```\nSmartContract provides functions for ProvenDB\n\n```go\nfunc NewSmartContract(contract contractapi.Contract) *SmartContract\n```\n\n```go\nfunc (s *SmartContract) ABACTest(ctx contractapi.TransactionContextInterface, carData string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) A_Accepted(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Cancelled(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Complete(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Concept(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Denied(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Incomplete(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Pending(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) A_Validating(ctx contractapi.TransactionContextInterface, empid string, id string, status string) error\n```\n\n```go\nfunc (s *SmartContract) AbandonProject(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nabandon the project\n\n```go\nfunc (s *SmartContract) AcceptModel(ctx contractapi.TransactionContextInterface, receiveMsg string) error\n```\nAcceptModel Accept BEFL models, useless for other schemes\n\n```go\nfunc (s *SmartContract) AcceptRequestAsset(ctx contractapi.TransactionContextInterface, id string, requester string) error\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) Accesscontrol(ctx contractapi.TransactionContextInterface, userid string, psw string, infoid string) string\n```\n用户访问数据，用户发送请求\n\n```go\nfunc (cc *SmartContract) AddAsset(\n\tctx contractapi.TransactionContextInterface, id, owner, auc_type string,\n) error\n```\n\n```go\nfunc (s *SmartContract) AddBalance(ctx contractapi.TransactionContextInterface) (string, error)\n```\nAddBalance adds the balance to the client's public data, reading the current balance from the ledger and adding the balance from transient field to it.\n\n```go\nfunc (s *SmartContract) AddBusBalance(ctx contractapi.TransactionContextInterface,\n\tbid string, price int64, commodityId string) error\n```\n增加商家的余额, 增加已售出数量, 在commodityList中去掉该商品\n\n```go\nfunc (s *SmartContract) AddCandidate(ctx contractapi.TransactionContextInterface) (string, error)\n```\nadd a candidate to the list\n\n```go\nfunc (s *SmartContract) AddCarDefect(ctx contractapi.TransactionContextInterface, id string, description string, repairPrice float32) error\n```\n\n```go\nfunc (s *SmartContract) AddCert(ctx contractapi.TransactionContextInterface, userID string, certificateName string, expiredDate string, certHash string) (string, error)\n```\nuserID, certificateName, expiredDate, cerHash값 받아오고 tx생성한 peer정보 블록에 기록\n\n```go\nfunc (s *SmartContract) AddCorporateEmail(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nadd a corporate with Email\n\n```go\nfunc (s *SmartContract) AddDocumentHash(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nupdate the validation criteria to add uploaded document hashes\n\n```go\nfunc (s *SmartContract) AddEmojiPost(ctx contractapi.TransactionContextInterface, payload string) error\n```\n\n```go\nfunc (t *SmartContract) AddEvent(ctx contractapi.TransactionContextInterface, name string, payload interface{})\n```\n\n```go\nfunc (s *SmartContract) AddFruit(ctx contractapi.TransactionContextInterface, userID string, fruit *Fruit) error\n```\n添加农产品到用户的农产品列表\n\n```go\nfunc (s *SmartContract) AddItem(ctx contractapi.TransactionContextInterface) (string, error)\n```\nAddItem creates an asset, sets it as owned by the client's org and returns its id the id of the asset corresponds to the hash of the properties of the asset that are  passed by transiet field The asset is stored in implicit Private Data Collection of the client's org\n\n```go\nfunc (s *SmartContract) AddOrganization(ctx contractapi.TransactionContextInterface, channelID string, mspID string) error\n```\nAddOrganization upserts an organization's MSP ID as a member of the given channel.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\t1: mspID - the MSP ID of newly added or updated member\n\nReturns:\n\n\t0: error\n\n```go\nfunc (s *SmartContract) AddParkingSlot(ctx contractapi.TransactionContextInterface, parkingSlotNumber string) error\n```\n\n```go\nfunc (s *SmartContract) AddPracticalAsset(ctx contractapi.TransactionContextInterface, id string, availibility int, wallet int, latency int) error\n```\nAddPracticalAsset issues a new asset2 to the world state with given details.\n\n```go\nfunc (s *SmartContract) AddPseudoRecord(ctx contractapi.TransactionContextInterface, jsonstr string) error\n```\n\n```go\nfunc (s *SmartContract) AddRating(ctx contractapi.TransactionContextInterface, username string, prjTitle string, prjscore string) error\n```\n\n```go\nfunc (s *SmartContract) AddReader(ctx contractapi.TransactionContextInterface, id string, newReader string) error\n```\nAddReader updates the owner field of plan with given id in world state. 添加新的用户到ReadSet中\n\n```go\nfunc (s *SmartContract) AddStudent(ctx contractapi.TransactionContextInterface, name string, reg string, dept string, school string, year string, cgpa string, lettergrade string, distinction string, imgurl string) error\n```\n\n```go\nfunc (s *SmartContract) AddToMarket(ctx contractapi.TransactionContextInterface, name string, price int) (string, error)\n```\nAddToMarket adds the asset to the market, checks the private data collection of the client's org for the asset and Add to public ledger and remove from private data collection\n\n```go\nfunc (s *SmartContract) AddTwoNumbers(ctx contractapi.TransactionContextInterface, num1 int, num2 int) (int, error)\n```\n\n```go\nfunc (s *SmartContract) AddUser(ctx contractapi.TransactionContextInterface, actorID, userID, role, password string) error\n```\n\n```go\nfunc (s *SmartContract) AddVoter(ctx contractapi.TransactionContextInterface) error\n```\nadd voters to vote\n\n```go\nfunc (s *SmartContract) Addinfo(ctx contractapi.TransactionContextInterface, infoid string, infourl string) bool\n```\n添加资源的url，服务器端，这里的url是被设备端自己加密处理过的\n\n```go\nfunc (s *SmartContract) Addpolicy(ctx contractapi.TransactionContextInterface, deviceid string, domainid string, policyid string, role string, group string, infoid string, prikey string, aeskey string, starttime string, endtime string, isallow string) bool\n```\n添加policy,设备端，所以要先身份认证\n\n```go\nfunc (t *SmartContract) After(ctx contractapi.TransactionContextInterface, value interface{})\n```\n\n```go\nfunc (s *SmartContract) AgreeToBuy(ctx contractapi.TransactionContextInterface, assetID string) error\n```\nAgreeToBuy adds buyer's bid price and asset properties to buyer's implicit private data collection\n\n```go\nfunc (s *SmartContract) AgreeToSell(ctx contractapi.TransactionContextInterface, assetID string) error\n```\nAgreeToSell adds seller's asking price to seller's implicit private data collection.\n\n```go\nfunc (s *SmartContract) AgreeToTransfer(ctx contractapi.TransactionContextInterface) error\n```\nAgreeToTransfer is used by the potential buyer of the asset to agree to the asset value. The agreed to appraisal value is stored in the buying orgs org specifc collection, while the the buyer client ID is stored in the asset collection using a composite key\n\n```go\nfunc (s *SmartContract) Allowance(ctx contractapi.TransactionContextInterface, owner string, spender string) (int, error)\n```\nAllowance returns the amount still available for the spender to withdraw from the owner\n\n```go\nfunc (s *SmartContract) AppendRole(ctx contractapi.TransactionContextInterface, name string, role string) error\n```\n\n```go\nfunc (s *SmartContract) ApplyCert(ctx contractapi.TransactionContextInterface, uid string, nid string, certMsg string, keyGenSeed int64, encryptSeed int64, operationNFT string, operationUser string) (*Cert, error)\n```\n\n```go\nfunc (s *SmartContract) ApprovalPlan(ctx contractapi.TransactionContextInterface, id string, newState string) error\n```\nApprovalPlan updates the owner field of plan with given id in world state. approver审批提交上来的飞行计划\n\n```go\nfunc (s *SmartContract) Approve(ctx contractapi.TransactionContextInterface, spender string, value int) error\n```\nApprove allows the spender to withdraw from the calling client's token account The spender can withdraw multiple times if necessary, up to the value amount This function triggers an Approval event\n\n```go\nfunc (s *SmartContract) ApproveProject(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\ncreate a new project\n\n```go\nfunc (s *SmartContract) ApproveTransfer(ctx contractapi.TransactionContextInterface, Name string) (*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) AssetExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nAssetExists returns true when asset with given ID exists in world state\n\n```go\nfunc (s *SmartContract) AssetExistsConsent(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) AssetExistsProducer(ctx contractapi.TransactionContextInterface, model string) (bool, error)\n```\nAssetExistsProducer controlla l'esistenza dell'ID specificato all'interno del wallet del produttore cioè se la vettura è disponibile nel deposito del produttore\n\n```go\nfunc (s *SmartContract) AssetReceived(ctx contractapi.TransactionContextInterface, assetID string) error\n```\n\n```go\nfunc (s *SmartContract) AssignCourier(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string, parcelID string) error\n```\nAssignCourier select the lowest bid that match the reputation requirement  and assign it in the order private details\n\n```go\nfunc (s *SmartContract) AssignParkingSlot(ctx contractapi.TransactionContextInterface,\n\tproviderID string, slotNumber string, occupierID string) error\n```\n\n```go\nfunc (s *SmartContract) Authentication(ctx contractapi.TransactionContextInterface, deviceid string, domainid string) bool\n```\n验证设备身份，可以单独使用来验证设备身份，也可以在上传策略以及信息部分使用，判断是否为true，则可以进行下一步操作，设备发送请求\n\n```go\nfunc (s *SmartContract) AutoTest(ctx contractapi.TransactionContextInterface)\n```\n\n```go\nfunc (s *SmartContract) BackwardSearch(ctx contractapi.TransactionContextInterface, id string) ([]*Record, error)\n```\nBackward search from a given node in naive blockchain\n\n```go\nfunc (s *SmartContract) BackwardSearchWithSeq(ctx contractapi.TransactionContextInterface)\n```\nBackward search with seq\n\n```go\nfunc (s *SmartContract) BalanceNFT(ctx contractapi.TransactionContextInterface, account string) [][]string\n```\nSelfBalance returns the balance of the requesting client's account\n\n```go\nfunc (s *SmartContract) BalanceOf(ctx contractapi.TransactionContextInterface, account string) (int, error)\n```\nBalanceOf returns the balance of the given account\n\n```go\nfunc (s *SmartContract) BalanceOfBatch(ctx contractapi.TransactionContextInterface, accounts []string, ids []uint64) ([]uint64, error)\n```\nBalanceOfBatch returns the balance of multiple account/token pairs\n\n```go\nfunc (s *SmartContract) BatchDecrWithTimestamp(ctx contractapi.TransactionContextInterface, count uint64, currentTime int64) error\n```\n\n```go\nfunc (s *SmartContract) BatchExists(ctx contractapi.TransactionContextInterface, batchID string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) BatchIncr(ctx contractapi.TransactionContextInterface, count uint64) error\n```\n\n```go\nfunc (s *SmartContract) BatchIncrWithTimestamp(ctx contractapi.TransactionContextInterface, count uint64, currentTime int64) error\n```\n\n```go\nfunc (s *SmartContract) BatchTransferFrom(ctx contractapi.TransactionContextInterface, sender string, recipient string, ids []uint64, amounts []uint64) error\n```\nBatchTransferFrom transfers multiple tokens from sender account to recipient account recipient account must be a valid clientID as returned by the ClientID() function This function triggers a TransferBatch event\n\n```go\nfunc (s *SmartContract) BatchTransferFromMultiRecipient(ctx contractapi.TransactionContextInterface, sender string, recipients []string, ids []uint64, amounts []uint64) error\n```\nBatchTransferFromMultiRecipient transfers multiple tokens from sender account to multiple recipient accounts recipient account must be a valid clientID as returned by the ClientID() function This function triggers a TransferBatchMultiRecipient event\n\n```go\nfunc (t *SmartContract) Before(ctx contractapi.TransactionContextInterface, value interface{})\n```\n\n```go\nfunc (s *SmartContract) Bid(ctx contractapi.TransactionContextInterface, shippingID string) (string, error)\n```\nBid is used to add a user's bid to the shipping. The bid is stored in the private data collection on the peer of the bidder's organization. The function returns the transaction ID so that users can identify and query their bid\n\n```go\nfunc (s *SmartContract) BillExists(ctx contractapi.TransactionContextInterface, billID string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) BoardExists(ctx contractapi.TransactionContextInterface,\n\tid string,\n\ttitle string) (bool, error)\n```\nBoardExist Function\n\n\t동일한 작성자 , 동일한 글제목 존재하는지 확인\n\n```go\nfunc (s *SmartContract) BondAssetSpecificChecks(ctx contractapi.TransactionContextInterface, assetType, id string, lockInfoSerializedProto64 string) error\n```\nasset specific checks (ideally an asset in a different application might implement checks specific to that asset)\n\n```go\nfunc (t *SmartContract) BorrowBookInstance(ctx contractapi.TransactionContextInterface, instId string) (*common.BookInstance, error)\n```\n\n```go\nfunc (s *SmartContract) BroadcastTokenExistance(ctx contractapi.TransactionContextInterface, id uint64) error\n```\n\n```go\nfunc (s *SmartContract) Burn(ctx contractapi.TransactionContextInterface, amount int) error\n```\nBurn redeems tokens the minter's account balance This function triggers a Transfer event\n\n```go\nfunc (s *SmartContract) BurnBatch(ctx contractapi.TransactionContextInterface, account string, ids []uint64, amounts []uint64) error\n```\nBurnBatch destroys amount tokens of for each token type id from account. This function emits a TransferBatch event.\n\n```go\nfunc (s *SmartContract) BurnFrom(ctx contractapi.TransactionContextInterface, user, amount, msg, signature string, swapId string) (interface{}, error)\n```\nBurn redeems tokens the contract owner's account balance // this function triggers a Transfer event\n\n@param {Context} ctx the transaction context @param {string} the contract owner address\n\nReturn success interface or error\n\n```go\nfunc (s *SmartContract) Buy(ctx contractapi.TransactionContextInterface, buyer string, id string) error\n```\nBuy listed NFT paying the asked price\n\n```go\nfunc (s *SmartContract) BuyAsset(ctx contractapi.TransactionContextInterface, assetID string) error\n```\n\n```go\nfunc (s *SmartContract) BuyDevice(ctx contractapi.TransactionContextInterface, deviceid string, status string) error\n```\nBuyDevice changes the status of a given deviceid with the status given\n\n```go\nfunc (s *SmartContract) BuyFromMarket(ctx contractapi.TransactionContextInterface, name string) (string, error)\n```\nBuyFromMarket buys the asset from the market, checks the public data collection of the client's org for the asset and balance of buyer and Add asset to private ledger of buyer and remove from public data collection, also update the balance of buyer and seller\n\n```go\nfunc (s *SmartContract) BuyProduct(ctx contractapi.TransactionContextInterface, buyer string, product_id uint, times uint) error\n```\n\n```go\nfunc (cc *SmartContract) CancelAuction(\n\tctx contractapi.TransactionContextInterface, IDStr string,\n) error\n```\n\n```go\nfunc (s *SmartContract) CancelOrder(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string) error\n```\nCancelOrder can be used by the seller to cancel the order and prevents accepting bid toward the order.\n\n```go\nfunc (s *SmartContract) CarHistory(ctx contractapi.TransactionContextInterface, carNumber string) ([]HistoryResult, error)\n```\nCreateCar adds a new car to the world state with given details\n\n```go\nfunc (s *SmartContract) ChangeAccountBalance(ctx contractapi.TransactionContextInterface, accountNumber string, newBalance string) error\n```\n\n```go\nfunc (s *SmartContract) ChangeAllCarColours(ctx contractapi.TransactionContextInterface, newColour string) error\n```\nCustom-made ChangeAllCarColurs\n\n```go\nfunc (s *SmartContract) ChangeBalance(ctx contractapi.TransactionContextInterface, UserID, Balance string) *Response\n```\nChangeBalance 修改资产\n\n```go\nfunc (s *SmartContract) ChangeCarColor(ctx contractapi.TransactionContextInterface, id string, newColor string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) ChangeCarColour(ctx contractapi.TransactionContextInterface, carNumber string, newColour string) error\n```\nCustom-made ChangeCarColour\n\n```go\nfunc (s *SmartContract) ChangeCarInsurer(ctx contractapi.TransactionContextInterface, carNumber string, newInsurer string) error\n```\nChangeCarOwner updates the owner field of car with given id in world state\n\n```go\nfunc (s *SmartContract) ChangeCarOwner(ctx contractapi.TransactionContextInterface, carNumber string, newOwner string) error\n```\nChangeCarOwner updates the owner field of car with given id in world state\n\n```go\nfunc (s *SmartContract) ChangeCommodityBeBaught(ctx contractapi.TransactionContextInterface,\n\tcid string, sid string, bid string, tTime string) error\n```\n\n```go\nfunc (s *SmartContract) ChangeFirmwareVersion(ctx contractapi.TransactionContextInterface, firmwareNumber string, newVersion string) error\n```\nChangeCarOwner updates the owner field of car with given id in world state\n\n```go\nfunc (s *SmartContract) ChangePass(ctx contractapi.TransactionContextInterface, UserID, Passwd string) *Response\n```\nChangePass 更改密码\n\n```go\nfunc (s *SmartContract) ChangePublicDescription(ctx contractapi.TransactionContextInterface, assetID string, newDescription string) error\n```\nChangePublicDescription updates the assets public description. Only the current owner can update the public description\n\n```go\nfunc (s *SmartContract) ChangeQrDinamico(ctx contractapi.TransactionContextInterface, qrCodeDinamicoNumber string, newValor float64) error\n```\n\n```go\nfunc (s *SmartContract) ChangeState(ctx contractapi.TransactionContextInterface, key, value string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) ChangeTranscriptGrade(ctx contractapi.TransactionContextInterface, id string, newGrade string) error\n```\nChangeTranscriptGrade updates the grade field of transcript with given id in world state\n\n```go\nfunc (s *SmartContract) ChannelExists(ctx contractapi.TransactionContextInterface, channelID string) (bool, error)\n```\nChannelExists returns true when the channel with the given ID exists in the ledger.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\nReturns:\n\n\t0: whether that the channel with the given ID exists or not\n\t1: error\n\n```go\nfunc (s *SmartContract) Check(ctx contractapi.TransactionContextInterface, hash string) (bool, error)\n```\nCheck returns true when apk1 and apk2 exist in world state\n\n```go\nfunc (s *SmartContract) CheckAccess(ctx contractapi.TransactionContextInterface, requestee string, sid string, requestTime int) (string, error)\n```\n\n```go\nfunc (s *SmartContract) CheckCreditFromSameBank(ctx contractapi.TransactionContextInterface, userUid string, bankName string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) CheckEndorsingOrg(ctx contractapi.TransactionContextInterface) (string, error)\n```\nCheckEndorsingOrg checks that the peer org is present in the given transient data\n\n```go\nfunc (s *SmartContract) CheckExistance(ctx contractapi.TransactionContextInterface, pid string) (bool, error)\n```\n\n```go\nfunc (this *SmartContract) CheckExtractionPatternIsSet(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) CheckGroupAccess(ctx contractapi.TransactionContextInterface, requestee string, sids []string, requestTimes []int) ([]string, error)\n```\n\n```go\nfunc (this *SmartContract) CheckInsuranceDataExists(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nthis function returns true if InsuranceData exists in pdc for a data call else returns false\n\n```go\nfunc (s *SmartContract) CheckJCA(ctx contractapi.TransactionContextInterface, action string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) CheckOrgConsent(ctx contractapi.TransactionContextInterface, id string, action string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) Claim(ctx contractapi.TransactionContextInterface, c string) error\n```\nClaim adds a claim\n\n```go\nfunc (s *SmartContract) ClaimAsset(ctx contractapi.TransactionContextInterface, assetAgreementBytesBase64 string, claimInfoBytesBase64 string) error\n```\nClaimAsset cc is used to record claim of an asset on the ledger\n\n```go\nfunc (s *SmartContract) ClaimAssetUsingContractId(ctx contractapi.TransactionContextInterface, contractId string, claimInfoBytesBase64 string) error\n```\nClaimAsset cc is used to record claim of an asset on the ledger (this uses the contractId)\n\n```go\nfunc (s *SmartContract) ClaimDevice(ctx contractapi.TransactionContextInterface, deviceid string,\n\tstatus string,\n\tcontrollerid string) float64\n```\nClaimDevice issues the claim of a device that is registered in the network. All the promissory notes created and active that have the same device model as the one that was claimed are identified and the payments are updated. An event is set every time a device is claimed to inform Fabric Application, which is listening to this specific event.\n\n```go\nfunc (s *SmartContract) ClaimFungibleAsset(ctx contractapi.TransactionContextInterface, contractId string, claimInfoBytesBase64 string) error\n```\nClaimFungibleAsset cc is used to record claim of a fungible asset on the ledger\n\n```go\nfunc (s *SmartContract) ClaimRemoteAsset(ctx contractapi.TransactionContextInterface, pledgeId, assetType, id, owner, remoteNetworkId, pledgeBytes64 string) error\n```\nClaimRemoteAsset gets ownership of an asset transferred from a different ledger/network.\n\n```go\nfunc (s *SmartContract) ClaimRemoteTokenAsset(ctx contractapi.TransactionContextInterface, pledgeId, assetType string, numUnits uint64, owner, remoteNetworkId, pledgeBytes64 string) error\n```\nClaimRemoteTokenAsset gets ownership of an asset transferred from a different ledger/network.\n\n```go\nfunc (s *SmartContract) ClearState(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) ClientAccountBalance(ctx contractapi.TransactionContextInterface) (int, error)\n```\nClientAccountBalance returns the balance of the requesting client's account\n\n```go\nfunc (s *SmartContract) ClientAccountID(ctx contractapi.TransactionContextInterface) (string, error)\n```\nClientAccountID returns the id of the requesting client's account In this implementation, the client account ID is the clientId itself Users can use this function to get their own account id, which they can then give to others as the payment address\n\n```go\nfunc (s *SmartContract) ClientAccountUsedBalance(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\n\n```go\nfunc (s *SmartContract) ClientID(ctx contractapi.TransactionContextInterface) (string, error)\n```\nClientID returns the client id of the calling client Users can use this function to get their own client id, which they can then give to others as the payment address\n\n```go\nfunc (s *SmartContract) ClientUTXOs(ctx contractapi.TransactionContextInterface) ([]*UTXO, error)\n```\nClientUTXOs returns all UTXOs owned by the calling client\n\n```go\nfunc (s *SmartContract) CloseAuction(ctx contractapi.TransactionContextInterface, auctionID string) error\n```\nCloseAuction can be used by the seller to close the auction. This prevents bids from being added to the auction, and allows users to reveal their bid\n\n```go\nfunc (s *SmartContract) CloseOrderBid(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string) error\n```\nCloseOrderBid can be used by the seller to close accepting bid toward the order. This prevents bids from being added to the order, and allows users to reveal their bids\n\n```go\nfunc (s *SmartContract) CloseShipping(ctx contractapi.TransactionContextInterface, shippingID string) error\n```\nCloseShipping can be used by the seller to close the shipping. This prevents bids from being added to the shipping, and allows users to reveal their bid\n\n```go\nfunc (s *SmartContract) CommonQuery(ctx contractapi.TransactionContextInterface, queryString string) ([]CommonResponse, error)\n```\nMango query: {\"selector\": {\"type\": \"FundRequest\"}}, PageSize: 10, Bookmark: 'sfdrr4wereaf'\n\n```go\nfunc (s *SmartContract) CommonQueryPagination(ctx contractapi.TransactionContextInterface, arg string) (*CommonResponsePaginated, error)\n```\n\n```go\nfunc (s *SmartContract) CompensateNFT(ctx contractapi.TransactionContextInterface, account string, tokenId string) error\n```\n\n```go\nfunc (s *SmartContract) CompleteOrder(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string, parcelID string) error\n```\n\n```go\nfunc (s *SmartContract) ComputeParameters(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) ConfigureInterop(interopChaincodeId string)\n```\n\n```go\nfunc (s *SmartContract) ConsultarTransaccion(ctx contractapi.TransactionContextInterface, idTransaccion string) (*Transaccion, error)\n```\n\n```go\nfunc (s *SmartContract) ContentExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nContentExists returns true when content with given ID exists in world state\n\n```go\nfunc (s *SmartContract) ContractExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nContractExists returns true when Contract with given ID exists in world state\n\n```go\nfunc (s *SmartContract) ContractIdAssetsLookupMap(ctx contractapi.TransactionContextInterface, assetType, assetId, contractId string) error\n```\nwrite to the ledger the details needed at the time of unlock/claim\n\n```go\nfunc (s *SmartContract) ContractIdFungibleAssetsLookupMap(ctx contractapi.TransactionContextInterface, assetType string, numUnits uint64, contractId string) error\n```\nwrite to the ledger the details needed at the time of unlock/claim\n\n```go\nfunc (s *SmartContract) ContractSanction(ctx contractapi.TransactionContextInterface, company_name string, signature string, ContractName string) (*Contract_among_company, error)\n```\n审核，生成放入跨公司区块的文本【需要调用公司间区块的链码ContractSanction\\_upload上传】\n\n```go\nfunc (s *SmartContract) Count(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\n\n```go\nfunc (s *SmartContract) CountDownloads(ctx contractapi.TransactionContextInterface, action string) (interface{}, error)\n```\n\\* Download Content Counter @param string ccid @param string walletid @param \\[]int args \\[contentID, userID] @returns @memeberof Drive\n\n```go\nfunc (s *SmartContract) CountOrganizationsInChannel(ctx contractapi.TransactionContextInterface, channelID string) (int, error)\n```\nCountOrganizationsInChannel returns the number of organizations participating in the given channel.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\nReturns:\n\n\t0: the number of organizations participating in the given channel\n\t1: error\n\n```go\nfunc (s *SmartContract) CountTransferableAssets(ctx contractapi.TransactionContextInterface) ([]*Asset_Pointer, error)\n```\nCountTransferableAssets returns IDs of all assets found in world state having Node=\"server\"\n\n```go\nfunc (s *SmartContract) CourierArrived(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string) error\n```\n\n```go\nfunc (s *SmartContract) CrearTransaccion(ctx contractapi.TransactionContextInterface, idCliente string, monto float64, monedaDestino string, destino string, idTransaccion string) error\n```\n\n```go\nfunc (s *SmartContract) Create(ctx contractapi.TransactionContextInterface, farmNumber string, farmName string, address string, license string, owner string, breedingTime string, releaseDate string) error\n```\n添加农场\n\n```go\nfunc (s *SmartContract) CreateAccessControlPolicy(ctx contractapi.TransactionContextInterface, accessControlPolicyJSON string) error\n```\nCreateAccessControlPolicy cc is used to store a AccessControlPolicy in the ledger\n\n```go\nfunc (s *SmartContract) CreateAccount(ctx contractapi.TransactionContextInterface, UserID, Passwd string) *Response\n```\nCreateAccount 新建账号\n\n```go\nfunc (s *SmartContract) CreateAndReturnKey(ctx contractapi.TransactionContextInterface, key string, value string) (string, error)\n```\nCreateAndReturnKey adds a new entry with the specified key and value, and returns the key\n\n```go\nfunc (s *SmartContract) CreateAsset(ctx contractapi.TransactionContextInterface, id string, color string, size int, owner string, appraisedValue int) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateAssetConsent(ctx contractapi.TransactionContextInterface, id string, readFlag bool, consentFlag bool) error\n```\nCreateAsset creates a new asset by placing the main asset details in the assetCollection that can be read by both organizations. The appraisal value is stored in the owners org specific collection.\n\n```go\nfunc (s *SmartContract) CreateAssetPrivateCollectionOrg1(ctx contractapi.TransactionContextInterface) error\n```\nCreateAssetPrivateCollectionOrg1 creates a new asset by placing the main asset details in the assetCollection that can be read by both organizations. The appraisal value is stored in the owners org specific collection.\n\n```go\nfunc (s *SmartContract) CreateAssetUsingStructParam(ctx contractapi.TransactionContextInterface, request *Asset) error\n```\nCreateAssetUsingStructParam issues a new asset to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateAuction(ctx contractapi.TransactionContextInterface, auctionID string, itemsold string, quantity int, withAuditor string, reservePrice int, startTime string, endTime string) error\n```\nCreateAuction creates on auction on the public channel. The identity that submits the transacion becomes the seller of the auction\n\n```go\nfunc (s *SmartContract) CreateBS(ctx contractapi.TransactionContextInterface, BSNumber string, global_computing_resource float64, reversed_computing_resource float64, computing_efficiency float64, completion_ratio float64, total_received_task float64, reliability float64) error\n```\nCreatS adds a new basestation to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateBackup(ctx contractapi.TransactionContextInterface, backupID string, deviceID string, hash string, paths string, signature string, size string) (string, error)\n```\nCreateBackup adds a new backup to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateBalance(ctx contractapi.TransactionContextInterface, UserID, Balance string) *Response\n```\nCreateBalance 新增用户和初始资金\n\n```go\nfunc (s *SmartContract) CreateBatch(ctx contractapi.TransactionContextInterface, batchID string) error\n```\nFuntion for a creating a Batch\n\n```go\nfunc (s *SmartContract) CreateBill(ctx contractapi.TransactionContextInterface) error\n```\nAdmin's create bill\n\n```go\nfunc (s *SmartContract) CreateBoard(ctx contractapi.TransactionContextInterface,\n\tid string,\n\ttitle string,\n\tcontents string) error\n```\nCreate Board Function\n\n\t첫 글 생성\n\nInput ID(작성자) , title(글제목) , contents(글내용)\n\n```go\nfunc (t *SmartContract) CreateBook(ctx contractapi.TransactionContextInterface, book *common.Book) error\n```\n\n```go\nfunc (sc *SmartContract) CreateBulk(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\nCreate a new key-value pair and send to state database\n\n```go\nfunc (sc *SmartContract) CreateBulkParallel(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (s *SmartContract) CreateBusiness(ctx contractapi.TransactionContextInterface, id string, name string, phone string) error\n```\nCreare Business add a new Business to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateBuy(ctx contractapi.TransactionContextInterface, OrderId string, Amount string, AmountWithFees string, TotalKgs string, DwrReceiptId string, AccountNo string, UserId string) error\n```\n\n```go\nfunc (s *SmartContract) CreateCampaign(ctx contractapi.TransactionContextInterface, id string, name string, advertiser string, business string, timestamp string) error\n```\nCreate a new campaign\n\n```go\nfunc (s *SmartContract) CreateCar(ctx contractapi.TransactionContextInterface, carNumber string, make string, model string, colour string, owner string) error\n```\nCreateCar adds a new car to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateChannel(ctx contractapi.TransactionContextInterface, channelID string, channelType string, mspIDs []string) error\n```\nCreateChannel issues a new channel information.\n\nArguments:\n\n\t0: channelID - the channel ID to be recorded\n\t1: channelType - the type of the channel (if this is empty, \"application\" is set as the default value)\n\t2: mspIDs - the list of members of the channel\n\nReturns:\n\n\t0: error\n\n```go\nfunc (s *SmartContract) CreateChat(ctx contractapi.TransactionContextInterface, chatId string, client string, broker string) (string, error)\n```\nCreateChat creates a chat schema on world state\n\n```go\nfunc (s *SmartContract) CreateCommodity(ctx contractapi.TransactionContextInterface,\n\tid string, name string, price string, issuer string, issuerName string) error\n```\nQueryResult stucture used for handling result of query bussinessman\n\n```go\nfunc (s *SmartContract) CreateContent(ctx contractapi.TransactionContextInterface, creationTimestamp time.Time, id string, formContent string) (*Content, error)\n```\nCreateContent issues a new content to the world state with given details. func (s \\*SmartContract) CreateContent(ctx contractapi.TransactionContextInterface, creationTimestamp time.Time, id string, formContent string) (\\[]\\*Content, error) {\n\n```go\nfunc (s *SmartContract) CreateContract(ctx contractapi.TransactionContextInterface, contractJSON string) error\n```\n\n```go\nfunc (s *SmartContract) CreateCrops(ctx contractapi.TransactionContextInterface, CropsId, CropsName, Address, RegisterTime, Year, FarmerName, FarmerID, FarmerTel, FertilizerName, PlatMode, BaggingStatus, GrowSeedlingsCycle, IrrigationCycle, ApplyFertilizerCycle, WeedCycle, Remarks string) *Response\n```\nCreateCrops 新增作物记录\n\n```go\nfunc (s *SmartContract) CreateCustomer(ctx contractapi.TransactionContextInterface, id string, name string, phone string) error\n```\nCreare Superviser add a new superviser to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateCv(ctx contractapi.TransactionContextInterface, id string, docID string) error\n```\nCreateCv adds a new cv\n\n```go\nfunc (s *SmartContract) CreateDataCall(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nCreateDataCall creates a new DataCall object. This method receives as a parameter a DataCall object in JSON format. Success: nil Error: {\"message\":\"....\",\"errorCode\":\"Sys\\_Err/Bus\\_Err\"}\n\n```go\nfunc (s *SmartContract) CreateDevice(ctx contractapi.TransactionContextInterface, id string, domainid string, ticket string) error\n```\n注册设备，设备发送请求\n\n```go\nfunc (s *SmartContract) CreateDocument(ctx contractapi.TransactionContextInterface, DocumentID string, DocumentCID string, Owner string, access string) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateDocumentUsingCarContract(ctx contractapi.TransactionContextInterface, functionName string, documentData string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) CreateDomain(ctx contractapi.TransactionContextInterface, id string, owner string, pubkey string) error\n```\n注册域，主设备发送请求，函数名开头字母要大写\n\n```go\nfunc (s *SmartContract) CreateDonation(ctx contractapi.TransactionContextInterface, id string, donationType string, size int, donor string, appraisedValue int, timestamp int, status string) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateExMetaData(ctx contractapi.TransactionContextInterface, key string, src string, dest string, from string, cid string, to string) error\n```\nadds a new internal metadata to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateExporter(ctx contractapi.TransactionContextInterface, exporterID string, name string, address string) error\n```\nFunction for creating the Exporter\n\n```go\nfunc (this *SmartContract) CreateExtractionPattern(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\ncreates extraction patten definition\n\n```go\nfunc (s *SmartContract) CreateFarmer(ctx contractapi.TransactionContextInterface, farmerID string, name string, address string) error\n```\nFunction for creating the farmer\n\n```go\nfunc (s *SmartContract) CreateFarmerSeedBefore(ctx contractapi.TransactionContextInterface, batchID string, name string, seedType string, placeGrow string, landArea string, totalQuantitySeed float64, seedQualityType string, growDate string) error\n```\nAs farmer involved two time so this function is for before data\n\n```go\nfunc (s *SmartContract) CreateFarmerSeedDataAfter(ctx contractapi.TransactionContextInterface, farmerID string, batchID string, fertilizerName string, fertilizerQuantity string, pestisideName string, pestisideQuantity string, produceQuantityTypeA float64, produceQuantityTypeB float64, produceQuantityTypeC float64, cutting string, cuttingDate string) error\n```\nThis function is for farmer second time\n\n```go\nfunc (s *SmartContract) CreateFile(ctx contractapi.TransactionContextInterface, data string) (interface{}, error)\n```\n\\* Create Content @param string ccid @param string author @param string approveTo @returns @memeberof Drive\n\n```go\nfunc (s *SmartContract) CreateFirmware(ctx contractapi.TransactionContextInterface, firmwareNUmber string, id string, name string, version string, status string, path string, create string, deploy string, hash string) error\n```\nCreateCar adds a new car to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateFromRemote(ctx contractapi.TransactionContextInterface, key string, value string) error\n```\nCreateFromRemote adds a new entry with the specified key and value obtained (with proof) from a remote network\n\n```go\nfunc (s *SmartContract) CreateImporter(ctx contractapi.TransactionContextInterface, importerID string, name string, address string) error\n```\nFunction for creating an Importer\n\n```go\nfunc (s *SmartContract) CreateInMetaData(ctx contractapi.TransactionContextInterface, key string, from string, cid string, to string) error\n```\nadds a new internal metadata to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateInspector(ctx contractapi.TransactionContextInterface, inspectorID string, name string, address string) error\n```\nFunction for creating the inspector\n\n```go\nfunc (s *SmartContract) CreateInvoice(ctx contractapi.TransactionContextInterface, id, owner string, buyer string, hash int,\n\tinvoiceNumber string, tax float32, netto float32, countryOrigin string, CountryBuyer string, status string, received bool,\n\treceivedOrder bool, sold bool, claimPaid bool, claimPaidBy string, taxExemptionReason string, taxReceived bool,\n) error\n```\nCreateAsset issues a new asset to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateKey(ctx contractapi.TransactionContextInterface, key string, val string) error\n```\nCreateKey\n\n```go\nfunc (sc *SmartContract) CreateLog(ctx contractapi.TransactionContextInterface, logID, fileName, content, timestamp, owner string) error\n```\n\n```go\nfunc (s *SmartContract) CreateLogging(ctx contractapi.TransactionContextInterface, action string, jcaAnswer bool) error\n```\nFunc create Log, will create a logging asset, independently of the JCA answer. The asset will log the invoker and the invoke. It will also log the JCA answer.\n\n```go\nfunc (s *SmartContract) CreateMachining(ctx contractapi.TransactionContextInterface, MachiningId, Leader, CropsId, LeaderTel, FactoryName, TestingResult, InFactoryTime, OutFactoryTime, TestingPhotoUrl, Remarks string) *Response\n```\nCreateMachining 加工数据上链\n\n```go\nfunc (s *SmartContract) CreateMalware(ctx contractapi.TransactionContextInterface, malwareID string, duration string, deviceID string, checksum string) error\n```\nCreateMalware issues a new malware entry to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateMetadata(ctx contractapi.TransactionContextInterface, creationTimestamp time.Time, hash string, hashType string, id string, sizeInBytes int) error\n```\nCreateMetadata issues a new metadata to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateModel(ctx contractapi.TransactionContextInterface, modelNumber string, modelName string, frame map[string][]int) error\n```\nCreateBook adds a new book to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateNewAsset(ctx contractapi.TransactionContextInterface, m float64, c float64, n int) ([]*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) CreateNode(ctx contractapi.TransactionContextInterface, nodeid string, fileid string) error\n```\nCreateNode issues a new node to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateOrder(ctx contractapi.TransactionContextInterface, parcelID string, minRep float64, picloc string) (string, error)\n```\n\n```go\nfunc (c *SmartContract) CreatePackage(ctx contractapi.TransactionContextInterface, id, dateOfManufacture, placeOfOrigin string) error\n```\nCreatePackage - Create a new package\n\n```go\nfunc (s *SmartContract) CreateParcel(ctx contractapi.TransactionContextInterface) (string, error)\n```\ncreate parcel allows the seller to create parcel immutable properties on implicit private data and parcel agreement with customer on parcel collection\n\n```go\nfunc (s *SmartContract) CreatePermittedNetwork(ctx contractapi.TransactionContextInterface, networkName string, ip string, address string, companyName string) (*PermittedNetworkInfo, error)\n```\n\n```go\nfunc (s *SmartContract) CreatePlan(ctx contractapi.TransactionContextInterface, id string, unitorindividual string, contact string, aircraft Aircraft) error\n```\nCreatePlan issues a new plan to the world state with given details. 创建飞行计划，只有ApplicantMSP有权限创建飞行计划\n\n```go\nfunc (s *SmartContract) CreatePolicy(ctx contractapi.TransactionContextInterface, policyID string, replicas string, frequency string, offsite string, size string) error\n```\nCreatePolicy issues a new policy entry to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreatePost(ctx contractapi.TransactionContextInterface, payload string) error\n```\nCreatePost creates a post.\n\n```go\nfunc (s *SmartContract) CreatePrivateDataImplicitForOrg1(ctx contractapi.TransactionContextInterface, carData string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) CreateProduct(ctx contractapi.TransactionContextInterface, name string, description string, maxStage string) error\n```\nTask 2\n\n```go\nfunc (s *SmartContract) CreateProject(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\ncreate a new project\n\n```go\nfunc (s *SmartContract) CreatePromissoryNote(ctx contractapi.TransactionContextInterface,\n\tbuyer string,\n\tb_addr string,\n\tseller string,\n\ts_addr string,\n\tbatchID string,\n\tamount string,\n\tprice int,\n\tassetType string,\n\tpercent string,\n\tpercent_bonus string) (int, error)\n```\nCreatePromissoryNote creates a PN with given details\n\n```go\nfunc (s *SmartContract) CreateQrCodeDinamico(ctx contractapi.TransactionContextInterface, qrCodeDinamicoNumber string, ispb string, tipoConta string, agencia string, conta string, link string, identificador string, valor float64) error\n```\n\n```go\nfunc (s *SmartContract) CreateRaw(ctx contractapi.TransactionContextInterface, supplierId string, rawId string, rawName string, createDate string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) CreateRcro(ctx contractapi.TransactionContextInterface, ID string, Downsteam string, Upstream string, UPC string) error\n```\n\n```go\nfunc (s *SmartContract) CreateRecord(ctx contractapi.TransactionContextInterface, id string, previous string, data string) error\n```\nCreateRecord issues a new record to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateRelationship(ctx contractapi.TransactionContextInterface, nodeida string, nodeidb string) error\n```\nCreateRelationship issues a new relationship to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateRetailor(ctx contractapi.TransactionContextInterface, retailorID string, name string, address string) error\n```\nFunction for creating a Retailor\n\n```go\nfunc (s *SmartContract) CreateSelling(ctx contractapi.TransactionContextInterface, SellID, CropsID, SellerID, BuyerID, Price string) *Response\n```\nCreateSelling CreateMachining 交易信息上链\n\n```go\nfunc (s *SmartContract) CreateSharing(ctx contractapi.TransactionContextInterface, sharing Sharing) error\n```\n사용자가 대여 신청 누르면 발생 -\u003e Sharing 객체를 만들어줌\n\n```go\nfunc (s *SmartContract) CreateShipping(ctx contractapi.TransactionContextInterface, shippingID string, itemName string, itemDest string, itemWeight int, itemDays int) error\n```\nCreateShipping creates on shipping on the public channel. The identity that submits the transacion becomes the seller of the shipping\n\n```go\nfunc (s *SmartContract) CreateTodoItem(ctx contractapi.TransactionContextInterface, id string, description string, owner string, status string, startDate time.Time, endDate time.Time, priority int) error\n```\nCreateTodoItem issues a new todo item to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateTokenAssetType(ctx contractapi.TransactionContextInterface, tokenAssetType string, issuer string, value int) (bool, error)\n```\nCreateTokenAssetType issues a new token asset type to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateTransaction(ctx contractapi.TransactionContextInterface, tranid string, approvalcode string, billdetails string, customerdetails string, status string) error\n```\nCreateTransaction issues a new transaction to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateTransaton(ctx contractapi.TransactionContextInterface, transactionId string, to string, from string, date string, amount string, transactioncreateby string, validatedby string) error\n```\nCreateCar adds a new car to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateTranscript(ctx contractapi.TransactionContextInterface, id string, email string, pass string) error\n```\nCreateTranscript adds a new transcript to the world state with given details\n\n```go\nfunc (s *SmartContract) CreateTransport(ctx contractapi.TransactionContextInterface, TransportId, DriverId, DriverName, DriverTel, DriverDept, CropsId, TransportToChainTime, TransportToAddress, Remarks string) *Response\n```\nCreateTransport 物流信息上链\n\n```go\nfunc (s *SmartContract) CreateTransporter(ctx contractapi.TransactionContextInterface, transporterID string, name string, address string) error\n```\nFunction for creating a Transporter\n\n```go\nfunc (s *SmartContract) CreateUnknownAsset(ctx contractapi.TransactionContextInterface, id string, unk1 string, unk2 string) error\n```\nCreateUnknownAsset creates a new \"unknown asset\". These assets are not defined in type, can be \"anything\". PDA will decide previously to the CC invoke which fields are private. There is always 3 public fields (id+2), and 3 pvt fields.\n\n```go\nfunc (s *SmartContract) CreateUser(ctx contractapi.TransactionContextInterface, request string) error\n```\nCreateUser issues a new user to the world state with given details.\n\n```go\nfunc (s *SmartContract) CreateViwRequest(ctx contractapi.TransactionContextInterface, requestid string, transactionId string, requestto string, requestby string) error\n```\n\n```go\nfunc (s *SmartContract) CreateWallet(ctx contractapi.TransactionContextInterface, userID string) error\n```\n회원가입 시 사용자 지갑 생성\n\n```go\nfunc (s *SmartContract) Create_User(ctx contractapi.TransactionContextInterface, uid string, name string) (User, error)\n```\n\n```go\nfunc (s *SmartContract) Createuser(ctx contractapi.TransactionContextInterface, id string, name string, tanq string) error\n```\nInsere um usuario na blockchain\n\n```go\nfunc (s *SmartContract) CrossChainTransfer(ctx contractapi.TransactionContextInterface, Type string) string\n```\n\n```go\nfunc (s *SmartContract) CustomerAgreement(ctx contractapi.TransactionContextInterface, parcelID string, shipDate string, destination string) error\n```\ncustomer will add his agreement by adding himself as Customer, destination and ship date in parcelCollection\n\n```go\nfunc (s *SmartContract) DataOnChainCheck(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nidOnChainCheck check if the id has been used as the key on blockchain\n\n```go\nfunc (s *SmartContract) Decimals(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) Decr(ctx contractapi.TransactionContextInterface, count uint64) error\n```\n\n```go\nfunc (s *SmartContract) DecreaseAsset(ctx contractapi.TransactionContextInterface, Name string, decrementValue string) (*Asset, error)\n```\nDecreaseAsset decreases the value of the asset by the specified value\n\n```go\nfunc (s *SmartContract) DecreaseScore(ctx contractapi.TransactionContextInterface, licenseID string, decrementValue string) (*TallyScoreAsset, error)\n```\nfunction to decrease tallyScore of a company\n\n```go\nfunc (s *SmartContract) Decrypt(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (contract *SmartContract) Delete(ctx contractapi.TransactionContextInterface, healthcareID string) error\n```\n调用示例: '{\"function\":\"delete\",\"Args\":\\[\"h1\"]}'\n\n```go\nfunc (s *SmartContract) DeleteAccessControlPolicy(ctx contractapi.TransactionContextInterface, securityDomain string) error\n```\nDeleteAccessControlPolicy cc is used to delete an existing AccessControlPolicy in the ledger\n\n```go\nfunc (s *SmartContract) DeleteAccount(ctx contractapi.TransactionContextInterface, accountNumber string) error\n```\n\n```go\nfunc (s *SmartContract) DeleteAll(ctx contractapi.TransactionContextInterface, startKey string, endKey string) error\n```\n\n```go\nfunc (s *SmartContract) DeleteAsset(ctx contractapi.TransactionContextInterface, id string) error\n```\nDeleteAsset deletes an given asset from the world state.\n\n```go\nfunc (s *SmartContract) DeleteAssetLookupMaps(ctx contractapi.TransactionContextInterface, assetType, assetId string) error\n```\n\n```go\nfunc (s *SmartContract) DeleteAssetLookupMapsOnlyUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) error\n```\n\n```go\nfunc (s *SmartContract) DeleteAssetLookupMapsUsingContractId(ctx contractapi.TransactionContextInterface, assetType, assetId, contractId string) error\n```\n\n```go\nfunc (s *SmartContract) DeleteBackup(ctx contractapi.TransactionContextInterface, backupID string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) DeleteCar(ctx contractapi.TransactionContextInterface, carNumber string) error\n```\nDeleteCar deletes an given car from the world state\n\n```go\nfunc (s *SmartContract) DeleteCarById(ctx contractapi.TransactionContextInterface, carID string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) DeleteCert(ctx contractapi.TransactionContextInterface, certHash string) error\n```\ncertHash값으로 기록된 cert 쿼리 후 삭제\n\n```go\nfunc (s *SmartContract) DeleteCustomer(ctx contractapi.TransactionContextInterface, id string) error\n```\nDeleteCustomer delete the customer with the id given in world state\n\n```go\nfunc (s *SmartContract) DeleteDonation(ctx contractapi.TransactionContextInterface, id string) error\n```\nDeleteAsset deletes an given asset from the world state.\n\n```go\nfunc (s *SmartContract) DeleteFungibleAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) error\n```\n\n```go\nfunc (s *SmartContract) DeleteOwner(ctx contractapi.TransactionContextInterface, Name string) error\n```\n\n```go\nfunc (s *SmartContract) DeletePlan(ctx contractapi.TransactionContextInterface, id string) error\n```\nDeletePlan deletes an given plan from the world state. 删除已有的飞行计划\n\n```go\nfunc (s *SmartContract) DeletePolicyById(ctx contractapi.TransactionContextInterface, policyId string) (string, error)\n```\n删除策略\n\n```go\nfunc (s *SmartContract) DeletePost(ctx contractapi.TransactionContextInterface, payload string) error\n```\n\n```go\nfunc (s *SmartContract) DeletePrivatePlan(ctx contractapi.TransactionContextInterface) error\n```\nDelete plan votes collection when polling stops\n\n```go\nfunc (s *SmartContract) DeleteProject(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\ndelete the project\n\n```go\nfunc (s *SmartContract) DeleteRecord(ctx contractapi.TransactionContextInterface, id string) error\n```\nDeleteRecord deletes an given record from the world state.\n\n```go\nfunc (s *SmartContract) DeleteReport(\n\tctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) DeleteTodoItem(ctx contractapi.TransactionContextInterface, id string) error\n```\nDeleteTodoItem deletes a given todo item from the world state.\n\n```go\nfunc (s *SmartContract) DeleteTokenAssetType(ctx contractapi.TransactionContextInterface, tokenAssetType string) error\n```\nDeleteTokenAssetType deletes an given token asset type from the world state.\n\n```go\nfunc (s *SmartContract) DeleteTokenAssets(ctx contractapi.TransactionContextInterface, tokenAssetType string, numUnits uint64) error\n```\nDeleteTokenAssets burns the token assets from an owner.\n\n```go\nfunc (s *SmartContract) DeleteTranferAgreement(ctx contractapi.TransactionContextInterface) error\n```\nDeleteTranferAgreement can be used by the buyer to withdraw a proposal from the asset collection and from his own collection.\n\n```go\nfunc (s *SmartContract) DeleteUser(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) DeleteValue(ctx contractapi.TransactionContextInterface, _key string) error\n```\n\n```go\nfunc (s *SmartContract) Deleteinfo(ctx contractapi.TransactionContextInterface, infoid string) bool\n```\n删除URL，设备端\n\n```go\nfunc (s *SmartContract) Deletepolicy(ctx contractapi.TransactionContextInterface, deviceid string, domainid string, policyid string) bool\n```\n删除policy\n\n```go\nfunc (s *SmartContract) DeliveryProduct(ctx contractapi.TransactionContextInterface, distributorId string, productId string, deliveryDate string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) DenyRequestAsset(ctx contractapi.TransactionContextInterface, id string, requester string) error\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) DependQuery(ctx contractapi.TransactionContextInterface, Type string, UPC string) string\n```\n\n```go\nfunc (s *SmartContract) Deposit(ctx contractapi.TransactionContextInterface, userID string, amount string) error\n```\n입금을 위한 체인코드\n\n```go\nfunc (s *SmartContract) DeviceExists(ctx contractapi.TransactionContextInterface, deviceid string) (bool, error)\n```\nDeviceExists checks if a device with deviceid already exists in the worldstate\n\n```go\nfunc (s *SmartContract) DeviceGenesisRegistration(ctx contractapi.TransactionContextInterface, deviceid string,\n\tcontrollerid string,\n\tdevicemodelid string,\n\tdevicetype string,\n\tdevicestatus string,\n\tdtid string,\n\tsellinvitation string) error\n```\nDeviceGenesisRegistration registers a new device with given details\n\n```go\nfunc (s *SmartContract) DonationExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nAssetExists returns true when asset with given ID exists in world state\n\n```go\nfunc (s *SmartContract) DownloadNoise(ctx contractapi.TransactionContextInterface) ([]*GlobalParameters, error)\n```\n\n```go\nfunc (s *SmartContract) DownloadParams(ctx contractapi.TransactionContextInterface) ([]*GlobalParameters, error)\n```\n\n```go\nfunc (s *SmartContract) DownvotePost(ctx contractapi.TransactionContextInterface, payload string) error\n```\n\n```go\nfunc (s *SmartContract) Echo(ctx contractapi.TransactionContextInterface, arg string) (string, error)\n```\nEcho the argument back as the response\n\n```go\nfunc (s *SmartContract) EchoTransient(ctx contractapi.TransactionContextInterface) (map[string]string, error)\n```\nEchoTransient returns the transient data map with both keys and values as strings\n\n```go\nfunc (s *SmartContract) EditProject(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) EmbedData(\n\tctx contractapi.TransactionContextInterface,\n\tdata string,\n) (rp *common.EmbedDataReply, er error)\n```\nEmbedData embeds the data to the Hyperledger network\n\n```go\nfunc (s *SmartContract) Encrypt(ctx contractapi.TransactionContextInterface, msg string, boolExp string) error\n```\nEncrypt encryption\n\n```go\nfunc (s *SmartContract) EndAuction(ctx contractapi.TransactionContextInterface, auctionID string) error\n```\nEndAuction both changes the auction status to closed and calculates the winners of the auction\n\n```go\nfunc (s *SmartContract) EndShipping(ctx contractapi.TransactionContextInterface, shippingID string) error\n```\nEndShipping both changes the shipping status to closed and calculates the winners of the shipping\n\n```go\nfunc (s *SmartContract) EndorsementInc(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartContract) ErrorMessage(ctx contractapi.TransactionContextInterface, message string) error\n```\nErrorMessage returns an error response containing the given message\n\n```go\nfunc (s *SmartContract) Event(ctx contractapi.TransactionContextInterface, name string, payload string) error\n```\nEvent emits an event with a given name and payload\n\n```go\nfunc (s *SmartContract) ExistAccountByUserMonth(ctx contractapi.TransactionContextInterface,\n\tuser string, month string, year string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) ExpireAsset(ctx contractapi.TransactionContextInterface, data string) (*ExpireResponse, error)\n```\n\n```go\nfunc (s *SmartContract) ExporterExists(ctx contractapi.TransactionContextInterface, exporterID string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) FTFromNFT(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\nMint creates amount tokens of token type id and assigns them to account. This function emits a TransferSingle event.\n\n```go\nfunc (s *SmartContract) FarmExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) FarmerExists(ctx contractapi.TransactionContextInterface, farmerID string) (bool, error)\n```\nFunction for checking the farmer that wheather it exist or not\n\n```go\nfunc (s *SmartContract) Feed(ctx contractapi.TransactionContextInterface, fungusId uint, FeedId uint) error\n```\n\n```go\nfunc (s *SmartContract) FetchAssetIdFromContractIdAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\nFetch the contracted bond asset id from the ledger\n\n```go\nfunc (s *SmartContract) FetchAssetTypeFromContractIdAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\nFetch the contracted bond asset type from the ledger\n\n```go\nfunc (s *SmartContract) FetchAssetTypeFromContractIdFungibleAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\nFetch the contracted fungible asset type from the ledger\n\n```go\nfunc (s *SmartContract) FetchNumUnitsFromContractIdFungibleAssetLookupMap(ctx contractapi.TransactionContextInterface, contractId string) (uint64, error)\n```\nFetch the contracted fungible asset numUnits from the ledger\n\n```go\nfunc (s *SmartContract) FileExists(ctx contractapi.TransactionContextInterface, ccid string) (bool, error)\n```\ncheck file exists \\*this function strictly called inside chaincode\n\n```go\nfunc (cc *SmartContract) FinAuction(\n\tctx contractapi.TransactionContextInterface, argjson string, prcdStr string,\n) error\n```\n\n```go\nfunc (s *SmartContract) FindPolicyById(ctx contractapi.TransactionContextInterface, policyId string) (*model.Policy, error)\n```\n查询策略\n\n```go\nfunc (s *SmartContract) FindUser(ctx contractapi.TransactionContextInterface, id string) (*User, error)\n```\n\n```go\nfunc (s *SmartContract) FindUserById(ctx contractapi.TransactionContextInterface, userId string) (*model.User, error)\n```\n\n```go\nfunc (s *SmartContract) ForwardSearch(ctx contractapi.TransactionContextInterface, id string, seq int) ([]*Record, error)\n```\nForward search\n\n```go\nfunc (s *SmartContract) ForwardSearchWithSeq(ctx contractapi.TransactionContextInterface)\n```\nForward search with seq\n\n```go\nfunc (s *SmartContract) GapExists(ctx contractapi.TransactionContextInterface, gapnum string, name string, kind string, location string, area int) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) GeneralQueryFunction(ctx contractapi.TransactionContextInterface, arg string) ([]byte, error)\n```\n\n```go\nfunc (s *SmartContract) GeneralQueryFunctionPagination(ctx contractapi.TransactionContextInterface, arg string) ([]byte, error)\n```\nGeneral pagination query\n\n```go\nfunc (s *SmartContract) GenerateAttribKeys(ctx contractapi.TransactionContextInterface, gammaStr string) error\n```\n\n```go\nfunc (s *SmartContract) GenerateMasterKeys(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) GeneratePermittedNetworkId(ctx contractapi.TransactionContextInterface, address string) string\n```\n\n```go\nfunc (s *SmartContract) Get(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nGet the value for a given ledger key\n\n```go\nfunc (s *SmartContract) GetAccessControlPolicyBySecurityDomain(ctx contractapi.TransactionContextInterface, securityDomain string) (string, error)\n```\nGetAccessControlPolicyBySecurityDomain cc gets the AccessControlPolicy for the provided securityDomain\n\n```go\nfunc (s *SmartContract) GetAgreementByID(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\nGetAgreementByID() returns a PN with a given id\n\n```go\nfunc (s *SmartContract) GetAll(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllAgreements(ctx contractapi.TransactionContextInterface) ([]*Agreement, error)\n```\nGetAllAgreements() returns all the PNs eligible in the worldstate\n\n```go\nfunc (s *SmartContract) GetAllAssets(ctx contractapi.TransactionContextInterface) ([]*Asset, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (s *SmartContract) GetAllCandidates(ctx contractapi.TransactionContextInterface) ([]*Persons, error)\n```\ndisplay all candidates with their ids\n\n```go\nfunc (s *SmartContract) GetAllCertificate(\n\tctx contractapi.TransactionContextInterface,\n) ([]*models.Certificate, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllChannels(ctx contractapi.TransactionContextInterface) ([]*Channel, error)\n```\nGetAllChannels returns the all channel information stored in the ledger.\n\nArguments: none\n\nReturns:\n\n\t0: the list of the all channel information\n\t1: error\n\n```go\nfunc (s *SmartContract) GetAllContent(ctx contractapi.TransactionContextInterface) ([]*Content, error)\n```\nGetAllContent returns all content found in world state\n\n```go\nfunc (s *SmartContract) GetAllCorporates(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllDevices(ctx contractapi.TransactionContextInterface) ([]*Device, error)\n```\nGetAllDevices returns all the devices that exist in the worldstate\n\n```go\nfunc (s *SmartContract) GetAllDonations(ctx contractapi.TransactionContextInterface) ([]*Donation, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (s *SmartContract) GetAllEvents(ctx contractapi.TransactionContextInterface, sensorID string) ([]Event, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllFruitInfo(ctx contractapi.TransactionContextInterface) ([]Fruit, error)\n```\n获取所有的农产品信息\n\n```go\nfunc (s *SmartContract) GetAllGoods(ctx contractapi.TransactionContextInterface) ([]*QueryResult, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllIdentityAttributes(ctx contractapi.TransactionContextInterface) *attrmgr.Attributes\n```\nGet all attributes from the current user Identity\n\n```go\nfunc (s *SmartContract) GetAllKeys(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (s *SmartContract) GetAllMetadata(ctx contractapi.TransactionContextInterface) ([]*Metadata, error)\n```\nGetAllMetadata returns all metadata found in world state\n\n```go\nfunc (s *SmartContract) GetAllNFTIds(ctx contractapi.TransactionContextInterface) [][]string\n```\ngetAllNFTID Retorna todos os NFTs do world state\n\n```go\nfunc (s *SmartContract) GetAllOwners(ctx contractapi.TransactionContextInterface) ([]*OwnerAsset, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllParkingSlots(ctx contractapi.TransactionContextInterface) ([]*ParkingSlot, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllPlans(ctx contractapi.TransactionContextInterface) ([]*Plan, error)\n```\nGetAllPlans returns all plans found in world state 获取所有飞行计划\n\n```go\nfunc (s *SmartContract) GetAllPosts(ctx contractapi.TransactionContextInterface) ([]*Post, error)\n```\nGetAllPosts returns all posts found in world state\n\n```go\nfunc (s *SmartContract) GetAllProposals(ctx contractapi.TransactionContextInterface) (map[string]*Proposal, error)\n```\nGetAllProposals returns the all channel update proposals.\n\nArguments: none\n\nReturns:\n\n\t0: the map of the all channel update proposals\n\t1: error\n\n```go\nfunc (s *SmartContract) GetAllProviders(ctx contractapi.TransactionContextInterface) ([]*ProviderInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllRcros(ctx contractapi.TransactionContextInterface) ([]*Rcro, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllRecords(ctx contractapi.TransactionContextInterface) ([]*Record, error)\n```\nGetAllRecords returns all records found in world state\n\n```go\nfunc (s *SmartContract) GetAllRoles(ctx contractapi.TransactionContextInterface) ([]RoleResult2, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (s *SmartContract) GetAllSelectionServer(ctx contractapi.TransactionContextInterface, asset string) ([]internal.StoredSelection, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllSelectionTarget(ctx contractapi.TransactionContextInterface, asset string) ([]internal.StoredSelection, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllTodoItems(ctx contractapi.TransactionContextInterface) ([]*TodoItem, error)\n```\nGetAllTodoItems returns all todo items found in world state\n\n```go\nfunc (s *SmartContract) GetAllUsers(ctx contractapi.TransactionContextInterface) ([]*model.User, error)\n```\nreturns all users found in world state\n\n```go\nfunc (s *SmartContract) GetAllVoters(ctx contractapi.TransactionContextInterface) ([]*Persons, error)\n```\ndisplay all voters with their ids\n\n```go\nfunc (s *SmartContract) GetAllVotes(ctx contractapi.TransactionContextInterface) ([]*Vote, error)\n```\n\n```go\nfunc (s *SmartContract) GetAllWallets(ctx contractapi.TransactionContextInterface) ([]*Wallet, error)\n```\nGetAllWallets ritorna tutti i wallet nello stato globale\n\n```go\nfunc (s *SmartContract) GetAlluser(ctx contractapi.TransactionContextInterface, id string) ([]*User, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (cc *SmartContract) GetAsset(\n\tctx contractapi.TransactionContextInterface, assetID string,\n) (*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) GetAssetBidPrice(ctx contractapi.TransactionContextInterface, assetID string) (string, error)\n```\nGetAssetBidPrice returns the bid price\n\n```go\nfunc (s *SmartContract) GetAssetByRange(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]*Asset, error)\n```\nGetAssetByRange performs a range query based on the start and end keys provided. Range queries can be used to read data from private data collections, but can not be used in a transaction that also writes to private data.\n\n```go\nfunc (s *SmartContract) GetAssetClaimStatus(ctx contractapi.TransactionContextInterface, pledgeId, assetType, id, recipientCert, pledger, pledgerNetworkId string, pledgeExpiryTimeSecs uint64) (string, error)\n```\nGetAssetClaimStatus returns the asset claim status and present time (of invocation).\n\n```go\nfunc (s *SmartContract) GetAssetHashId(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetAssetHashId allows a potential buyer to validate the properties of an asset against the asset Id hash on chain and returns the hash\n\n```go\nfunc (s *SmartContract) GetAssetHistory(ctx contractapi.TransactionContextInterface, msisdn string) ([]*AssetHistoryEntry, error)\n```\nGetAssetHistory retrieves the transaction history of an asset\n\n```go\nfunc (s *SmartContract) GetAssetPledgeDetails(ctx contractapi.TransactionContextInterface, pledgeId string) (string, error)\n```\nGetAssetPledgeDetails returns the asset pledge details.\n\n```go\nfunc (s *SmartContract) GetAssetPledgeStatus(ctx contractapi.TransactionContextInterface, pledgeId, owner, recipientNetworkId, recipientCert string) (string, error)\n```\nGetAssetPledgeStatus returns the asset pledge status.\n\n```go\nfunc (s *SmartContract) GetAssetPrivateProperties(ctx contractapi.TransactionContextInterface, assetID string) (string, error)\n```\nGetAssetPrivateProperties returns the immutable asset properties from owner's private data collection\n\n```go\nfunc (s *SmartContract) GetAssetQualityByRange(ctx contractapi.TransactionContextInterface, startKey, endKey string) ([]lib.Quality, error)\n```\n\n```go\nfunc (s *SmartContract) GetAssetSalesPrice(ctx contractapi.TransactionContextInterface, assetID string) (string, error)\n```\nGetAssetSalesPrice returns the sales price\n\n```go\nfunc (s *SmartContract) GetAssetValue(ctx contractapi.TransactionContextInterface, Name string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetAssetsPagination(ctx contractapi.TransactionContextInterface, startname string, endname string, bookmark string) ([]*Asset, error)\n```\n\n```go\nfunc (cc *SmartContract) GetAuction(\n\tctx contractapi.TransactionContextInterface, auctionID int,\n) (*Auction, error)\n```\n\n```go\nfunc (s *SmartContract) GetAvailableCars(ctx contractapi.TransactionContextInterface,\n\tleftLatitudeStr string, leftLongitudeStr string, rightLatitudeStr string, rightLongitudeStr string, date string) ([]*Car, error)\n```\n위,경도 및 대여 날짜 기반 available인 차량 검색\n\n```go\nfunc (s *SmartContract) GetAvailableParkingSlotByProviderID(ctx contractapi.TransactionContextInterface, providerID string) ([]*ParkingSlot, error)\n```\n\n```go\nfunc (s *SmartContract) GetBalance(ctx contractapi.TransactionContextInterface, tokenAssetType string, owner string) (uint64, error)\n```\nGetBalance returns the amount of given token asset type owned by an owner.\n\n```go\nfunc (s *SmartContract) GetBalanceCorporate(ctx contractapi.TransactionContextInterface, arg string) (string, error)\n```\nget balance of only corporate\n\n```go\nfunc (s *SmartContract) GetBatchData(ctx contractapi.TransactionContextInterface, batchID string) (*BatchHistory, error)\n```\nThis function will retrieve the data for a batch\n\n```go\nfunc (s *SmartContract) GetBids(_ contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (t *SmartContract) GetBook(ctx contractapi.TransactionContextInterface, isbn string) (*common.Book, error)\n```\n\n```go\nfunc (t *SmartContract) GetBookInstance(ctx contractapi.TransactionContextInterface, instId string) (*common.BookInstance, error)\n```\n\n```go\nfunc (s *SmartContract) GetBuy(ctx contractapi.TransactionContextInterface, OrderId string) ([]QueryBuy, error)\n```\n\n```go\nfunc (s *SmartContract) GetBuyList(ctx contractapi.TransactionContextInterface, OrderId string) ([]QueryBuy, error)\n```\n\n```go\nfunc (s *SmartContract) GetBuyerHistory(ctx contractapi.TransactionContextInterface, BuyerID string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetCIDByAccessName(ctx contractapi.TransactionContextInterface, accessName string) ([]AssetInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetCIDByOwnerName(ctx contractapi.TransactionContextInterface, ownerName string) ([]AssetInfoOwner, error)\n```\n\n```go\nfunc (s *SmartContract) GetCT6AndDC(ctx contractapi.TransactionContextInterface, TID string) (*TxInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetCarById(ctx contractapi.TransactionContextInterface, carID string) (*Car, error)\n```\n\n```go\nfunc (s *SmartContract) GetCarsByColor(ctx contractapi.TransactionContextInterface, color string) ([]*CarAsset, error)\n```\n\n```go\nfunc (s *SmartContract) GetCarsByColorAndOwner(ctx contractapi.TransactionContextInterface, color string, ownerID string) ([]*CarAsset, error)\n```\n\n```go\nfunc (s *SmartContract) GetCert(ctx contractapi.TransactionContextInterface, cid string) (*Cert, error)\n```\n\n```go\nfunc (s *SmartContract) GetCertificateByID(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) (*models.Certificate, error)\n```\n\n```go\nfunc (s *SmartContract) GetCertificateById(\n\tctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetChannelType(ctx contractapi.TransactionContextInterface, channelID string) (string, error)\n```\nGetChannelType returns the channel type of the given channel\n\nArguments:\n\n\t0: channelID - the target channel ID\n\nReturns:\n\n\t0: the channel type\n\t1: error\n\n```go\nfunc (s *SmartContract) GetClusterModelMetaInfo(ctx contractapi.TransactionContextInterface, cluster string) (*ClusterModelMetaInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetCollaborativeClients(ctx contractapi.TransactionContextInterface, org int, lossList []float32, threshold float32) (*CollaborativeInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetContractsForQuery(ctx contractapi.TransactionContextInterface, queryString string) ([]Car, error)\n```\n\n```go\nfunc (s *SmartContract) GetCorporateDetails(ctx contractapi.TransactionContextInterface) ([]byte, error)\n```\ngetCorporateDetails\n\n```go\nfunc (s *SmartContract) GetCounterValue(ctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (this *SmartContract) GetDataCallAndExtractionPattern(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nreturns required data call details and extraction pattern\n\n```go\nfunc (s *SmartContract) GetDataCallByIdAndVersion(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (this *SmartContract) GetDataCallCount(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (this *SmartContract) GetDataCallTransactionHistory(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nGetDataCallTransactionHistory retrives all data calls that match given criteria. If startindex and pageSize are not provided, this method returns the complete list of data calls. If version = latest, the it returns only latest version of a data call using the specified criteria. If version = all, it returns all data calls with their versions as individual items in list.\n\n\tparams {json}: {\n\t \"startIndex\":\"optional\",\n\t \"pageSize\":\"optional\",\n\t \"version\": \"latest or all\"\n\t \"status\" :\"DRAFT OR ISSUED OR CANCELLED\"}\n\nSuccess {byte\\[]}: byte\\[] Error   {json}:{\"message\":\"....\",\"errorCode\":\"Sys\\_Err/Bus\\_Err\"}\n\n```go\nfunc (this *SmartContract) GetDataCallVersionsById(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) GetDetails(ctx contractapi.TransactionContextInterface, id string, docType string, owner string) (interface{}, error)\n```\n\n```go\nfunc (s *SmartContract) GetDisclosureByHash(\n\tctx contractapi.TransactionContextInterface) (*Disclosure, error)\n```\n\n```go\nfunc (s *SmartContract) GetDisclosures(\n\tctx contractapi.TransactionContextInterface) ([]Disclosure, error)\n```\n\n```go\nfunc (s *SmartContract) GetDisclosuresByDate(\n\tctx contractapi.TransactionContextInterface) ([]Disclosure, error)\n```\n\n```go\nfunc (s *SmartContract) GetDisclosuresHash(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetDisclosuresHashByDate(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetDocumentUsingCarContract(ctx contractapi.TransactionContextInterface, documentID string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetEmptyInvoice(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) GetEvaluateTransactions() []string\n```\n\n```go\nfunc (s *SmartContract) GetEventsByKey(ctx contractapi.TransactionContextInterface, target string, isSensor int) ([]*Event, error)\n```\nKey can be sensor\\_id or parameter\n\n```go\nfunc (s *SmartContract) GetExporterSeeds(ctx contractapi.TransactionContextInterface, exporterID string) ([]*ExporterSeedData, error)\n```\nFunction for getting exporter seeds list data:\n\n```go\nfunc (this *SmartContract) GetExtractionPatternById(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nfunction returns extraction pattern based on id and dbtype\n\n```go\nfunc (this *SmartContract) GetExtractionPatternByIds(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) GetFarmerSeedsList(ctx contractapi.TransactionContextInterface, farmerID string) ([]*FarmerSeedData, error)\n```\nFunction for quering farmer all seeds:\n\n```go\nfunc (t *SmartContract) GetFee(ctx contractapi.TransactionContextInterface, feeId string) (*common.Fee, error)\n```\n\n```go\nfunc (t *SmartContract) GetFeeHistory(ctx contractapi.TransactionContextInterface, id string) ([]common.History, error)\n```\n\n```go\nfunc (t *SmartContract) GetFees(ctx contractapi.TransactionContextInterface, clientId string) ([]*common.Fee, error)\n```\n\n```go\nfunc (s *SmartContract) GetFile(ctx contractapi.TransactionContextInterface, ccid, spender string) (interface{}, error)\n```\n\n```go\nfunc (s *SmartContract) GetFruitHistory(ctx contractapi.TransactionContextInterface, traceability_code string) ([]HistoryQueryResult, error)\n```\n获取农产品上链历史\n\n```go\nfunc (s *SmartContract) GetFruitInfo(ctx contractapi.TransactionContextInterface, traceability_code string) (*Fruit, error)\n```\n获取农产品的上链信息\n\n```go\nfunc (s *SmartContract) GetFruitList(ctx contractapi.TransactionContextInterface, userID string) ([]*Fruit, error)\n```\n获取用户的农产品ID列表\n\n```go\nfunc (s *SmartContract) GetGlobalModelMetaInfo(ctx contractapi.TransactionContextInterface) (*GlobalModelMetaInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetGlobalSimilarityMatrix(ctx contractapi.TransactionContextInterface) (*GlobalSimilarityMatrix, error)\n```\n\n```go\nfunc (s *SmartContract) GetGrad(ctx contractapi.TransactionContextInterface, modelNumber string, layerName string) ([][]float64, error)\n```\n\n```go\nfunc (s *SmartContract) GetHTLCHash(ctx contractapi.TransactionContextInterface, assetAgreementBytesBase64 string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetHTLCHashByContractId(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetHTLCHashPreImage(ctx contractapi.TransactionContextInterface, assetAgreementBytesBase64 string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetHTLCHashPreImageByContractId(ctx contractapi.TransactionContextInterface, contractId string) (string, error)\n```\n\n```go\nfunc (this *SmartContract) GetHashById(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (t *SmartContract) GetHistory(ctx contractapi.TransactionContextInterface, id string) ([]common.History, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnCallType(ctx contractapi.TransactionContextInterface, callType string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnCallerAddress(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnCallerIP(ctx contractapi.TransactionContextInterface, callerType, callerIP string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnDate(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string, methodName string, year string, month string, day string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnHour(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string, methodName string, year string, month string, day string, hour string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnMethodName(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string, methodName string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnMonth(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string, methodName string, year string, month string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryBasedOnYear(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string, methodName string, year string) ([]*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryForAsset(ctx contractapi.TransactionContextInterface, carID string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetHistoryForCar(ctx contractapi.TransactionContextInterface, carID string) ([]HistoryQueryResult, error)\n```\nGetAssetHistory Shadow Coding for additional chaincode features\n\n```go\nfunc (s *SmartContract) GetID(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetID is an internal helper function to allow users to get their identity\n\n```go\nfunc (s *SmartContract) GetIdentityAttribute(ctx contractapi.TransactionContextInterface, reqAttr string) string\n```\nGet a attribute from the current user Identity\n\n```go\nfunc (s *SmartContract) GetIgnoredFunctions() []string\n```\n\n```go\nfunc (s *SmartContract) GetImporterSeeds(ctx contractapi.TransactionContextInterface, importerID string) ([]*ImporterSeedData, error)\n```\nFunction for getting the importer seed list data:\n\n```go\nfunc (s *SmartContract) GetIncompleteProducts(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nTask 8\n\n```go\nfunc (s *SmartContract) GetInspectorSeeds(ctx contractapi.TransactionContextInterface, inspectorID string) ([]*InspectorSeedData, error)\n```\nFunction for getting specific inspector seed data:\n\n```go\nfunc (this *SmartContract) GetInsuranceData(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nthis function returns Insurance Data fetching from pdc\n\n```go\nfunc (s *SmartContract) GetJsonWallet(ctx contractapi.TransactionContextInterface) (Wallet, error)\n```\nGetWallet returns wallet of org2\n\n```go\nfunc (s *SmartContract) GetKeyRange(ctx contractapi.TransactionContextInterface) ([]Asset, error)\n```\n\n```go\nfunc (s *SmartContract) GetKeysByRange(ctx contractapi.TransactionContextInterface, startKey, endKey string) ([]string, error)\n```\n\n```go\nfunc (cc *SmartContract) GetLastAuctionID(\n\tctx contractapi.TransactionContextInterface,\n) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetListCertificateByNIK(\n\tctx contractapi.TransactionContextInterface,\n\tnik string,\n) ([]*models.Certificate, error)\n```\n\n```go\nfunc (s *SmartContract) GetListCertificateHistoryByID(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) ([]*models.CertificateHistory, error)\n```\n\n```go\nfunc (s *SmartContract) GetLocalModelMetaInfo(ctx contractapi.TransactionContextInterface, org string) (*LocalModelMetaInfo, error)\n```\n\n```go\nfunc (sc *SmartContract) GetLog(ctx contractapi.TransactionContextInterface, logID string) (*Log, error)\n```\n\n```go\nfunc (s *SmartContract) GetLogAssetByRange(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]*LogAsset, error)\n```\n\n```go\nfunc (s *SmartContract) GetMSPID(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetMarbleHash(ctx contractapi.TransactionContextInterface, collection string, marbleID string) (string, error)\n```\n=============================================== getMarbleHash - use the public data hash to verify a private marble Result is the hash on the public ledger of a marble stored a private data collection ===============================================\n\n```go\nfunc (s *SmartContract) GetMarblesByRange(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]Marble, error)\n```\nRead-only function results are not typically submitted to ordering. If the read-only results are submitted to ordering, or if the query is used in an update transaction and submitted to ordering, then the committing peers will re-execute to guarantee that result sets are stable between endorsement time and commit time. The transaction is invalidated by the committing peers if the result set has changed between endorsement time and commit time. Therefore, range queries are a safe option for performing update transactions based on query results. ===========================================================================================\n\n```go\nfunc (s *SmartContract) GetModelBlock(ctx contractapi.TransactionContextInterface, curHashId string) (*ModelBlock, error)\n```\n\n```go\nfunc (s *SmartContract) GetMyAssets(ctx contractapi.TransactionContextInterface) ([]*BondAsset, error)\n```\nGetMyAssets returns the assets owner by the caller\n\n```go\nfunc (t *SmartContract) GetMyBooksOut(ctx contractapi.TransactionContextInterface) ([]*common.BookInstance, error)\n```\n\n```go\nfunc (t *SmartContract) GetMyFees(ctx contractapi.TransactionContextInterface) ([]*common.Fee, error)\n```\n\n```go\nfunc (s *SmartContract) GetMyParkingSlot(ctx contractapi.TransactionContextInterface) ([]*ParkingSlot, error)\n```\n\n```go\nfunc (s *SmartContract) GetMyProviderInfo(ctx contractapi.TransactionContextInterface) (*ProviderInfo, error)\n```\n\n```go\nfunc (t *SmartContract) GetMyUnpaidFees(ctx contractapi.TransactionContextInterface) ([]*common.Fee, error)\n```\n\n```go\nfunc (s *SmartContract) GetMyWallet(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetMyWallet returns the available amount for each token asset type owned by an owner.\n\n```go\nfunc (c *SmartContract) GetNFT(ctx contractapi.TransactionContextInterface, id string) (NFT, error)\n```\nGetNFT - Retrieve an NFT from the ledger\n\n```go\nfunc (s *SmartContract) GetNFTsFromStatus(ctx contractapi.TransactionContextInterface, status string) ([][]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetOrganizationsInChannel(ctx contractapi.TransactionContextInterface, channelID string) ([]string, error)\n```\nGetOrganizationsInChannel returns the list of organizations participating in the given channel.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\nReturns:\n\n\t0: the list of organizations participating in given channel\n\t1: error\n\n```go\nfunc (s *SmartContract) GetPairsByRange(ctx contractapi.TransactionContextInterface, startKey, endKey string) (map[string]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetParkingSlotByProviderIDAndSlotNumber(ctx contractapi.TransactionContextInterface, providerID, slotNumber string) (*ParkingSlot, error)\n```\n\n```go\nfunc (s *SmartContract) GetPeerOrg(_ contractapi.TransactionContextInterface) (string, error)\n```\nGetPeerOrg returns the mspid of the current peer\n\n```go\nfunc (s *SmartContract) GetPermittedNetwork(ctx contractapi.TransactionContextInterface, permittedNetworkId string) (*PermittedNetworkInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetPermittedNetworks(ctx contractapi.TransactionContextInterface, address string) ([]*PermittedNetworkInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetPermittedNetworksByIndex(ctx contractapi.TransactionContextInterface, startIndex string, endIndex string, address string) ([]*PermittedNetworkInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetPk(ctx contractapi.TransactionContextInterface) string\n```\n\n```go\nfunc (s *SmartContract) GetPreviousHash(ctx contractapi.TransactionContextInterface, deviceID string) (string, error)\n```\nGetPreviousHash returns the previous hash given a deviceID\n\n```go\nfunc (s *SmartContract) GetProduct(ctx contractapi.TransactionContextInterface, productId string) (*Product, error)\n```\n\n```go\nfunc (s *SmartContract) GetProductHistories(ctx contractapi.TransactionContextInterface, productId string) ([]ProductHistory, error)\n```\n\n```go\nfunc (s *SmartContract) GetProductState(ctx contractapi.TransactionContextInterface, ProductID string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetProjectTransactions(ctx contractapi.TransactionContextInterface, arg string) ([]byte, error)\n```\nlist of all the transaction on perticular project\n\n```go\nfunc (s *SmartContract) GetProposal(ctx contractapi.TransactionContextInterface, proposalID string) (*Proposal, error)\n```\nGetProposal returns the proposal with the given ID.\n\nArguments:\n\n\t0: params - the ID of the proposal\n\nReturns:\n\n\t0: the proposal with the given ID\n\t1: error\n\n```go\nfunc (s *SmartContract) GetProviderInfoByProviderID(ctx contractapi.TransactionContextInterface, providerID string) (*ProviderInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetQR(ctx contractapi.TransactionContextInterface, value1 string, value2 string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetRate() string\n```\nGetRate return the rate of transfer now\n\n```go\nfunc (s *SmartContract) GetRaw(ctx contractapi.TransactionContextInterface, rawId string) (*Raw, error)\n```\n\n```go\nfunc (s *SmartContract) GetRawHistories(ctx contractapi.TransactionContextInterface, rawId string) ([]RawHistory, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportById(\n\tctx contractapi.TransactionContextInterface) (*Report, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportHashById(\n\tctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetReports(\n\tctx contractapi.TransactionContextInterface) ([]Report, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportsByDate(\n\tctx contractapi.TransactionContextInterface) ([]Report, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportsByOrganization(\n\tctx contractapi.TransactionContextInterface) ([]Report, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportsId(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportsIdByDate(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetReportsIdByOrganization(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetRequestEncInfo(ctx contractapi.TransactionContextInterface, requesterID string, modelId string) (*RequestEncInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetRetailorSeeds(ctx contractapi.TransactionContextInterface, retailorID string) ([]*RetailorSeedData, error)\n```\nFunction for getting the retailor seed data:\n\n```go\nfunc (s *SmartContract) GetRoleTransactions(ctx contractapi.TransactionContextInterface) ([]RoleTransactions, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) GetRoles(ctx contractapi.TransactionContextInterface) (RoleResult2, error)\n```\n\n```go\nfunc (s *SmartContract) GetSellerHistory(ctx contractapi.TransactionContextInterface, SellerID string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetState(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GetStatus(ctx contractapi.TransactionContextInterface, status string) ([][]string, error)\n```\nCheck book order for given status e.g. sale, sold\n\n```go\nfunc (s *SmartContract) GetStudentHistory(ctx contractapi.TransactionContextInterface, reg string) ([]HistoryQueryResult, error)\n```\n\n```go\nfunc (s *SmartContract) GetSubmittingClientIdentity(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetSubmittingClientIdentity returns the name and issuer of the identity that invokes the smart contract. This function base64 decodes the identity string before returning the value to the client or smart contract.\n\n```go\nfunc (s *SmartContract) GetSubscriberById(\n\tctx contractapi.TransactionContextInterface) (*Subscription, error)\n```\n\n```go\nfunc (s *SmartContract) GetSubscribers(\n\tctx contractapi.TransactionContextInterface) ([]Subscription, error)\n```\n\n```go\nfunc (s *SmartContract) GetSubscribersByOrganization(\n\tctx contractapi.TransactionContextInterface) ([]Subscription, error)\n```\n\n```go\nfunc (s *SmartContract) GetSubscribersId(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetSubscribersIdByOrganization(\n\tctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetSystemChannelID(ctx contractapi.TransactionContextInterface) (string, error)\n```\nGetSystemChannelID returns the system channel ID stored in the ledger\n\nArguments: none\n\nReturns:\n\n\t0: the system channel ID\n\t1: error\n\n```go\nfunc (s *SmartContract) GetTokenAssetClaimStatus(ctx contractapi.TransactionContextInterface, pledgeId, assetType string, numUnits uint64, recipientCert, pledger, pledgerNetworkId string, pledgeExpiryTimeSecs uint64) (string, error)\n```\nGetTokenAssetClaimStatus returns the asset claim status and present time (of invocation).\n\n```go\nfunc (s *SmartContract) GetTokenAssetPledgeDetails(ctx contractapi.TransactionContextInterface, pledgeId string) (string, error)\n```\nGetAssetPledgeDetails returns the asset pledge details.\n\n```go\nfunc (s *SmartContract) GetTokenAssetPledgeStatus(ctx contractapi.TransactionContextInterface, pledgeId, owner, recipientNetworkId, recipientCert string) (string, error)\n```\nGetTokenAssetPledgeStatus returns the asset pledge status.\n\n```go\nfunc (s *SmartContract) GetTotalDisclosures(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalDisclosuresByDate(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalDownloads(ctx contractapi.TransactionContextInterface, ccid string) (interface{}, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalLikes(ctx contractapi.TransactionContextInterface, ccid string) (interface{}, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalReports(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalReportsByDate(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalReportsByOrganization(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalSubscribers(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTotalSubscribersByOrganization(\n\tctx contractapi.TransactionContextInterface) (int, error)\n```\n\n```go\nfunc (s *SmartContract) GetTransaction(ctx contractapi.TransactionContextInterface) ([]byte, error)\n```\nget all the transactions\n\n```go\nfunc (s *SmartContract) GetTransactionHistory(ctx contractapi.TransactionContextInterface, key string) ([]LoginInfo, error)\n```\n\n```go\nfunc (s *SmartContract) GetTransferableAssets(ctx contractapi.TransactionContextInterface) ([]*Asset, error)\n```\nGetTransferableAssets returns all assets found in world state having Node=\"server\"\n\n```go\nfunc (s *SmartContract) GetTransporterSeeds(ctx contractapi.TransactionContextInterface, transporterID string) ([]*TransporterSeedData, error)\n```\nFunction for getting transporter data against transporter w.r.t transporter ID.\n\n```go\nfunc (s *SmartContract) GetURI(ctx contractapi.TransactionContextInterface, tokenID string) (string, error)\n```\nGetURI return metadata URI related to a given tokenID\n\n```go\nfunc (t *SmartContract) GetUnpaidFees(ctx contractapi.TransactionContextInterface, clientId string) ([]*common.Fee, error)\n```\n\n```go\nfunc (s *SmartContract) GetUserHistory(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) GetUserInfo(ctx contractapi.TransactionContextInterface, userID string) (*User, error)\n```\n获取用户信息\n\n```go\nfunc (s *SmartContract) GetUserType(ctx contractapi.TransactionContextInterface, userID string) (string, error)\n```\n获取用户类型\n\n```go\nfunc (s *SmartContract) GetUserVote(ctx contractapi.TransactionContextInterface, username string) (*Vote, error)\n```\n\n```go\nfunc (s *SmartContract) GetValue(ctx contractapi.TransactionContextInterface, _key string) (map[string]interface{}, error)\n```\n\n```go\nfunc (s *SmartContract) GetWallet(ctx contractapi.TransactionContextInterface) (map[string]Asset, error)\n```\nGetWallet returns wallet of org1\n\n```go\nfunc (s *SmartContract) GetWorldState(ctx contractapi.TransactionContextInterface) ([][]string, error)\n```\nreturns whole world state\n\n```go\nfunc (s *SmartContract) Get_Data(ctx contractapi.TransactionContextInterface, pubkey string, deviceType string, dataIndex string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GrantAccess(ctx contractapi.TransactionContextInterface, requestee string, sid string, org string, requestTime int) (string, error)\n```\n\n```go\nfunc (s *SmartContract) GrantGroupAccess(ctx contractapi.TransactionContextInterface, requestee string, sids []string, orgs []string, requestTimes []int) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) HandleEventRequest(ctx contractapi.TransactionContextInterface, b64QueryBytes string, dynamicQueryArg string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) HandleExternalRequest(ctx contractapi.TransactionContextInterface, b64QueryBytes string) (string, error)\n```\nHandleExternalRequest chaincode processes requests that come from external networks.\n\nThe flow coordinates the following: 1. Checks the validity of query signature 2. Checks that the certificate of the requester is valid according to the network's Membership 3. Checks the access control policy for the requester and view address is met 4. Calls application chaincode\n\n```go\nfunc (s *SmartContract) Handover(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string) error\n```\n\n```go\nfunc (s *SmartContract) Help(\n\tctx contractapi.TransactionContextInterface) []SmartContractHelp\n```\n\n```go\nfunc (s *SmartContract) History(ctx contractapi.TransactionContextInterface, key string) ([]HistoryQueryResult, error)\n```\n\n```go\nfunc (s *SmartContract) ImporterExists(ctx contractapi.TransactionContextInterface, importerID string) (bool, error)\n```\nFunction for checking if an Importer exists\n\n```go\nfunc (s *SmartContract) Incr(ctx contractapi.TransactionContextInterface, count uint64) error\n```\n\n```go\nfunc (s *SmartContract) IncreaseAsset(ctx contractapi.TransactionContextInterface, Name string, incrementValue string) (*Asset, error)\n```\nIncreaseAsset increases the value of the asset by the specified value- with certain limits\n\n```go\nfunc (s *SmartContract) IncreaseScore(ctx contractapi.TransactionContextInterface, licenseID string, incrementValue string) (*TallyScoreAsset, error)\n```\nfunction to increase tallyScore of a company\n\n```go\nfunc (s *SmartContract) Init(APIstub shim.ChaincodeStubInterface) pb.Response\n```\nInit is called when the smart contract is instantiated\n\n```go\nfunc (s *SmartContract) InitBondAssetLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitBondAssetLedger adds a base set of assets to the ledger\n\n```go\nfunc (s *SmartContract) InitBuyerInfo(ctx contractapi.TransactionContextInterface, BuyerID string, Score string) error\n```\n\n```go\nfunc (s *SmartContract) InitContract(ctx contractapi.TransactionContextInterface) error\n```\nInitContract adds a the agreed parameter of the SLA to the ledger\n\n```go\nfunc (s *SmartContract) InitGapLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of assets to the ledger\n\n```go\nfunc (s *SmartContract) InitMarble(ctx contractapi.TransactionContextInterface) error\n```\n============================================================ initMarble - create a new marble, store into chaincode state ============================================================\n\n```go\nfunc (s *SmartContract) InitPlan(ctx contractapi.TransactionContextInterface) error\n```\ninits a govt plan\n\n```go\nfunc (s *SmartContract) InitProduct(ctx contractapi.TransactionContextInterface, ProductID string, SellerID string, State string,\n\tBuyerID string, BuyDate uint64, Deliver_address string,\n\tReject_info string, Update_date uint64) error\n```\nproduct\n\n```go\nfunc (s *SmartContract) InitSellerInfo(ctx contractapi.TransactionContextInterface, SellerID string, Score string) error\n```\nseller function\n\n```go\nfunc (s *SmartContract) InitTokenAssetLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitTokenAssetLedger adds a base set of assets to the ledger\n\n```go\nfunc (s *SmartContract) InitUser(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) InitWallet(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) Initialize(ctx contractapi.TransactionContextInterface, name string, symbol string, decimals string) (bool, error)\n```\nSet information for a token and intialize contract. param {String} name The name of the token param {String} symbol The symbol of the token param {String} decimals The decimals used for the token operations\n\n```go\nfunc (s *SmartContract) InitializeLedger(ctx contractapi.TransactionContextInterface) error\n```\ninitialize world state\n\n```go\nfunc (s *SmartContract) Inorder(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) Insert(ctx contractapi.TransactionContextInterface, val int) error\n```\n\n```go\nfunc (s *SmartContract) InsertHCData(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\n\n```go\nfunc (s *SmartContract) InsertInsideInitiatedCall(ctx contractapi.TransactionContextInterface, callerIP string, callerAddress string, methodName string, inputArgs string, outputArgs string) (*HistoryLog, error)\n```\n\n```go\nfunc (s *SmartContract) InsertOutsideInitiatedCall(ctx contractapi.TransactionContextInterface, callerIP string, callerAddress string, methodName string, inputArgs string, outputArgs string) (*HistoryLog, error)\n```\n\n```go\nfunc (t *SmartContract) InspectReturnedBook(ctx contractapi.TransactionContextInterface, instId string, cond common.Condition,\n\tfeeAmount float64, available bool) (*common.Fee, error)\n```\n\n```go\nfunc (s *SmartContract) InspectorExists(ctx contractapi.TransactionContextInterface, inspectorID string) (bool, error)\n```\nFunction to check if an Inspector with the given ID exists\n\n```go\nfunc (s *SmartContract) IntraChainTransfer(ctx contractapi.TransactionContextInterface, UPC string) ([]*Transaction, error)\n```\n\n```go\nfunc (s *SmartContract) InvalidateBackup(ctx contractapi.TransactionContextInterface, backupID string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke routes invocations to the appropriate function in chaincode Current supported invocations are:\n\n  - update, adds a delta to an aggregate variable in the ledger, all variables are assumed to start at 0\n  - get, retrieves the aggregate value of a variable in the ledger\n  - prune, deletes all rows associated with the variable and replaces them with a single row containing the aggregate value\n  - delete, removes all rows associated with the variable\n\n```go\nfunc (s *SmartContract) IsApprovedForAll(ctx contractapi.TransactionContextInterface, account string, operator string) (bool, error)\n```\nIsApprovedForAll returns true if operator is approved to transfer account's tokens.\n\n```go\nfunc (s *SmartContract) IsAssetLocked(ctx contractapi.TransactionContextInterface, assetAgreementSerializedProto64 string) (bool, error)\n```\nCheck whether this asset has been locked by anyone (not just by caller)\n\n```go\nfunc (s *SmartContract) IsAssetLockedQueryUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\nCheck whether a bond asset has been locked using contractId by anyone (not just by caller)\n\n```go\nfunc (s *SmartContract) IsAssetReleased(ctx contractapi.TransactionContextInterface, assetType, id string) (bool, error)\n```\nIsAssetReleased returns true if asset maturity date elapses\n\n```go\nfunc (s *SmartContract) IsCarAvailable(ctx contractapi.TransactionContextInterface, carID string) (bool, error)\n```\ncarID로 차량의 available 상태 체크 =\u003e 사용 안 될 수도 있는데 일단 남겨둠\n\n```go\nfunc (s *SmartContract) IsFungibleAssetLocked(ctx contractapi.TransactionContextInterface, contractId string) (bool, error)\n```\nCheck whether a token asset has been locked using contractId by anyone (not just by caller)\n\n```go\nfunc (s *SmartContract) IsIntegrator(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) IsOwnerActive(ctx contractapi.TransactionContextInterface, Name string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) IsProvider(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (this *SmartContract) IssueDataCall(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (sc *SmartContract) IssueMoney(ctx contractapi.TransactionContextInterface, accountNumber int, amount float64) error\n```\nFirst version:\n\n```go\nfunc (s *SmartContract) IssueTokenAssets(ctx contractapi.TransactionContextInterface, tokenAssetType string, numUnits uint64, owner string) error\n```\nIssueTokenAssets issues new token assets to an owner.\n\n```go\nfunc (s *SmartContract) LikeContent(ctx contractapi.TransactionContextInterface, action string) (interface{}, error)\n```\n\\* Like Content Counter @param string ccid @param string walletid @returns @memeberof Drive\n\n```go\nfunc (t *SmartContract) ListBookInstances(ctx contractapi.TransactionContextInterface, isbn string, statuses []common.Status) ([]*common.BookInstance, error)\n```\n\n```go\nfunc (t *SmartContract) ListBooks(ctx contractapi.TransactionContextInterface) ([]*common.Book, error)\n```\n\n```go\nfunc (this *SmartContract) ListDataCallTransactionHistory(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (this *SmartContract) ListDataCallsByCriteria(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nListDataCallsByCriteria retrives all data calls that match given criteria. If startindex and pageSize are not provided, this method returns the complete list of data calls. If version = latest, the it returns only latest version of a data call using the specified criteria. If version = all, it returns all data calls with their versions as individual items in list.\n\n\tparams {json}: {\n\t \"startIndex\":\"optional\",\n\t \"pageSize\":\"optional\",\n\t \"version\": \"latest or all\"\n\t \"status\" :\"DRAFT OR ISSUED OR CANCELLED\"}\n\nSuccess {byte\\[]}: byte\\[] Error   {json}:{\"message\":\"....\",\"errorCode\":\"Sys\\_Err/Bus\\_Err\"}\n\n```go\nfunc (this *SmartContract) ListExtractionPatterns(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (s *SmartContract) ListInvoice(ctx contractapi.TransactionContextInterface, id string) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ListInvoices(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (this *SmartContract) ListMatureDataCalls(stub shim.ChaincodeStubInterface) pb.Response\n```\nListMatureDataCalls retrives all data calls that has matured in last 24 hours. using the specified criteria. If version = all, it returns all data calls with their versions as individual items in list. Success {byte\\[]}: byte\\[] Error   {json}:{\"message\":\"....\",\"errorCode\":\"Sys\\_Err/Bus\\_Err\"}\n\n```go\nfunc (s *SmartContract) LockAsset(ctx contractapi.TransactionContextInterface, assetAgreementBytesBase64 string, lockInfoBytesBase64 string) (string, error)\n```\nLockAsset cc is used to record locking of an asset on the ledger\n\n```go\nfunc (s *SmartContract) LockFungibleAsset(ctx contractapi.TransactionContextInterface, fungibleAssetAgreementBytesBase64 string, lockInfoBytesBase64 string) (string, error)\n```\nLockFungibleAsset cc is used to record locking of a group of fungible assets of an asset-type on the ledger\n\n```go\nfunc (this *SmartContract) LogDataCallTransaction(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nlogDataCallTransaction creates a new Transactional Log Entry for a datacall Success: nil Error: {\"message\":\"....\",\"errorCode\":\"Sys\\_Err/Bus\\_Err\"}\n\n```go\nfunc (s *SmartContract) LogIn(ctx contractapi.TransactionContextInterface, userId string, password string) string\n```\n\n```go\nfunc (t *SmartContract) LostMyBook(ctx contractapi.TransactionContextInterface, instId string) (*common.Fee, error)\n```\n\n```go\nfunc (contract *SmartContract) MakeDigest(ctx contractapi.TransactionContextInterface, patientID string) (*DigestResult, error)\n```\n调用示例: '{\"function\":\"makeDigest\",\"Args\":\\[\"p1\"]}'\n\n```go\nfunc (s *SmartContract) MakeOwnerActive(ctx contractapi.TransactionContextInterface, Name string) error\n```\n\n```go\nfunc (s *SmartContract) MakeOwnerInactive(ctx contractapi.TransactionContextInterface, Name string) error\n```\n\n```go\nfunc (s *SmartContract) MalwareExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nMalwareExists returns true when a malware entry with given ID exists in world state\n\n```go\nfunc (s *SmartContract) ManageMBSEAssets(ctx contractapi.TransactionContextInterface, assetActionvalue string) (string, error)\n```\nCreate a CR BC Asset\n\n```go\nfunc (t *SmartContract) MaxBooksOutCheck(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) MetadataExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nMetadataExists returns true when metadata with given ID exists in world state\n\n```go\nfunc (s *SmartContract) Mint(ctx contractapi.TransactionContextInterface, amount int) error\n```\nMint creates new tokens and adds them to minter's account balance This function triggers a Transfer event\n\n```go\nfunc (s *SmartContract) MintAndTransfer(ctx contractapi.TransactionContextInterface, user, amount, msg, signature string, swapId string) (interface{}, error)\n```\nMint creates new tokens and adds them to contract owners account balance\n\n\t// this function triggers a Transfer event\n\n@param {Context} ctx the transaction context @param {string} the contract owner address\n\nReturn success interface or error\n\n```go\nfunc (s *SmartContract) MintBatch(ctx contractapi.TransactionContextInterface, account string, ids []uint64, amounts []uint64) error\n```\nMintBatch creates amount tokens for each token type id and assigns them to account. This function emits a TransferBatch event.\n\n```go\nfunc (c *SmartContract) MintNFT(ctx contractapi.TransactionContextInterface, id, owner, category string) error\n```\nMintNFT - Create a new NFT for the package\n\n```go\nfunc (s *SmartContract) MintToken(ctx contractapi.TransactionContextInterface, tokenInputString string) error\n```\n\n```go\nfunc (s *SmartContract) ModifyPlan(ctx contractapi.TransactionContextInterface, id string, unitorindividual string, contact string, aircraft Aircraft) error\n```\nModifyPlan updates an existing plan in the world state with provided parameters. 用参数来修改已有的飞行计划\n\n```go\nfunc (s *SmartContract) ModifyPrice(ctx contractapi.TransactionContextInterface, marbleID string) (*MarblePrivateDetails, error)\n```\n\n```go\nfunc (s *SmartContract) MonthlyAccountCheck(ctx contractapi.TransactionContextInterface, month string, year string) error\n```\n月度账单核算\n\n```go\nfunc (s *SmartContract) MonthlyBusAccountCheck(ctx contractapi.TransactionContextInterface, month string, year string) error\n```\n\n```go\nfunc (s *SmartContract) MonthlyCusAccountCheck(ctx contractapi.TransactionContextInterface, month string, year string) error\n```\n\n```go\nfunc (s *SmartContract) MonthlyoneBusAccountChect(ctx contractapi.TransactionContextInterface,\n\tbusiness Business, month string, year string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) MonthlyoneCusAccountCheck(ctx contractapi.TransactionContextInterface,\n\tcustomer Customer, month string, year string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) MostrarClientes(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) MostrarEntidadesSancionadas(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) Name(ctx contractapi.TransactionContextInterface) (string, error)\n```\nName returns a descriptive name for fungible tokens in this contract returns {String} Returns the name of the token\n\n```go\nfunc (s *SmartContract) NewNFT(id string, creator string, price float64, time string, TxID string, uri string, operations string) NFT\n```\n\n```go\nfunc (s *SmartContract) NotifyCommitResult(ctx contractapi.TransactionContextInterface, proposalID string) error\n```\nNotifyCommitResult records the result of the commit for the channel update proposal. This function records the vote as a state into the ledger. Also, this changes the status of the proposal from approved to committed. If the status is changed, this updates channel info in the states in the ledger based on the committed channel update.\n\nArguments:\n\n\t0: proposalID - the ID for voting for the channel update proposal\n\t1: signature - the base64 string representation of common.ConfigSignature for signing by the creator to the ConfigUpdate\n\nReturns:\n\n\t0: error\n\nEvents:\n\n\t(if the channel info is updated)\n\tname: UpdateConfigEvent(\u003cproposalID\u003e)\n\tpayload: proposalID\n\n```go\nfunc (s *SmartContract) OnlyUpdate(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) OnlyUpload(ctx contractapi.TransactionContextInterface, gradsJson string, noiseJson string) error\n```\nFor testing time\n\n```go\nfunc (s *SmartContract) OrderProduct(ctx contractapi.TransactionContextInterface, retailerId string, productId string, orderedDate string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) OrderRaw(ctx contractapi.TransactionContextInterface, rawId string, manufacturerId string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) OutForDelivery(ctx contractapi.TransactionContextInterface, orderID string, orderTxID string, parcelID string) error\n```\n\n```go\nfunc (s *SmartContract) OwnerExistence(ctx contractapi.TransactionContextInterface, OwnerName string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) ParkingSlotExits(ctx contractapi.TransactionContextInterface, parkingSlotID string) error\n```\n\n```go\nfunc (s *SmartContract) ParseAndValidateView(ctx contractapi.TransactionContextInterface, address, b64ViewProto string, b64ViewContentList []string) (string, error)\n```\nValidate view against address, and extract data (i.e., query response) from view\n\n```go\nfunc (t *SmartContract) PayFee(ctx contractapi.TransactionContextInterface, amount float64, feeIds []string) (*common.Payment, error)\n```\n\n```go\nfunc (s *SmartContract) PermittedNetworkExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) Ping(stub shim.ChaincodeStubInterface) pb.Response\n```\nPing simply returns a string as a way to validate that the chaincode component is up and running.\n\n```go\nfunc (s *SmartContract) PlanExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nPlanExists returns true when plan with given ID exists in world state 查询对应ID的飞行计划是否存在\n\n```go\nfunc (s *SmartContract) PlayGame(ctx contractapi.TransactionContextInterface, id string, betMoney uint, betNumber uint) error\n```\n\n```go\nfunc (s *SmartContract) PledgeAsset(ctx contractapi.TransactionContextInterface, assetType, id, remoteNetworkId, recipientCert string, expiryTimeSecs uint64) (string, error)\n```\nPledgeAsset locks an asset for transfer to a different ledger/network.\n\n```go\nfunc (s *SmartContract) PledgeTokenAsset(ctx contractapi.TransactionContextInterface, assetType string, numUnits uint64, remoteNetworkId, recipientCert string, expiryTimeSecs uint64) (string, error)\n```\nPledgeTokenAsset locks an asset for transfer to a different ledger/network.\n\n```go\nfunc (s *SmartContract) PoblarBD(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) PolicyExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nPolicyExists returns true when a policy entry with given ID exists in world state\n\n```go\nfunc (s *SmartContract) PostExists(ctx contractapi.TransactionContextInterface, postId string) (bool, error)\n```\nPostExists returns true when post with given ID exists in world state\n\n```go\nfunc (s *SmartContract) Preorder(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) PrepareNextRound(ctx contractapi.TransactionContextInterface, receiveMsg string) error\n```\nPrepareNextRound Prepare Next Round\n\n```go\nfunc (s *SmartContract) ProcessExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) ProcessTransaction(ctx contractapi.TransactionContextInterface, carID string, lenderID string, borrowerID string, sharingPrice string) error\n```\n재화 거래 과정\n\n```go\nfunc (s *SmartContract) ProvideProduct(ctx contractapi.TransactionContextInterface, manufacturerId string, productId string, distributorId string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) PublishDisclosure(\n\tctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) PublishResults(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) PuchaseContent(ctx contractapi.TransactionContextInterface, ccid, wallet, price string) (interface{}, error)\n```\n\\* Purchase Content\n\n```go\nfunc (t *SmartContract) PurchaseBook(ctx contractapi.TransactionContextInterface, bookId string, quantity uint16, cost float32) ([]*common.BookInstance, error)\n```\n\n```go\nfunc (s *SmartContract) PurchaseGoods(ctx contractapi.TransactionContextInterface, customerId, goodsKey string) error\n```\n\n```go\nfunc (t *SmartContract) PurchaseNFT(ctx contractapi.TransactionContextInterface, nftID string, paymentInFabCoin float64) error\n```\nPurchaseNFT allows a user to buy an NFT from another user\n\n```go\nfunc (s *SmartContract) PurgeAsset(ctx contractapi.TransactionContextInterface) error\n```\n\\\u003c\\\u003c\\\u003c\\\u003c\\\u003c\\\u003c\\\u003c HEAD ======= \\\u003c\\\u003c\\\u003c\\\u003c\\\u003c\\\u003c\\\u003c HEAD ======= PurgeAsset can be used by the owner of the asset to delete the asset Trigger removal of the asset\n\n```go\nfunc (s *SmartContract) PushASN(ctx contractapi.TransactionContextInterface, key string, date string, destination string) error\n```\n\n```go\nfunc (s *SmartContract) Put(ctx contractapi.TransactionContextInterface, key string, value string) (string, error)\n```\nPut a value for a given ledger key and return the value\n\n```go\nfunc (s *SmartContract) PutGrad(ctx contractapi.TransactionContextInterface, modelNumber string, layerName string, position int, grad [][]float64) ([][]float64, error)\n```\n\n```go\nfunc (s *SmartContract) PutWallet(ctx contractapi.TransactionContextInterface, wallet Wallet) error\n```\n\n```go\nfunc (s *SmartContract) Put_Data(ctx contractapi.TransactionContextInterface, signature string, message string, pubkey string, deviceType string) (string, error)\n```\n\n```go\nfunc (contract *SmartContract) Query(ctx contractapi.TransactionContextInterface, produceID string) (*ProduceRecord, error)\n```\n调用示例: '{\"function\":\"query\",\"Args\":\\[\"p1\"]}'\n\n```go\nfunc (s *SmartContract) QueryALLContract_incompany(ctx contractapi.TransactionContextInterface) ([]QueryResult_incompany, error)\n```\n第三个函数方法： queryallcars() 实现功能：查询所有车辆信息 QueryAllContract returns all cars found in world state\n\n```go\nfunc (s *SmartContract) QueryASN(ctx contractapi.TransactionContextInterface, key string) (*Product, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAccount(ctx contractapi.TransactionContextInterface, accountNumber string) (*Account, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAccountByUserMonth(ctx contractapi.TransactionContextInterface,\n\tuser string, month string, year string) (*Account, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAll(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\n查询所有的农场\n\n```go\nfunc (s *SmartContract) QueryAllAccounts(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAllAirlineParts(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllCars returns all cars found in world state\n\n```go\nfunc (s *SmartContract) QueryAllAssets(ctx TransactionContextInterface) ([]*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAllBSs(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllBSs returns all BSs found in world state\n\n```go\nfunc (s *SmartContract) QueryAllBossId(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAllBussniss(ctx contractapi.TransactionContextInterface) ([]Business, error)\n```\n返回所有的商家数据\n\n```go\nfunc (s *SmartContract) QueryAllCars(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllCars returns all cars found in world state\n\n```go\nfunc (s *SmartContract) QueryAllChats(ctx contractapi.TransactionContextInterface, userEmail string) ([]QueryResult, error)\n```\nQueryAllChats returns all the chats stored in the world state - only admin is permitted to do the same\n\n```go\nfunc (s *SmartContract) QueryAllCommodity(ctx contractapi.TransactionContextInterface) ([]Commmodity, error)\n```\n得到所有商品\n\n```go\nfunc (s *SmartContract) QueryAllCommoditybeBaughtByCustomer(ctx contractapi.TransactionContextInterface, cId string) ([]Commmodity, error)\n```\n返回所有已被 customerId 购买的商品\n\n```go\nfunc (s *SmartContract) QueryAllCustomer(ctx contractapi.TransactionContextInterface) ([]Customer, error)\n```\n============customer============ QueryAllSuperviser returns all Supervisers found in world state\n\n```go\nfunc (s *SmartContract) QueryAllCvs(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllCvs returns all cvs found in world state\n\n```go\nfunc (s *SmartContract) QueryAllFirmwares(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllCars returns all cars found in world state\n\n```go\nfunc (s *SmartContract) QueryAllModels(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllBooks returns all books found in world state\n\n```go\nfunc (s *SmartContract) QueryAllProducts(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nTask 2\n\n```go\nfunc (s *SmartContract) QueryAllRequestToViewTransion(ctx contractapi.TransactionContextInterface, RequestTo string) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAllTransationCreatedByMe(ctx contractapi.TransactionContextInterface, TransactionCreateBy string) ([]string, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAllTransationInCompany(ctx contractapi.TransactionContextInterface, ValidatedBy string, userid string) ([]string, error)\n```\nthis function Return all id's of transaction which is created under some Boss It required two parameter one boss id and other will be Employee id\n\n```go\nfunc (s *SmartContract) QueryAllTranscripts(ctx contractapi.TransactionContextInterface) ([]QueryResult, error)\n```\nQueryAllTranscripts returns all transcripts found in world state\n\n```go\nfunc (s *SmartContract) QueryAllUnvalidatedTransationId(ctx contractapi.TransactionContextInterface, validatedBy string) ([]string, error)\n```\nthis function will get singel argument UserId which must be Boss id and return all the transaction id which are waiting for validation\n\n```go\nfunc (s *SmartContract) QueryAllUsers(ctx contractapi.TransactionContextInterface) ([]QueryUserResult, error)\n```\nQueryAllUsers returns all users found in world state\n\n```go\nfunc (s *SmartContract) QueryAllValidatedTransationIdByMe(ctx contractapi.TransactionContextInterface, validatedby string) ([]string, error)\n```\nthis function will get singel argument UserId which must be Boss id and return all the transaction id which are Validated by Me\n\n```go\nfunc (s *SmartContract) QueryAssetBuyAgreements(ctx contractapi.TransactionContextInterface) ([]Agreement, error)\n```\nQueryAssetBuyAgreements returns all of an organization's proposed bids\n\n```go\nfunc (s *SmartContract) QueryAssetByOwner(ctx contractapi.TransactionContextInterface, assetType string, owner string) ([]*Asset, error)\n```\nQueryAssetByOwner queries for assets based on assetType, owner. This is an example of a parameterized query where the query logic is baked into the chaincode, and accepting a single query parameter (owner). Only available on state databases that support rich query (e.g. CouchDB) =========================================================================================\n\n```go\nfunc (s *SmartContract) QueryAssetHistory(ctx contractapi.TransactionContextInterface, assetID string) ([]QueryResult, error)\n```\nQueryAssetHistory returns the chain of custody for a asset since issuance\n\n```go\nfunc (s *SmartContract) QueryAssetSaleAgreements(ctx contractapi.TransactionContextInterface) ([]Agreement, error)\n```\nQueryAssetSaleAgreements returns all of an organization's proposed sales\n\n```go\nfunc (s *SmartContract) QueryAssets(ctx contractapi.TransactionContextInterface, queryString string) ([]*Asset, error)\n```\nQueryAssets uses a query string to perform a query for assets. Query string matching state database syntax is passed in and executed as is. Supports ad hoc queries that can be defined at runtime by the client. If this is not desired, follow the QueryAssetByOwner example for parameterized queries. Only available on state databases that support rich query (e.g. CouchDB)\n\n```go\nfunc (s *SmartContract) QueryAssetsByOrg(ctx TransactionContextInterface) ([]*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAssetsByOwner(ctx TransactionContextInterface) ([]*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) QueryAuction(ctx contractapi.TransactionContextInterface, auctionID string) (*Auction, error)\n```\nQueryAuction allows all members of the channel to read a public auction\n\n```go\nfunc (s *SmartContract) QueryBS(ctx contractapi.TransactionContextInterface, BSNumber string) (*BaseStation, error)\n```\nQueryBS returns the car stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryBackup(ctx contractapi.TransactionContextInterface, backupID string) (*Backup, error)\n```\nQueryBackup returns the backup stored in the world state with given backupID\n\n```go\nfunc (s *SmartContract) QueryBackupsByDeviceID(ctx contractapi.TransactionContextInterface, deviceID string) ([]*Backup, error)\n```\nQueryBackupsByDeviceID returns the backups stored in the world state with given deviceID\n\n```go\nfunc (s *SmartContract) QueryBackupsByTimestamps(ctx contractapi.TransactionContextInterface, deviceID string, startTime string, endTime string) ([]*Backup, error)\n```\nQueryBackupsByTimestamps returns the VALID backups stored in the world state with given deviceID, start timestamp, and end timestamp\n\n```go\nfunc (s *SmartContract) QueryBalance(ctx contractapi.TransactionContextInterface, UserID string) *Response\n```\nQueryBalance 查询用户ID对应的用户资产\n\n```go\nfunc (s *SmartContract) QueryBid(ctx contractapi.TransactionContextInterface, auctionID string, txID string) (*FullBid, error)\n```\nQueryBid allows the submitter of the bid to read their bid from public state\n\n```go\nfunc (t *SmartContract) QueryBook(ctx contractapi.TransactionContextInterface, key string, value string) ([]*common.Book, error)\n```\n\n```go\nfunc (s *SmartContract) QueryBusBalance(ctx contractapi.TransactionContextInterface, bid string) (int64, error)\n```\n\n```go\nfunc (s *SmartContract) QueryBusiness(ctx contractapi.TransactionContextInterface, id string) (*Business, error)\n```\nQueryBusiness returns the businessman stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryBuy(ctx contractapi.TransactionContextInterface, OrderId string) (*Buy, error)\n```\n\n```go\nfunc (s *SmartContract) QueryByBuyerID(ctx contractapi.TransactionContextInterface, BuyerID string) *Response\n```\nQueryByBuyerID 根据买家ID查询\n\n```go\nfunc (s *SmartContract) QueryByKey(ctx contractapi.TransactionContextInterface, arg string) ([]byte, error)\n```\nquery callback representing the query of a chaincode\n\n```go\nfunc (s *SmartContract) QueryBySellID(ctx contractapi.TransactionContextInterface, SellID string) *Response\n```\nQueryBySellID 根据交易ID查询\n\n```go\nfunc (s *SmartContract) QueryBySellerID(ctx contractapi.TransactionContextInterface, SellerID string) *Response\n```\nQueryBySellerID 根据销售商ID查询\n\n```go\nfunc (s *SmartContract) QueryCar(ctx contractapi.TransactionContextInterface, carNumber string) (*Car, error)\n```\nQueryCar returns the car stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryCarByCarID(ctx contractapi.TransactionContextInterface, carID float64) (*Car, error)\n```\ncarID(key값, unique)로 차량 개별 조회 - 연결 완료\n\n```go\nfunc (s *SmartContract) QueryCarByOwnerID(ctx contractapi.TransactionContextInterface, ownerID string) ([]*Car, error)\n```\nownerID로 차량 조회 - 연결 완료\n\n```go\nfunc (s *SmartContract) QueryCert(ctx contractapi.TransactionContextInterface, certHash string) (*Certificate, error)\n```\ncertHash값으로 기록된 cert 쿼리\n\n```go\nfunc (s *SmartContract) QueryCertByUserID(ctx contractapi.TransactionContextInterface, userID string) ([]*Certificate, error)\n```\nUserId로 cert 쿼리하기 위하여, JSON형식의 쿼리 명령문 작성 함수.\n\n```go\nfunc (s *SmartContract) QueryChat(ctx contractapi.TransactionContextInterface, chatId string, userEmail string) (*ChatSchema, error)\n```\nQueryChat returns the chat stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryCommodityById(ctx contractapi.TransactionContextInterface, id string) (*Commmodity, error)\n```\n通过id号查询商品号\n\n```go\nfunc (s *SmartContract) QueryCommodityByIssuer(ctx contractapi.TransactionContextInterface, issuer string) ([]Commmodity, error)\n```\n\n```go\nfunc (s *SmartContract) QueryCommodityOnSale(ctx contractapi.TransactionContextInterface) ([]Commmodity, error)\n```\n返回所有待售商品\n\n```go\nfunc (s *SmartContract) QueryCommodityOnSaleByIssuer(ctx contractapi.TransactionContextInterface, issuer string) ([]Commmodity, error)\n```\n获得正在售卖的商品(通过issuer)\n\n```go\nfunc (s *SmartContract) QueryCommoditySaledByIssuer(ctx contractapi.TransactionContextInterface, issuer string) ([]Commmodity, error)\n```\n获得已经出售的商品(通过issuer)\n\n```go\nfunc (s *SmartContract) QueryContract_incompany(ctx contractapi.TransactionContextInterface, ContractName string) (*Contract_in_company, error)\n```\n第二个函数方法：querycar() 实现功能：查询车辆信息 QueryCar returns the Contract stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryCropsById(ctx contractapi.TransactionContextInterface, CropsID string) *Response\n```\nQueryCropsById 根据作物ID查询作物信息\n\n```go\nfunc (s *SmartContract) QueryCropsProcessByCropsId(ctx contractapi.TransactionContextInterface, CropsBakId string) *Response\n```\nQueryCropsProcessByCropsId 根据CropsID溯源所有生长记录过程\n\n```go\nfunc (s *SmartContract) QueryCusBalance(ctx contractapi.TransactionContextInterface,\n\tcid string) (int64, error)\n```\n返回消费者的余额\n\n```go\nfunc (s *SmartContract) QueryCustomer(ctx contractapi.TransactionContextInterface, id string) (*Customer, error)\n```\nQueryCustomer returns the Customer stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryCustomerName(ctx contractapi.TransactionContextInterface, cid string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) QueryCv(ctx contractapi.TransactionContextInterface, id string) (*Cv, error)\n```\nQueryCv returns the cv\n\n```go\nfunc (s *SmartContract) QueryExMetaData(ctx contractapi.TransactionContextInterface, key string) (*ExMetaData, error)\n```\nquery metadata returns the car stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryFirmware(ctx contractapi.TransactionContextInterface, firmwareNumber string) (*Firmware, error)\n```\nQueryCar returns the car stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryForTransactionRange(ctx contractapi.TransactionContextInterface, arg string) ([]byte, error)\n```\nreturns all transactions between 2 dates.\n\n```go\nfunc (s *SmartContract) QueryInMetaData(ctx contractapi.TransactionContextInterface, key string) (*InMetaData, error)\n```\nquery metadata returns the metadata stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryKey(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nQueryKey\n\n```go\nfunc (s *SmartContract) QueryMachiningByCropsId(ctx contractapi.TransactionContextInterface, CropsId string) *Response\n```\nQueryMachiningByCropsId 根据作物ID查询所有加工信息\n\n```go\nfunc (s *SmartContract) QueryMachiningById(ctx contractapi.TransactionContextInterface, MachiningId string) *Response\n```\nQueryMachiningById 根据加工ID查询加工信息\n\n```go\nfunc (s *SmartContract) QueryMarbles(ctx contractapi.TransactionContextInterface, queryString string) ([]Marble, error)\n```\n===== Example: Ad hoc rich query ======================================================== queryMarbles uses a query string to perform a query for marbles. Query string matching state database syntax is passed in and executed as is. Supports ad hoc queries that can be defined at runtime by the client. If this is not desired, follow the queryMarblesForOwner example for parameterized queries. Only available on state databases that support rich query (e.g. CouchDB) =========================================================================================\n\n```go\nfunc (s *SmartContract) QueryMarblesByOwner(ctx contractapi.TransactionContextInterface, owner string) ([]Marble, error)\n```\n===== Example: Parameterized rich query ================================================= queryMarblesByOwner queries for marbles based on a passed in owner. This is an example of a parameterized query where the query logic is baked into the chaincode, and accepting a single query parameter (owner). Only available on state databases that support rich query (e.g. CouchDB) =========================================================================================\n\n```go\nfunc (s *SmartContract) QueryModel(ctx contractapi.TransactionContextInterface, modelNumber string) (*Model, error)\n```\n\n```go\nfunc (t *SmartContract) QueryNFT(ctx contractapi.TransactionContextInterface, nftID string) (*NFT, error)\n```\nQueryNFT retrieves details of an NFT\n\n```go\nfunc (s *SmartContract) QueryOne(ctx contractapi.TransactionContextInterface, pid string) (PseudoRecord, error)\n```\n\n```go\nfunc (s *SmartContract) QueryPostsByBelongTo(ctx contractapi.TransactionContextInterface, belongTo string) ([]*Post, error)\n```\n\n```go\nfunc (s *SmartContract) QueryPostsByCreator(ctx contractapi.TransactionContextInterface, creator string) ([]*Post, error)\n```\n\n```go\nfunc (s *SmartContract) QueryPostsByReplyTo(ctx contractapi.TransactionContextInterface, replyTo string) ([]*Post, error)\n```\n\n```go\nfunc (sc *SmartContract) QueryPrivateData(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nQueryPrivateData ...\n\n```go\nfunc (s *SmartContract) QueryProduct(ctx contractapi.TransactionContextInterface, id uint) (*Product, error)\n```\n\n```go\nfunc (s *SmartContract) QueryProducts(ctx contractapi.TransactionContextInterface, startKey string, endKey string) ([]QueryResult, error)\n```\n\n```go\nfunc (s *SmartContract) QueryQrCodeDinamico(ctx contractapi.TransactionContextInterface, qrCodeDinamicoNumber string) (*QrCodeDinamico, error)\n```\n\n```go\nfunc (s *SmartContract) QueryRecordsByPrevious(ctx contractapi.TransactionContextInterface, id string) ([]*Record, error)\n```\nThis is an example of a parameterized query where the query logic is baked into the chaincode, and accepting a single query parameter (owner). Only available on state databases that support rich query (e.g. CouchDB) Example: Parameterized rich query\n\n```go\nfunc (s *SmartContract) QueryRequestsByID(ctx TransactionContextInterface) ([]*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) QueryShipping(ctx contractapi.TransactionContextInterface, shippingID string) (*Shipping, error)\n```\nQueryShipping allows all members of the channel to read a public shipping\n\n```go\nfunc (s *SmartContract) QueryStudent(ctx contractapi.TransactionContextInterface, reg string) (*Student, error)\n```\n\n```go\nfunc (s *SmartContract) QueryTransation(ctx contractapi.TransactionContextInterface, transactionId string, viewBy string) *Tran\n```\n\n```go\nfunc (s *SmartContract) QueryTranscript(ctx contractapi.TransactionContextInterface, id string) (*Transcript, error)\n```\nQueryTranscript returns the transcript stored in the world state with given id\n\n```go\nfunc (s *SmartContract) QueryTransportByCropsId(ctx contractapi.TransactionContextInterface, CropsID string) *Response\n```\nQueryTransportByCropsId 根据作物id查询所有物流信息\n\n```go\nfunc (s *SmartContract) QueryTransportById(ctx contractapi.TransactionContextInterface, TransportID string) *Response\n```\nQueryTransportById 根据物流ID查询物流信息\n\n```go\nfunc (s *SmartContract) QueryUser(ctx contractapi.TransactionContextInterface, name string) (*User, error)\n```\nQueryUser return the details of one user found by Name\n\n```go\nfunc (s *SmartContract) QueryWalletBalance(ctx contractapi.TransactionContextInterface, userID string) (int, error)\n```\n잔액 조회를 위한 체인코드\n\n```go\nfunc (s *SmartContract) Qurry_device(ctx contractapi.TransactionContextInterface, id string) (*device, error)\n```\n根据id查找device\n\n```go\nfunc (s *SmartContract) Qurry_domain(ctx contractapi.TransactionContextInterface, id string) (*domain, error)\n```\n根据id查找域\n\n```go\nfunc (s *SmartContract) Qurry_info(ctx contractapi.TransactionContextInterface, infoid string) (*info, error)\n```\n查询信息的url\n\n```go\nfunc (s *SmartContract) Qurry_policy(ctx contractapi.TransactionContextInterface, id string) (*Policy, error)\n```\n查询访问控制策略\n\n```go\nfunc (s *SmartContract) Qurry_user(ctx contractapi.TransactionContextInterface, id string) (*user, error)\n```\n\n```go\nfunc (s *SmartContract) Read(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nRead returns the value of the entry with the specified key\n\n```go\nfunc (s *SmartContract) ReadAllCampaigns(ctx contractapi.TransactionContextInterface) ([]*Campaign, error)\n```\n\n```go\nfunc (s *SmartContract) ReadApplicationStatus(ctx contractapi.TransactionContextInterface, id string) (*Application, error)\n```\nRead ID\n\n```go\nfunc (s *SmartContract) ReadAsset(ctx contractapi.TransactionContextInterface, id string) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadAsset1(ctx contractapi.TransactionContextInterface, assetID string) (*Asset2, error)\n```\nReadAsset reads the information from collection\n\n```go\nfunc (s *SmartContract) ReadAssetByBank(ctx contractapi.TransactionContextInterface, bankName string) ([]*CreditRecord, error)\n```\n\n```go\nfunc (s *SmartContract) ReadAssetByColorOwner(ctx contractapi.TransactionContextInterface, color string) ([]*Asset, error)\n```\nGetByNonPrimaryKey queries assets based on non-primary key (e.g., Color and Owner) using CouchDB Rich Queries\n\n```go\nfunc (s *SmartContract) ReadAssetByNik(ctx contractapi.TransactionContextInterface, nik string) ([]*CreditRecord, error)\n```\n\n```go\nfunc (s *SmartContract) ReadAssetByUserUid(ctx contractapi.TransactionContextInterface, userUid string) ([]*CreditRecord, error)\n```\n\n```go\nfunc (s *SmartContract) ReadAssetConsent(ctx contractapi.TransactionContextInterface, id string) (*AssetConsent, error)\n```\n\n```go\nfunc (s *SmartContract) ReadAssetPrivateDetails(ctx contractapi.TransactionContextInterface, collection string, assetID string) (*AssetPrivateDetails, error)\n```\nReadAssetPrivateDetails reads the asset private details in organization specific collection\n\n```go\nfunc (s *SmartContract) ReadAssetTest(ctx contractapi.TransactionContextInterface, id string) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadBill(ctx contractapi.TransactionContextInterface, billID string) (*Bill, error)\n```\n\n```go\nfunc (s *SmartContract) ReadBillPrivateDetails(ctx contractapi.TransactionContextInterface, collection string, billID string) (*BillPrivateDetails, error)\n```\n\n```go\nfunc (s *SmartContract) ReadBoard(ctx contractapi.TransactionContextInterface,\n\tid string,\n\ttitle string) (*Board, error)\n```\nBoard Read\n\n\t등록된 게시글 블러오기\n\n```go\nfunc (s *SmartContract) ReadCampaignsByTimestamp(ctx contractapi.TransactionContextInterface, startTime string, endTime string) ([]*Campaign, error)\n```\n\n```go\nfunc (s *SmartContract) ReadCarAsset(ctx contractapi.TransactionContextInterface, id string) (*CarAsset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadCert(ctx contractapi.TransactionContextInterface, id, userId string)\n```\n\n```go\nfunc (s *SmartContract) ReadChannel(ctx contractapi.TransactionContextInterface, channelID string) (*Channel, error)\n```\nReadChannel returns the channel information stored in the ledger with the given channel ID.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\nReturns:\n\n\t0: the channel with the given ID\n\t1: error\n\n```go\nfunc (s *SmartContract) ReadCipher(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadCompanyAsset(ctx contractapi.TransactionContextInterface, licenseID string) (*TallyScoreAsset, error)\n```\nfunction to read companyasset\n\n```go\nfunc (s *SmartContract) ReadContent(ctx contractapi.TransactionContextInterface, id string) (*Content, error)\n```\nReadContent returns the content stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadData(ctx contractapi.TransactionContextInterface, id string) (*Asset, error)\n```\n// ReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadDevice(ctx contractapi.TransactionContextInterface, deviceid string) (*Device, error)\n```\nReadDevice returns the pointer to a device with deviceid\n\n```go\nfunc (s *SmartContract) ReadDonation(ctx contractapi.TransactionContextInterface, id string) (*Donation, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadEC(ctx contractapi.TransactionContextInterface, id string) (*ECAsset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadHCData(stub shim.ChaincodeStubInterface, args []string) sc.Response\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadInst(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\nReadInst  returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadKeys(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadLog(ctx contractapi.TransactionContextInterface, assetID string) (*LogAsset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadMalware(ctx contractapi.TransactionContextInterface, malwareID string) (*Malware, error)\n```\nReadMalware returns the malware entry stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadMarble(ctx contractapi.TransactionContextInterface, marbleID string) (*Marble, error)\n```\n\n```go\nfunc (s *SmartContract) ReadMarblePrivateDetails(ctx contractapi.TransactionContextInterface, marbleID string) (*MarblePrivateDetails, error)\n```\n=============================================== ReadMarblePrivateDetails - read a marble private details from chaincode state ===============================================\n\n```go\nfunc (s *SmartContract) ReadMetadata(ctx contractapi.TransactionContextInterface, id string) (*Metadata, error)\n```\nReadMetadata returns the metadata stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadMyBST(ctx contractapi.TransactionContextInterface) (*MyBST, error)\n```\n\n```go\nfunc (s *SmartContract) ReadOrg1BillPrivateDetails(ctx contractapi.TransactionContextInterface, billID string) (*BillPrivateDetails, error)\n```\n\n```go\nfunc (s *SmartContract) ReadOrg2BillPrivateDetails(ctx contractapi.TransactionContextInterface, billID string) (*BillPrivateDetails, error)\n```\n\n```go\nfunc (s *SmartContract) ReadParkingSlot(ctx contractapi.TransactionContextInterface, parkingSlotID string) (*ParkingSlot, error)\n```\n\n```go\nfunc (s *SmartContract) ReadPersonAsset(ctx contractapi.TransactionContextInterface, id string) (*PersonAsset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadPlan(ctx contractapi.TransactionContextInterface, id string) (*Plan, error)\n```\nReadPlan returns the plan stored in the world state with given id. 读计划，如果是applicant和approver可以直接读取，如果是user，则判断是否在ReadSet中\n\n```go\nfunc (s *SmartContract) ReadPlanPrivateDetails(ctx contractapi.TransactionContextInterface, planID string) (*PlanPrivateDetails, error)\n```\n=============================================== ReadPlanPrivateDetails - read a plan private details from chaincode state ===============================================\n\n```go\nfunc (s *SmartContract) ReadPolicy(ctx contractapi.TransactionContextInterface, policyID string) (*Policy, error)\n```\nReadPolicy returns the policy entry stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadPost(ctx contractapi.TransactionContextInterface, postId string) (*Post, error)\n```\nReadPost returns the post stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadPrivateData(ctx contractapi.TransactionContextInterface, collection, key string) (string, error)\n```\nReadPrivateData attempts to read from a private data collection\n\n```go\nfunc (s *SmartContract) ReadPub(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\nReadPub returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadRating(ctx contractapi.TransactionContextInterface, username string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) ReadRecord(ctx contractapi.TransactionContextInterface, id string) (*Record, error)\n```\nReadRecord returns the record stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadRecordbyData(ctx contractapi.TransactionContextInterface, data string) (*Record, error)\n```\nReadRecordbyData returns the record stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadRouteAsset(ctx contractapi.TransactionContextInterface, id string) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadSec(ctx contractapi.TransactionContextInterface) (*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadSharingByID(ctx contractapi.TransactionContextInterface, sharingID float64) (*Sharing, error)\n```\nsharingID로 조회 -\u003e sharing\n\n```go\nfunc (s *SmartContract) ReadTodoItem(ctx contractapi.TransactionContextInterface, id string) (*TodoItem, error)\n```\nReadTodoItem returns the todo item stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadTokenAssetType(ctx contractapi.TransactionContextInterface, tokenAssetType string) (*TokenAssetType, error)\n```\nReadTokenAssetType returns the token asset type stored in the world state with given type.\n\n```go\nfunc (s *SmartContract) ReadTransaction(ctx contractapi.TransactionContextInterface, tranid string) (*Transaction, error)\n```\nReadTransaction returns the transaction stored in the world state with given tranid.\n\n```go\nfunc (s *SmartContract) ReadTransferAgreement(ctx contractapi.TransactionContextInterface, assetID string) (*TransferAgreement, error)\n```\nReadTransferAgreement gets the buyer's identity from the transfer agreement from collection\n\n```go\nfunc (s *SmartContract) ReadUnknownAsset(ctx contractapi.TransactionContextInterface, id string) (*UnkAsset, error)\n```\n\n```go\nfunc (s *SmartContract) ReadUnknownAssetPrivateDetails(ctx contractapi.TransactionContextInterface, collection string, assetID string) (*UnkAssetPvt, error)\n```\n\n```go\nfunc (s *SmartContract) ReadUser(ctx contractapi.TransactionContextInterface, name string) (*User, error)\n```\nReadUser returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReadWallet(ctx contractapi.TransactionContextInterface, walletID float64) (*Wallet, error)\n```\nwalletID로 조회 -\u003e wallet\n\n```go\nfunc (s *SmartContract) ReadWalletByUserID(ctx contractapi.TransactionContextInterface, userID int) (*Wallet, error)\n```\nuserID로 조회 -\u003e wallet\n\n```go\nfunc (s *SmartContract) ReadWasteAsset(ctx contractapi.TransactionContextInterface, id string) (*Asset, error)\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) ReceiveParcel(ctx contractapi.TransactionContextInterface, parcelID string) error\n```\n\n```go\nfunc (s *SmartContract) ReceiveProduct(ctx contractapi.TransactionContextInterface, productId string, receivedDate string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) ReceivedInvoice(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartContract) ReceivedOrder(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartContract) ReceivedPayment(ctx contractapi.TransactionContextInterface, id string, payer string) error\n```\n\n```go\nfunc (s *SmartContract) ReclaimAsset(ctx contractapi.TransactionContextInterface, pledgeId, recipientCert, remoteNetworkId, claimStatusBytes64 string) error\n```\nReclaimAsset gets back the ownership of an asset pledged for transfer to a different ledger/network.\n\n```go\nfunc (s *SmartContract) ReclaimTokenAsset(ctx contractapi.TransactionContextInterface, pledgeId, recipientCert, remoteNetworkId, claimStatusBytes64 string) error\n```\nReclaimTokenAsset gets back the ownership of an asset pledged for transfer to a different ledger/network.\n\n```go\nfunc (s *SmartContract) RecordCropsGrow(ctx contractapi.TransactionContextInterface, CropsGrowId, CropsBakId, RecordTime, CropsGrowPhotoUrl, Temperature, GrowStatus, WaterContent, IlluminationStatus, Remarks string) *Response\n```\nRecordCropsGrow 作物生长过程记录\n\n```go\nfunc (s *SmartContract) RecordExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nRecordExists returns true when record with given ID exists in world state\n\n```go\nfunc (s *SmartContract) RecordResource(ctx contractapi.TransactionContextInterface, resourceId string) error\n```\n\n```go\nfunc (s *SmartContract) ReduceCustomerBalance(ctx contractapi.TransactionContextInterface,\n\tid string, price int64, commodityId string) error\n```\n\n```go\nfunc (contract *SmartContract) Register(ctx contractapi.TransactionContextInterface, produceID, traceID string, record ProduceRecord) error\n```\n调用示例: '{\"function\":\"register\",\"Args\":\\[\"p1\",\"t1\",\"{\\\\\"name\\\\\":\\\\\"bj-P1\\\\\",\\\\\"producer\\\\\":\\\\\"bj\\\\\",\\\\\"address\\\\\":\\\\\"beijing\\\\\",\\\\\"date\\\\\":\\\\\"2021-05-01-12:00:00\\\\\",\\\\\"life\\\\\":\\\\\"-1\\\\\"}\"]}'\n\n```go\nfunc (s *SmartContract) RegisterCert(ctx contractapi.TransactionContextInterface)\n```\n\n```go\nfunc (s *SmartContract) RegisterCompany(ctx contractapi.TransactionContextInterface, LicenseId string) error\n```\nfunction to register company and initialize it's Score to 500\n\n```go\nfunc (s *SmartContract) RegisterData(ctx contractapi.TransactionContextInterface, id string, humidity string, temperature string, date string) error\n```\n\n```go\nfunc (s *SmartContract) RegisterOwner(ctx contractapi.TransactionContextInterface, Name string) error\n```\n\n```go\nfunc (s *SmartContract) RegisterUser(ctx contractapi.TransactionContextInterface, userID string, userType string, realInfoHash string) error\n```\n注册用户\n\n```go\nfunc (s *SmartContract) ReleaseAsset(ctx contractapi.TransactionContextInterface, data string) (*ReleaseResponse, error)\n```\n\n```go\nfunc (s *SmartContract) ReleaseParkingSlot(ctx contractapi.TransactionContextInterface,\n\tslotNumber string) error\n```\nReleaseParkingSlot is called by the parking provider owning the parkingSlotID\n\n```go\nfunc (s *SmartContract) RemoveAHistoryLog(ctx contractapi.TransactionContextInterface, callerType string, callerIP string, callerAddress string, methodName string, year string, month string, day string, hour string, distinctivePart string) error\n```\n\n```go\nfunc (s *SmartContract) RemoveEmojiPost(ctx contractapi.TransactionContextInterface, payload string) error\n```\n\n```go\nfunc (s *SmartContract) RemovePermittedNetwork(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartContract) RemoveReader(ctx contractapi.TransactionContextInterface, id string, newReader string) error\n```\nRemoveReader updates the owner field of plan with given id in world state. 将某用户从ReadSet中删除\n\n```go\nfunc (s *SmartContract) RepairCar(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartContract) RequestAsset(ctx contractapi.TransactionContextInterface, id string) error\n```\nReadAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *SmartContract) RequestProcess(ctx contractapi.TransactionContextInterface, requestid string, permission string) error\n```\nThis function two parameter request id and change the status of request to approved or deny and secand will be allow or deny\n\n```go\nfunc (s *SmartContract) RequestProposal(ctx contractapi.TransactionContextInterface, input ProposalInput) (string, error)\n```\nRequestProposal requests a new channel update proposal.\n\nArguments:\n\n\t0: input - the request input for the channel update proposal\n\nReturns:\n\n\t0: the created proposal ID\n\t1: error\n\nEvents:\n\n\tname: newProposalEvent(\u003cproposalID\u003e)\n\tpayload: the created proposal ID\n\n```go\nfunc (s *SmartContract) RequestTransfer(ctx contractapi.TransactionContextInterface, Name string, reqUser string) (*Asset, error)\n```\n\n```go\nfunc (s *SmartContract) ResetPassword(ctx contractapi.TransactionContextInterface, actorID, userID, newPwd string) error\n```\n\n```go\nfunc (this *SmartContract) ResetWorldState(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (s *SmartContract) RetailorExists(ctx contractapi.TransactionContextInterface, retailorID string) (bool, error)\n```\nFunction for checking if a Retailor exists\n\n```go\nfunc (s *SmartContract) ReturnAsset(ctx contractapi.TransactionContextInterface, DocumentID string, Owner string) (LNGDocument, error)\n```\n\n```go\nfunc (t *SmartContract) ReturnBookInstance(ctx contractapi.TransactionContextInterface, instId string) (*common.Fee, error)\n```\n\n```go\nfunc (cc *SmartContract) RevealAuction(\n\tctx contractapi.TransactionContextInterface, IDStr string,\n) error\n```\n\n```go\nfunc (s *SmartContract) RevealBid(ctx contractapi.TransactionContextInterface, shippingID string, txID string) error\n```\nRevealBid is used by a bidder to reveal their bid after the shipping is closed\n\n```go\nfunc (s *SmartContract) Revoke(ctx contractapi.TransactionContextInterface, hash string) error\n```\nRevoke deletes a given anonymous public key from the world state.\n\n```go\nfunc (s *SmartContract) RevokeCert(ctx contractapi.TransactionContextInterface, id, userId string)\n```\n\n```go\nfunc (this *SmartContract) SaveAndIssueDataCall(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (this *SmartContract) SaveInsuranceData(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\nthis function puts the Insurance data extracted based on extraction pattern into private data collection\n\n```go\nfunc (this *SmartContract) SaveInsuranceDataHash(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) SaveItData(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nsave/update IT Data(i.e CSR liability of corporates)\n\n```go\nfunc (s *SmartContract) SaveLoginInfo(ctx contractapi.TransactionContextInterface, userID, ip, userAgent, deviceID, time string) error\n```\n\n```go\nfunc (this *SmartContract) SaveNewDraft(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) ScanClusterUpdates(ctx contractapi.TransactionContextInterface) (map[string]ClusterModelMetaInfo, error)\n```\n\n```go\nfunc (s *SmartContract) ScanLocalUpdates(ctx contractapi.TransactionContextInterface) (map[string]LocalModelMetaInfo, error)\n```\n\n```go\nfunc (this *SmartContract) SearchDataCalls(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nSearchDataCalls retrives all data calls that match given criteria. If startindex and pageSize are not provided, this method returns the complete list of data calls. If version = latest, the it returns only latest version of a data call using the specified criteria. If version = all, it returns all data calls with their versions as individual items in list.\n\n\tparams {json}: {\n\t \"startIndex\":\"optional\",\n\t \"pageSize\":\"optional\",\n\t \"version\": \"latest or all\"\n\t \"status\" :\"DRAFT OR ISSUED OR CANCELLED\"}\n\nSuccess {byte\\[]}: byte\\[] Error   {json}:{\"message\":\"....\",\"errorCode\":\"Sys\\_Err/Bus\\_Err\"}\n\n```go\nfunc (s *SmartContract) SearchProducts(ctx contractapi.TransactionContextInterface, keyword string) ([]QueryResult, error)\n```\nTask 9\n\n```go\nfunc (s *SmartContract) SearchTodoItems(ctx contractapi.TransactionContextInterface, status string) ([]*TodoItem, error)\n```\nSearchTodoItems returns a list of todo items that match the specified criteria.\n\n```go\nfunc (s *SmartContract) SelfBalance(ctx contractapi.TransactionContextInterface, id string) (uint64, error)\n```\nSelfBalance returns the balance of the requesting client's account\n\n```go\nfunc (s *SmartContract) SelfBalanceNFT(ctx contractapi.TransactionContextInterface) [][]string\n```\nSelfBalance returns the balance of the requesting client's account\n\n```go\nfunc (s *SmartContract) SellProduct(ctx contractapi.TransactionContextInterface, productId string, soldDate string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) SendDocumentation(ctx contractapi.TransactionContextInterface, id string, status string) error\n```\nReadWrite ID,status\n\n```go\nfunc (s *SmartContract) Set(ctx contractapi.TransactionContextInterface, foodId string, variedad string) error\n```\nSe definie que esta funcion ahora es parte del smartcontract func (s \\*SmartContract) Set(ctx contractapi.TransactionContextInterface, foodId string, agricultor string,  variedad string)  error {\n\n```go\nfunc (t *SmartContract) SetAccountBalance(ctx contractapi.TransactionContextInterface, accountID string, balanceInFabCoin float64) error\n```\nSetAccountBalance sets the balance of a given account (for testing)\n\n```go\nfunc (s *SmartContract) SetApprovalForAll(ctx contractapi.TransactionContextInterface, operator string, approved bool) error\n```\nSetApprovalForAll returns true if operator is approved to transfer account's tokens.\n\n```go\nfunc (s *SmartContract) SetAsk(_ contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *SmartContract) SetBalance(\n\tctx contractapi.TransactionContextInterface, account string, value int64,\n) error\n```\n\n```go\nfunc (s *SmartContract) SetBids(_ contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (t *SmartContract) SetBorrowDuration(ctx contractapi.TransactionContextInterface, days int) error\n```\n\n```go\nfunc (s *SmartContract) SetCT6AndDC(ctx contractapi.TransactionContextInterface, TID string, CT6 string, DC string) error\n```\n\n```go\nfunc (sc *SmartContract) SetEvent(ctx contractapi.TransactionContextInterface, eventFilter, message string) error\n```\nSetEvent ...\n\n```go\nfunc (t *SmartContract) SetEvents(ctx contractapi.TransactionContextInterface)\n```\n\n```go\nfunc (s *SmartContract) SetGoods(ctx contractapi.TransactionContextInterface, name, category, price, walletId string) error\n```\n\n```go\nfunc (t *SmartContract) SetLateFeePerDay(ctx contractapi.TransactionContextInterface, fee float64) error\n```\n\n```go\nfunc (t *SmartContract) SetMaxBooksOut(ctx contractapi.TransactionContextInterface, days int) error\n```\n\n```go\nfunc (s *SmartContract) SetNFTStatus(ctx contractapi.TransactionContextInterface, account string, tokenId string, statusNFT string) error\n```\nSetNFTStatus Funcao que define o status referente a situaçao do NFT (Ativo, Bloqueado ...)\n\n```go\nfunc (s *SmartContract) SetOrganizations(ctx contractapi.TransactionContextInterface, channelID string, mspIDs []string) error\n```\nSetOrganizations replaces the members of the given channel with the given MSP ID list.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\t1: mspIDs - the MSP ID list\n\nReturns:\n\n\t0: error\n\n```go\nfunc (s *SmartContract) SetRate(newrate float64) string\n```\nSetRate change the rate of transfer\n\n```go\nfunc (s *SmartContract) SetStateEndorsers(ctx contractapi.TransactionContextInterface, key, endorser1, endorser2 string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) SetStateWithEndorser(ctx contractapi.TransactionContextInterface, key, value, endorser string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) SetStatus(ctx contractapi.TransactionContextInterface, owner string, id string, status string, price uint64) error\n```\nTrade functions\n\nList NFT for sale by a given price TODO: Modify this function to SetStatus, that will receive the same inputs, but also the desired status value (string)\n\n```go\nfunc (s *SmartContract) SetURI(ctx contractapi.TransactionContextInterface, uri string) error\n```\nSetURI set the URI value This function triggers URI event for each token id\n\n```go\nfunc (s *SmartContract) SetVoteOn(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) Ship(ctx contractapi.TransactionContextInterface, key string) error\n```\n\n```go\nfunc (s *SmartContract) ShutdownPython(ctx contractapi.TransactionContextInterface, receiveMsg string) error\n```\nShutdownPython Shutdown the python process\n\n```go\nfunc (s *SmartContract) SignProduct(ctx contractapi.TransactionContextInterface, productId string) error\n```\nTask 5\n\n```go\nfunc (s *SmartContract) SignPromissoryNote(ctx contractapi.TransactionContextInterface, agreementID string) error\n```\nSignPromissoryNote simulates the agreement from both parties. Once signed by both parties, the promissory note is considered active\n\n```go\nfunc (s *SmartContract) Start(ctx contractapi.TransactionContextInterface, receiveMsg string) error\n```\nStart STEP #1\n\n```go\nfunc (cc *SmartContract) StartAuction(\n\tctx contractapi.TransactionContextInterface, argjson string,\n) error\n```\n\n```go\nfunc (s *SmartContract) StatisticsUser(ctx contractapi.TransactionContextInterface, id string) (string, error)\n```\nGetAllAssets returns all assets found in world state\n\n```go\nfunc (s *SmartContract) StatusAssetExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) StorageExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (sc *SmartContract) Store(ctx contractapi.TransactionContextInterface, key, stringifiedAsset string) error\n```\nStore ...\n\n```go\nfunc (sc *SmartContract) StorePrivateData(ctx contractapi.TransactionContextInterface) error\n```\nStorePrivateData ...\n\n```go\nfunc (s *SmartContract) StoreReport(\n\tctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) Submit(ctx contractapi.TransactionContextInterface, hash string, apk1 string, apk2 string) error\n```\nSubmit issues a new anonymous public key to the world state with given details.\n\n```go\nfunc (s *SmartContract) SubmitApplication(ctx contractapi.TransactionContextInterface, id string, status string, amount string, goal string) error\n```\nInsert ID, status Created, amount, goal\n\n```go\nfunc (s *SmartContract) SubmitBid(ctx contractapi.TransactionContextInterface, shippingID string, txID string) error\n```\nSubmitBid is used by the bidder to add the hash of that bid stored in private data to the shipping. Note that this function alters the shipping in private state, and needs to meet the shipping endorsement policy. Transaction ID is used identify the bid\n\n```go\nfunc (s *SmartContract) Subscribe(\n\tctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) SupplyRaw(ctx contractapi.TransactionContextInterface, rawId string, suppliedDate string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) Symbol(ctx contractapi.TransactionContextInterface) (string, error)\n```\nSymbol returns an abbreviated name for fungible tokens in this contract. returns {String} Returns the symbol of the token\n\n```go\nfunc (s *SmartContract) TakeAStop(ctx contractapi.TransactionContextInterface, assetID string, location string, handler string, status string) error\n```\n\n```go\nfunc (s *SmartContract) TaxReceived(ctx contractapi.TransactionContextInterface, id string) error\n```\n\n```go\nfunc (s *SmartContract) Test(ctx contractapi.TransactionContextInterface, id string, carData string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) TodoItemExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nTodoItemExists returns true when todo item with given ID exists in world state\n\n```go\nfunc (this *SmartContract) ToggleDataCallCount(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) TokenAssetTypeExists(ctx contractapi.TransactionContextInterface, tokenAssetType string) (bool, error)\n```\nTokenAssetTypeExists returns true when token asset type with given ID exists in world state\n\n```go\nfunc (s *SmartContract) TokenAssetsExist(ctx contractapi.TransactionContextInterface, tokenAssetType string, numUnits uint64) (bool, error)\n```\nChecks if owner has some given amount of token asset\n\n```go\nfunc (s *SmartContract) TotalAssetPerOwnerWithoutQuery(ctx contractapi.TransactionContextInterface, queryString string) ([]Owner, error)\n```\nTotal Asset and Token holding by Owner\n\n```go\nfunc (s *SmartContract) TotalSupply(ctx contractapi.TransactionContextInterface) (int, error)\n```\nTotalSupply returns the total token supply\n\n```go\nfunc (s *SmartContract) TranExists(ctx contractapi.TransactionContextInterface, tranid string) (bool, error)\n```\nTranExists returns true when transaction with given ID exists in world state\n\n```go\nfunc (s *SmartContract) Transfer(ctx contractapi.TransactionContextInterface, recipient string, amount int) error\n```\nTransfer transfers tokens from client account to recipient account recipient account must be a valid clientID as returned by the ClientID() function This function triggers a Transfer event\n\n```go\nfunc (s *SmartContract) TransferAsset(ctx contractapi.TransactionContextInterface, id string, newOwner string) (string, error)\n```\nTransferAsset updates the owner field of asset with given id in world state, and returns the old owner.\n\n```go\nfunc (s *SmartContract) TransferAssetToConsumer(ctx contractapi.TransactionContextInterface, productID string) (string, error)\n```\nTransferAssetToConsumer updates the owner field of asset with given id in world state, and returns the old owner.\n\n```go\nfunc (s *SmartContract) TransferAssetToPrivateCollection(ctx contractapi.TransactionContextInterface) error\n```\nTransferAssetToPrivateCollection transfers an asset by setting a new owner name on the asset that can be read by both organizations. The appraisal value is stored in the owners org specific collection.\n\n```go\nfunc (s *SmartContract) TransferAssetToRetailer(ctx contractapi.TransactionContextInterface, productID string, newOwnerName, newOwnerAddress string) (string, error)\n```\nTransferAssetToRetailer updates the owner field of asset with given id in world state, and returns the old owner.\n\n```go\nfunc (s *SmartContract) TransferCarAsset(ctx contractapi.TransactionContextInterface, id string, newOwnerID string, acceptDefect bool) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) TransferDonation(ctx contractapi.TransactionContextInterface, id string, newDonor string) (string, error)\n```\nTransferAsset updates the owner field of asset with given id in world state, and returns the old owner.\n\n```go\nfunc (s *SmartContract) TransferFrom(ctx contractapi.TransactionContextInterface, from string, to string, value int) error\n```\nTransferFrom transfers the value amount from the \"from\" address to the \"to\" address This function triggers a Transfer event\n\n```go\nfunc (s *SmartContract) TransferInvoice(ctx contractapi.TransactionContextInterface, id string, newOwner string) error\n```\nTransferAsset updates the owner field of asset with given id in world state.\n\n```go\nfunc (s *SmartContract) TransferMarble(ctx contractapi.TransactionContextInterface) error\n```\n=========================================================== transfer a marble by setting a new owner name on the marble ===========================================================\n\n```go\nfunc (sc *SmartContract) TransferMoney(ctx contractapi.TransactionContextInterface, fromAccountNumber, toAccountNumber int, amount float64) error\n```\n\n```go\nfunc (c *SmartContract) TransferNFT(ctx contractapi.TransactionContextInterface, id, newOwner string) error\n```\nTransferNFT - Transfer an NFT to a new owner\n\n```go\nfunc (s *SmartContract) TransferPoint(ctx contractapi.TransactionContextInterface, id string, transpoint float64) (string, error)\n```\nTransferPoint Transfer point to token with given id in world state.\n\n```go\nfunc (s *SmartContract) TransferRefund(ctx contractapi.TransactionContextInterface, id string, refund int) (int, error)\n```\nTransferRefund updates the wallet field of asset2 with given id in world state, and returns the oldWallet.\n\n```go\nfunc (s *SmartContract) TransferTokenAssets(ctx contractapi.TransactionContextInterface, tokenAssetType string, numUnits uint64, newOwner string) error\n```\nTransferTokenAssets transfers the token assets from client's account to newOwner\n\n```go\nfunc (s *SmartContract) TransferUsageSlice(ctx contractapi.TransactionContextInterface, owner string, consumer string) error\n```\nTransferUsageSlice checks for new usage and transfers slice from owner to consumer\n\n```go\nfunc (s *SmartContract) TransportationExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) TransporterExists(ctx contractapi.TransactionContextInterface, transporterID string) (bool, error)\n```\nFunction for checking if a Transporter exists\n\n```go\nfunc (s *SmartContract) TreeHeight(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *SmartContract) URI(ctx contractapi.TransactionContextInterface, id uint64) (string, error)\n```\nURI returns the URI\n\n```go\nfunc (s *SmartContract) Unload(ctx contractapi.TransactionContextInterface, key string) error\n```\n\n```go\nfunc (s *SmartContract) UnlockAsset(ctx contractapi.TransactionContextInterface, assetAgreementBytesBase64 string) error\n```\nUnlockAsset cc is used to record unlocking of an asset on the ledger\n\n```go\nfunc (s *SmartContract) UnlockAssetUsingContractId(ctx contractapi.TransactionContextInterface, contractId string) error\n```\nUnlockAssetUsingContractId cc is used to record unlocking of an asset on the ledger (this uses the contractId)\n\n```go\nfunc (s *SmartContract) UnlockFungibleAsset(ctx contractapi.TransactionContextInterface, contractId string) error\n```\nUnlockFungibleAsset cc is used to record unlocking of a fungible asset on the ledger\n\n```go\nfunc (s *SmartContract) UnregisterCompany(ctx contractapi.TransactionContextInterface, LicenseId string) error\n```\nfunction to unregister a company (deleting it's Score asset)\n\n```go\nfunc (s *SmartContract) UnregisterOwner(ctx contractapi.TransactionContextInterface, Name string) error\n```\n\n```go\nfunc (s *SmartContract) Unsubscribe(\n\tctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) UpdataBS(ctx contractapi.TransactionContextInterface, BSNumber string, global_computing_resource float64, reversed_computing_resource float64, computing_efficiency float64, completion_ratio float64, total_received_task float64, reliability float64) error\n```\nUpdataBS updates BS field of car with given id in world state\n\n```go\nfunc (contract *SmartContract) Update(ctx contractapi.TransactionContextInterface, healthcareID, patientDigest string) error\n```\n调用示例: '{\"function\":\"update\",\"Args\":\\[\"h1\",\"yyy\"]}'\n\n```go\nfunc (s *SmartContract) UpdateAccess(ctx contractapi.TransactionContextInterface, access string, DocumentID string, Owner string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateAccessControlPolicy(ctx contractapi.TransactionContextInterface, accessControlPolicyJSON string) error\n```\nUpdateAccessControlPolicy cc is used to update an existing AccessControlPolicy in the ledger\n\n```go\nfunc (s *SmartContract) UpdateActualStartDate(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nActual Project Start date\n\n```go\nfunc (s *SmartContract) UpdateAsset(ctx contractapi.TransactionContextInterface, id string, color string, size int, owner string, appraisedValue int) error\n```\nUpdateAsset updates an existing asset in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateAssetConsent(ctx contractapi.TransactionContextInterface, id string, consentFlag bool, blockedFlag bool) error\n```\nUpdateAsset updates an existing asset in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateAssetPersonal(ctx contractapi.TransactionContextInterface) error\n```\nCreateAsset creates a new asset by placing the main asset details in the assetCollection that can be read by both organizations. The appraisal value is stored in the owners org specific collection.\n\n```go\nfunc (s *SmartContract) UpdateAssetPrivateCollection(ctx contractapi.TransactionContextInterface) error\n```\nUpdateAssetPrivateCollection updates an existing asset in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateAssetPrivateCollectionOrg1(ctx contractapi.TransactionContextInterface) error\n```\nUpdateAssetPrivateCollectionOrg1 updates an existing asset in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateAssetScore(ctx contractapi.TransactionContextInterface, id string, rep int) error\n```\nUpdateAsset updates an existing asset in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateAuditInfo(ctx contractapi.TransactionContextInterface, key string, auditkey string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateBill(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) UpdateBoard(ctx contractapi.TransactionContextInterface,\n\tid string,\n\ttitle string,\n\tcontents string) error\n```\nUpdate Board\n\n\t글 수정하기 (수정 이력정보 등록)\n\n```go\nfunc (s *SmartContract) UpdateBuyerHistory(ctx contractapi.TransactionContextInterface, BuyerID string, ProductID string, SellerID string, State string, Update_date uint64) error\n```\n\n```go\nfunc (s *SmartContract) UpdateCar(ctx contractapi.TransactionContextInterface, carID string, dateList string,\n\tsharingLocation string, sharingLocationAddress string, sharingLatitudeStr string, sharingLongitudeStr string,\n\tsharingAvailableStr string, sharingPriceStr string) error\n```\ncarID로 차량 정보 업데이트 함수\n\n```go\nfunc (s *SmartContract) UpdateCarOwner(ctx contractapi.TransactionContextInterface, carID string, newOwner string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) UpdateChannelType(ctx contractapi.TransactionContextInterface, channelID string, channelType string) error\n```\nUpdateChannelType replaces the type of the given channel.\n\nArguments:\n\n\t0: channelID - the target channel ID\n\t1: channelType - the type of the channel\n\nReturns:\n\n\t0: error\n\n```go\nfunc (s *SmartContract) UpdateChat(ctx contractapi.TransactionContextInterface, chatId string, from string, message string, timeStamp string) (string, error)\n```\nUpdateChat updates the exixting chat by adding the new message\n\n```go\nfunc (s *SmartContract) UpdateClusterModel(ctx contractapi.TransactionContextInterface, cluster string, modelUrl string, round int) error\n```\n\n```go\nfunc (s *SmartContract) UpdateContent(ctx contractapi.TransactionContextInterface, creationTimestamp time.Time, id string, formContent string) error\n```\nUpdateContent replaces the existing content in the world state with the given details. It's realy the Boolean opposite of CreateContent and likely could be combined.\n\n```go\nfunc (this *SmartContract) UpdateDataCall(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (this *SmartContract) UpdateDataCallCount(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\n\n```go\nfunc (s *SmartContract) UpdateDeliverState(ctx contractapi.TransactionContextInterface, ProductID string, BuyerID string, DeliverID string, State string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateDonation(ctx contractapi.TransactionContextInterface, id string, donationType string, size int, donor string, appraisedValue int, timestamp int, status string) error\n```\nUpdateAsset updates an existing asset in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateExporterSeedData(ctx contractapi.TransactionContextInterface, exporterID string, batchID string, exporterName string, placeKeptExporter string, arrivalDateExporter string, destinationAddress string, vehicleUsedExporter string, vehicleNumberExporter string, departureDate string) error\n```\nFunction for updating ExporterSeedData\n\n```go\nfunc (this *SmartContract) UpdateExtractionPattern(stub shim.ChaincodeStubInterface, args string) pb.Response\n```\nupdates an existing extraction pattern definition\n\n```go\nfunc (s *SmartContract) UpdateFaceValue(ctx contractapi.TransactionContextInterface, assetType, id string, newFaceValue int) error\n```\nUpdateFaceValue sets the face value of an asset to the new value passed.\n\n```go\nfunc (s *SmartContract) UpdateGlobalClusterInfo(ctx contractapi.TransactionContextInterface, clusters [][]int, localUpdates map[string]ModelBlock) error\n```\n\n```go\nfunc (s *SmartContract) UpdateGlobalModel(ctx contractapi.TransactionContextInterface, curHashId string, modelUrl string, clusters [][]int, timestamp string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateGlobalPlan(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) UpdateGlobalSimilarityMatrix(ctx contractapi.TransactionContextInterface) ([][]float32, error)\n```\n\n```go\nfunc (s *SmartContract) UpdateGrantInfo(ctx contractapi.TransactionContextInterface, requesterID string, modelId string, granted string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateImporterSeedData(ctx contractapi.TransactionContextInterface, importerID string, batchID string, importerName string, placeKeptImporter string, arrivalDateImporter string) error\n```\nFunction for updating ImporterSeedData\n\n```go\nfunc (s *SmartContract) UpdateInspectorSeedData(ctx contractapi.TransactionContextInterface, name string, inspectorID string, batchID string, qualityVerified bool, pestisideVerified bool, fertilizerVerified bool, produceQuantityTypeAVerified bool, produceQuantityTypeBVerified bool, produceQuantityTypeCVerified bool, inspectDate string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateLocalModel(ctx contractapi.TransactionContextInterface, org string, curHashId string, modelUrl string, round int, timestamp string, sparseVector []float32) error\n```\n\n```go\nfunc (s *SmartContract) UpdateMaturityDate(ctx contractapi.TransactionContextInterface, assetType, id string, newMaturityDate time.Time) error\n```\nUpdateMaturityDate sets the maturity date of the asset to an updated date as passed in the parameters.\n\n```go\nfunc (s *SmartContract) UpdateMetadata(ctx contractapi.TransactionContextInterface, creationTimestamp time.Time, hash string, hashType string, id string, sizeInBytes int) error\n```\nUpdateMetadata replaces the existing metadata in the world state with the given details. It's realy the Boolean opposite of CreateMetadata and likely could be combined.\n\n```go\nfunc (s *SmartContract) UpdateMyBST(ctx contractapi.TransactionContextInterface, val int, bst *MyBST, operation int) error\n```\n\n```go\nfunc (s *SmartContract) UpdateOwner(ctx contractapi.TransactionContextInterface, assetType, id string, newOwner string) error\n```\nUpdateOwner sets the owner of an asset to a new owner.\n\n```go\nfunc (c *SmartContract) UpdatePackageStatus(ctx contractapi.TransactionContextInterface, id, newStatus string) error\n```\nUpdatePackageStatus - Update the status of a package\n\n```go\nfunc (s *SmartContract) UpdatePassword(ctx contractapi.TransactionContextInterface, userID, oldPwd, newPwd string) error\n```\n\n```go\nfunc (s *SmartContract) UpdatePermittedNetwork(ctx contractapi.TransactionContextInterface, id string, networkName string, ip string, address string, companyName string) error\n```\n\n```go\nfunc (s *SmartContract) UpdatePost(ctx contractapi.TransactionContextInterface, payload string) error\n```\nUpdatePost updates an existing post in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdatePrivateData(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) UpdateProduct(ctx contractapi.TransactionContextInterface, id uint, url string, price uint, allowance uint, name string, description string, sel string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateProductState(ctx contractapi.TransactionContextInterface, ProductID string, State string) error\n```\nstate\n\n```go\nfunc (s *SmartContract) UpdateProject(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nupdate the project/phase state\n\n```go\nfunc (s *SmartContract) UpdateProviderInfo(ctx contractapi.TransactionContextInterface, providerName string, address string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateRaw(ctx contractapi.TransactionContextInterface, rawId string, rawName string, status string, hashCode string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateRetailorSeedData(ctx contractapi.TransactionContextInterface, retailorID string, batchID string, retailorName string, placeKeptRetailor string, arrivalDateRetailor string) error\n```\nFunction for updating RetailorSeedData\n\n```go\nfunc (s *SmartContract) UpdateSellerHistory(ctx contractapi.TransactionContextInterface, SellerID string, ProductID string, BuyerID string, State string, Update_date uint64) error\n```\n\n```go\nfunc (s *SmartContract) UpdateSharingStatus(ctx contractapi.TransactionContextInterface, carID string, sharingStatus string) error\n```\nsharing status 업데이트 함수\n\n```go\nfunc (s *SmartContract) UpdateTodoItem(ctx contractapi.TransactionContextInterface, id string, description string, owner string, status string, startDate time.Time, endDate time.Time, priority int) error\n```\nUpdateTodoItem updates an existing todo item in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateTransaction(ctx contractapi.TransactionContextInterface, tranid string, approvalcode string, billdetails string, customerdetails string, status string) error\n```\nUpdateTransaction updates an existing transaction in the world state with provided parameters.\n\n```go\nfunc (s *SmartContract) UpdateTransporterSeedData(ctx contractapi.TransactionContextInterface, transporterID string, batchID string, transporterName string, location string, vehicleUsedTransporter string, vehicleNumberTransporter string, quantity float64, transportDate string) error\n```\nFunction for updating TransporterSeedData\n\n```go\nfunc (s *SmartContract) UpdateUser(ctx contractapi.TransactionContextInterface, name string, password string, balance uint, sel string) error\n```\n\n```go\nfunc (s *SmartContract) UpdateUserWallet(ctx contractapi.TransactionContextInterface, wallet *Wallet) error\n```\n사용자 지갑 업데이트\n\n```go\nfunc (s *SmartContract) UpdateVote(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) Updateinfo(ctx contractapi.TransactionContextInterface, deviceid string, domainid string, infoid string, infourl string, pubkey string) bool\n```\n更新url，设备端\n\n```go\nfunc (s *SmartContract) Updatepolicyctx(ctx contractapi.TransactionContextInterface, deviceid string, domainid string, policyid string, role string, group string, infoid string, prikey string, aeskey string, starttime string, endtime string, isallow string) bool\n```\n更新policy，设备端\n\n```go\nfunc (s *SmartContract) Updatuser(ctx contractapi.TransactionContextInterface, id string, timeless, completness float64, vaulevalids []string) (float64, error)\n```\n\n```go\nfunc (s *SmartContract) Uplink(ctx contractapi.TransactionContextInterface, userID string, traceability_code string, arg1 string, arg2 string, arg3 string, arg4 string, arg5 string) (string, error)\n```\n农产品上链，传入用户ID、农产品上链信息\n\n```go\nfunc (s *SmartContract) Upload(ctx contractapi.TransactionContextInterface, gradsJson string, noiseJson string) error\n```\noriginal version\n\n```go\nfunc (s *SmartContract) Upload2(ctx contractapi.TransactionContextInterface, gradsJson string, noiseJson string) error\n```\naggregate version\n\n```go\nfunc (s *SmartContract) UploadGlobalModel(ctx contractapi.TransactionContextInterface, receiveMsg string) error\n```\nUploadGlobalModel STEP #3\n\n```go\nfunc (s *SmartContract) UploadLocalModel(ctx contractapi.TransactionContextInterface, receiveMsg string) error\n```\nUploadLocalModel STEP #2\n\n```go\nfunc (s *SmartContract) UpvotePost(ctx contractapi.TransactionContextInterface, payload string) error\n```\n\n```go\nfunc (s *SmartContract) Use(ctx contractapi.TransactionContextInterface, recipient string, amount uint64) error\n```\n\n```go\nfunc (s *SmartContract) UseFrom(ctx contractapi.TransactionContextInterface, from string, to string, value uint64) error\n```\n\n```go\nfunc (s *SmartContract) UsedBalanceOf(ctx contractapi.TransactionContextInterface, account string) (uint64, error)\n```\n\n```go\nfunc (s *SmartContract) UserExists(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\nUserExists returns true when asset with given ID exists in world state\n\n```go\nfunc (s *SmartContract) UserInit(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *SmartContract) User_log(ctx contractapi.TransactionContextInterface, userid string, psw string) string\n```\n\n```go\nfunc (s *SmartContract) Userexist(ctx contractapi.TransactionContextInterface, id string) (bool, error)\n```\n\n```go\nfunc (s *SmartContract) Userget(ctx contractapi.TransactionContextInterface, id string) (User, error)\n```\n\n```go\nfunc (s *SmartContract) ValidateAndExtractAssetAgreement(assetAgreementSerializedProto64 string) (*AssetExchangeAgreement, error)\n```\n\n```go\nfunc (s *SmartContract) ValidateAndExtractFungibleAssetAgreement(fungibleAssetExchangeAgreementSerializedProto64 string) (*FungibleAssetExchangeAgreement, error)\n```\n\n```go\nfunc (s *SmartContract) ValidatePhase(ctx contractapi.TransactionContextInterface, arg string) (bool, error)\n```\nvalidate/reject a phase\n\n```go\nfunc (s *SmartContract) ValidateTransation(ctx contractapi.TransactionContextInterface, transactionid string, userid string, validate string) error\n```\nthis function will take 3 argument in parameter and change the transaction status to validated first will user id which is logIn to check the validator is come who have permissions to make transaction validated secand will be transactionid third will be tell either transaction is valid or not\n\n```go\nfunc (s *SmartContract) VerifIDStorage(ctx contractapi.TransactionContextInterface, pubkey string, deviceType string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) VerifSignature(ctx contractapi.TransactionContextInterface, signature string, message string, publicKey string) (string, error)\n```\n\n```go\nfunc (contract *SmartContract) Verify(ctx contractapi.TransactionContextInterface, healthcareID, patientDigest string) error\n```\n调用示例: '{\"function\":\"verify\",\"Args\":\\[\"h1\",\"xxx\"]}'\n\n```go\nfunc (s *SmartContract) VerifyAssetProperties(ctx contractapi.TransactionContextInterface, assetID string) (bool, error)\n```\nVerifyAssetProperties allows a buyer to validate the properties of an asset they intend to buy against the owner's implicit private data collection and verifies that the asset properties never changed from the origin of the asset by checking their hash against the assetID\n\n```go\nfunc (s *SmartContract) VerifyCert(ctx contractapi.TransactionContextInterface, cid string, certSign string, certMsg string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) VerifyUser(ctx contractapi.TransactionContextInterface, userID, password string) (string, error)\n```\n\n```go\nfunc (s *SmartContract) VerifyView(ctx contractapi.TransactionContextInterface, b64ViewProto string, address string) error\n```\nVerifyView takes a view that is returned from an external network and verifies that it is valid according to the proof type used for the particular protocol.\n\nIt first determines from the protocol and proof type in the View's metadata how the verification should be done and then calls the appropriate verification function.\n\n```go\nfunc (s *SmartContract) Verify_Estate(ctx contractapi.TransactionContextInterface, _username string, _password string, ulpin string, status int) error\n```\n\n```go\nfunc (s *SmartContract) Verify_User(ctx contractapi.TransactionContextInterface, _username string, _password string, status int, newPassword string) error\n```\n\n```go\nfunc (s *SmartContract) Vote(ctx contractapi.TransactionContextInterface, proposalID, signature string) error\n```\nVote votes for the channel update proposal. This function records the vote as a state into the ledger. Also, if the proposal is voted by MAJORITY, this changes the status of the proposal from proposed to approved.\n\nArguments:\n\n\t0: proposalID - the ID for voting for the channel update proposal\n\t1: signature - the base64 string representation of common.ConfigSignature for signing by the creator to the ConfigUpdate\n\nReturns:\n\n\t0: error\n\nEvents:\n\n\t(if the status is changed to approved)\n\tname: ReadyToUpdateConfigEvent(\u003cproposalID\u003e)\n\tpayload: EventDetail\n\t(else)\n\tname: NewVoteEvent(\u003cproposalID\u003e)\n\tpayload: proposalID\n\n```go\nfunc (s *SmartContract) VoteUser(ctx contractapi.TransactionContextInterface, username string) (*Vote, error)\n```\n\n```go\nfunc (s *SmartContract) WalletExists(ctx contractapi.TransactionContextInterface, walletID float64) (bool, error)\n```\nwalletID로 이미 존재하는 지갑인지 판단 -\u003e 없으면 지갑 생성하는 데 사용\n\n```go\nfunc (s *SmartContract) Withdraw(ctx contractapi.TransactionContextInterface, userID string, amount string) error\n```\n출금을 위한 체인코드\n\n```go\nfunc (s *SmartContract) WriteExternalState(ctx contractapi.TransactionContextInterface, applicationID string, applicationChannel string, applicationFunction string, applicationArgs []string, argIndicesForSubstitution []int, addresses []string, b64ViewProtos []string, b64ViewContents [][]string) error\n```\nWriteExternalState flow is used to process a response from a foreign network for state. 1. Verify Proofs that are returned 2. Call application chaincode\n\n```go\nfunc (s *SmartContract) WritePrivateData(ctx contractapi.TransactionContextInterface) (string, error)\n```\nWritePrivateData writes the transient data to private data collection(s)\n\n```go\ntype SmartContractHelp struct {\n\tFunction    string `json:\"function\"`\n\tDescription string `json:\"description\"`\n\tTransient   string `json:\"transient\"`\n\tArg         string `json:\"arg\"`\n\tOptArgs     string `json:\"optargs\"`\n}\n```\n\n```go\ntype Soda struct {\n\tStock        int    `json:\"stock\"`\n\tTicketNo     int    `json:\"ticketNo\"`\n\tCouponNumber string `json:\"couponNumber\"`\n\tDocType      string `json:\"docType\"`\n}\n```\nSoda model\n\n```go\ntype Sorter struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *Sorter) Compute(ctx contractapi.TransactionContextInterface, numArg string) (int, error)\n```\n\n```go\ntype Stakeholder struct {\n\tObjectType    string `json:\"docType\"`\n\tContractID    string `json:\"contractId\"`\n\tUID           string `json:\"uId\"`\n\tRol           string `json:\"rol\"`\n\tWalletBalance string `json:\"walletBalance\"`\n\tFee           string `json:\"fee\"`\n}\n```\n\n```go\ntype Stat struct {\n\tSupply    uint64 `json:\"supply\"`\n\tMaxSupply uint64 `json:\"max_supply\"`\n\tIssuer    string `json:\"issuer\"`\n\tSymbol    string `json:\"symbol\"`\n}\n```\n\n```go\ntype StateContract struct {\n\tcontractapi.Contract\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *StateContract) DeleteState(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\n\n```go\nfunc (s *StateContract) GetRootHash(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (s *StateContract) GetState(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\n\n```go\nfunc (s *StateContract) InitStateContract(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *StateContract) PutState(ctx contractapi.TransactionContextInterface, key string, value string) (string, error)\n```\n\n```go\nfunc (s *StateContract) ReleaseStateContract(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype StateItem struct {\n\tKey    string\n\tValue  []byte\n\tDelete bool\n}\n```\n\n```go\ntype StateIterator interface {\n\tClose() error\n\tNext() (*queryresult.KV, error)\n}\n```\n\n```go\ntype StateKV struct {\n\tNamespace string\n\tKey       string\n\tValue     string\n}\n```\n\n```go\nfunc ParseStates(iterator shim.StateQueryIteratorInterface, filter func(StateKV) bool) []StateKV\n```\n\n```go\ntype StateList struct {\n\tCtx         contractapi.TransactionContextInterface\n\tName        string\n\tDeserialize func([]byte, StateInterface) error\n}\n```\nStateList useful for managing putting data in and out of the ledger. Implementation of StateListInterface\n\n```go\nfunc (sl *StateList) AddState(state StateInterface) error\n```\nAddState puts state into world state\n\n```go\nfunc (sl *StateList) GetState(key string, state StateInterface) error\n```\nGetState returns state from world state. Unmarshalls the JSON into passed state. Key is the split key value used in Add/Update joined using a colon\n\n```go\nfunc (sl *StateList) GetStateHistory(key string) pb.Response\n```\nGetStateHistory returns logs between startTime and endTime of a Key\n\n```go\nfunc (sl *StateList) UpdateState(state StateInterface) error\n```\nUpdateState puts state into world state. Same as AddState but separate as semantically different\n\n```go\ntype StateListInterface interface {\n\tAddState(StateInterface) error\n\tGetState(string, StateInterface) error\n\tUpdateState(StateInterface) error\n}\n```\nStateListInterface functions that a state list should have\n\n```go\ntype StateLockedByNonLocalLockError struct {\n}\n```\n\n```go\nfunc (slbnlle *StateLockedByNonLocalLockError) Error() string\n```\n\n```go\ntype StateQueryIteratorInterface interface {\n\tshim.StateQueryIteratorInterface\n}\n```\nStateQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by range and execute query.\n\n```go\ntype Status string\n```\n\n```go\nconst (\n\tACTIVE   Status = \"ACTIVE\"\n\tINACTIVE Status = \"INACTIVE\"\n)\n```\n\n```go\ntype StatusAsset struct {\n\tID     string `json:\"ID\"`\n\tStatus int    `json:\"Status\"`\n}\n```\n\n```go\ntype Step struct {\n\tID string `json:\"id\"`\n\n\tName string `json:\"name\"`\n\n\tNameAlt string `json:\"name_alt\"`\n\n\tRequiresApproval bool `json:\"requires_approval\"`\n\n\tSteps []interface{} `json:\"steps\"`\n\n\tFields []Field `json:\"fields\"`\n\n\tOrder int `json:\"order\"`\n\n\tIsGroup bool `json:\"is_group\"`\n\n\tIsActive bool `json:\"is_active\"`\n\n\tIsPendingApproval bool `json:\"is_pending_approval\"`\n}\n```\n\n```go\ntype StepContract struct {\n\tcontractapi.Contract\n\tIOwner       string `json:\"i_owner\"`\n\tICompanyName string `json:\"i_company_name\"`\n\tIChainID     string `json:\"i_chain_id\"`\n\tIChainStep   string `json:\"i_chain_step\"`\n}\n```\n\n```go\nfunc (c *StepContract) Init(ctx contractapi.TransactionContextInterface, chainID string, chainStep string, companyName string) error\n```\n\n```go\nfunc (s *StepContract) OnlyOwner(ctx contractapi.TransactionContextInterface)\n```\n\n```go\nfunc (c *StepContract) PublishBatch(ctx contractapi.TransactionContextInterface, category string, productID string, parent []ParentInfo, productName string, uom string, quantity uint64) error\n```\n\n```go\nfunc (c *StepContract) StoreHash(ctx contractapi.TransactionContextInterface, category string, productID string, multi []Multihash) error\n```\n\n```go\ntype StockContract struct {\n\tcontractapi.Contract\n}\n```\neach object should contains its own contract means its own invoke and init ledger StockContract contract for handling writing and reading from the world state\n\n```go\nfunc (sc *StockContract) AddCard(ctx contractapi.TransactionContextInterface, traderID string, countString string, stocksymbol string, dividendString string) error\n```\nAddCard calls putState of chaincode to add card maybe create a string to push in worldstate\n\n```go\nfunc (sc *StockContract) AddDividendPayment(ctx contractapi.TransactionContextInterface, traderID string, stockSymbol string, payment string) error\n```\nAddDividendPayment func will append given slice of payments to the card\n\n```go\nfunc (sc *StockContract) DeleteDividendPayment(ctx contractapi.TransactionContextInterface, traderID string, stockSymbol string) error\n```\n\n```go\nfunc (sc *StockContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger create all cards with TraderID and Issuer and other attr nil\n\n```go\nfunc (sc *StockContract) QueryByStockSymbol(ctx contractapi.TransactionContextInterface, stockSymbol string) (QueryCard, error)\n```\nQueryByStockSymbol get all cards assigned to stock symbol input\n\n```go\nfunc (sc *StockContract) QueryByTrader(ctx contractapi.TransactionContextInterface, traderID string) (QueryCard, error)\n```\nQueryByTrader get all cards assigned to traderID input\n\n```go\nfunc (sc *StockContract) Trade(ctx contractapi.TransactionContextInterface, seller string, buyer string, countString string, stockSymbol string) error\n```\nTrade exchange traded count of a stock symbol from seller to a buyer\n\n```go\nfunc (sc *StockContract) UpdateDividend(ctx contractapi.TransactionContextInterface, traderID string, stockSymbol string, dividendString string, payment string) error\n```\nUpdateDividend Update given trader and stocksymbol update dividend  and dividendPayment field\n\n```go\nfunc (sc *StockContract) UpdateFields(ctx contractapi.TransactionContextInterface, traderID string, stockSymbol string, countString string, dividendString string, payment string) error\n```\nupdate count dividend  and dividendPayment of selected card(traderID,stockSymbol)\n\n```go\ntype StockTransaction struct {\n\tID        string  `json:\"id\"`\n\tTradeDate string  `json:\"trade_date\"`\n\tBuyer     string  `json:\"buyer\"`\n\tSeller    string  `json:\"seller\"`\n\tStockCode string  `json:\"stock_code\"`\n\tQuantity  int     `json:\"quantity\"`\n\tPrice     float64 `json:\"price\"`\n}\n```\n\n```go\ntype StockTxContract struct {\n\tcontractapi.Contract\n}\n```\nSmartContract provides functions for managing shares\n\n```go\nfunc (s *StockTxContract) CreateTx(ctx contractapi.TransactionContextInterface, stockTxDate string) (string, error)\n```\nCreateShare adds a new share transaction to the ledger\n\n```go\nfunc (s *StockTxContract) GetStockTxById(ctx contractapi.TransactionContextInterface, stockTransactionID string) (*StockTransaction, error)\n```\n\n```go\ntype Storage struct {\n\tWarehouseLocation       string `json:\"warehouseLocation\"`\n\tStorageDate             string `json:\"storageDate\"`\n\tFacilities              string `json:\"facilities\"`\n\tIoQuantity              string `json:\"ioQuantity\"`\n\tIoTime                  string `json:\"ioTime\"`\n\tStorageTemperature      string `json:\"storageTemperature\"`\n\tEnvironmentalConditions string `json:\"environmentalConditions\"`\n}\n```\n库房位置、贮存日期、设施、出入库数量、出入库时间、贮存温湿度、环境条件\n\n```go\ntype StorageSpace struct {\n\tGRAI           int     `json:\"grai\"` //Global Returnable Asset Identifier --\u003e wird für Palleten oder ähnliches verwendet\n\tCapacity       int     `json:\"capacity\"`\n\tOrganisationID string  `json:\"ownerStorage\"`\n\tFillLevel      float64 `json:\"fillLevel\"` // 0 - 1\n\tStrorageType   string  `json:\"storageSpaceType\"`\n}\n```\nStorageSpace TBF\n\n```go\ntype StoreContract struct {\n\tcontractapi.Contract\n}\n```\nStoreContract contract for handling writing and reading from the world state\n\n```go\nfunc (sc *StoreContract) Retrieve(ctx contractapi.TransactionContextInterface, key string) (string, error)\n```\nRetrieve returns the value at key in the world state\n\n```go\nfunc (sc *StoreContract) Store(ctx contractapi.TransactionContextInterface, value string) (string, error)\n```\nStore adds a new key with value to the world state\n\n```go\ntype Stub interface {\n\tQueryEnclaveCredentials(stub shim.ChaincodeStubInterface, channelId, chaincodeId, enclaveId string) (*protos.Credentials, error)\n}\n```\n\n```go\ntype StubAsset struct {\n\tStub shim.ChaincodeStubInterface\n}\n```\nStubAsset is an on-chain asset.\n\n```go\nfunc NewStubAsset(ctx contractapi.TransactionContextInterface) *StubAsset\n```\nNewStubAsset returns an Asset that uses the stub of the transaction context for storing asset holdings.\n\n```go\nfunc (s StubAsset) BalanceOf(id adj.AccountID) (*big.Int, error)\n```\nBalanceOf returns the amount of tokens the given id holds. If the id is unknown, zero is returned.\n\n```go\nfunc (s StubAsset) Burn(id adj.AccountID, amount *big.Int) error\n```\nBurn removes the desired amount of token from the given id. The id must be the callee of the transaction invoking Burn.\n\n```go\nfunc (s StubAsset) Mint(id adj.AccountID, amount *big.Int) error\n```\nMint creates the desired amount of token for the given id. The id must be the callee of the transaction invoking Mint.\n\n```go\nfunc (s StubAsset) Transfer(sender adj.AccountID, receiver adj.AccountID, amount *big.Int) error\n```\nTransfer checks if the proposed transfer is valid and transfers the given amount of coins from the sender to the receiver. The sender must be the callee of the transaction invoking Transfer.\n\n```go\ntype StubHandlerFunc func(shim.ChaincodeStubInterface) peer.Response\n```\nStubHandlerFunc acts as raw chaincode invoke method, accepts stub and returns peer.Response\n\n```go\ntype StubImpl struct {\n}\n```\n\n```go\nfunc (ercc *StubImpl) QueryEnclaveCredentials(stub shim.ChaincodeStubInterface, channelId, chaincodeId, enclaveId string) (*protos.Credentials, error)\n```\n\n```go\ntype StubLedger struct {\n\tStub shim.ChaincodeStubInterface\n}\n```\nStubLedger is an on-chain ledger.\n\n```go\nfunc NewStubLedger(ctx contractapi.TransactionContextInterface) *StubLedger\n```\nNewStubLedger returns a ledger that uses the stub of the transaction context for storing information.\n\n```go\nfunc (l *StubLedger) GetHolding(id channel.ID, addr wallet.Address) (*big.Int, error)\n```\nGetHolding retrieves the current channel holding of the given address.\n\n```go\nfunc (l *StubLedger) GetState(id channel.ID) (*adj.StateReg, error)\n```\nGetState retrieves the current channel state.\n\n```go\nfunc (l *StubLedger) Now() adj.Timestamp\n```\nNow retrieves the transaction timestamp.\n\n```go\nfunc (l *StubLedger) PutHolding(id channel.ID, addr wallet.Address, holding *big.Int) error\n```\nPutHolding overwrites the current address channel holdings with the given holding.\n\n```go\nfunc (l *StubLedger) PutState(sr *adj.StateReg) error\n```\nPutState overwrites the current channel state with the given one.\n\n```go\ntype StubWrapper struct {\n\tStub        shim.ChaincodeStubInterface\n\tWriteSet    map[string][]byte\n\tPvtWriteSet map[string]map[string][]byte\n}\n```\n\n```go\nfunc (sw *StubWrapper) CreateCompositeKey(objectType string, attributes []string) (string, errors.ICCError)\n```\n\n```go\nfunc (sw *StubWrapper) DelPrivateData(collection, key string) errors.ICCError\n```\n\n```go\nfunc (sw *StubWrapper) DelState(key string) errors.ICCError\n```\n\n```go\nfunc (sw *StubWrapper) GetCommittedPrivateData(collection, key string) ([]byte, errors.ICCError)\n```\n\n```go\nfunc (sw *StubWrapper) GetCommittedState(key string) ([]byte, errors.ICCError)\n```\n\n```go\nfunc (sw *StubWrapper) GetHistoryForKey(key string) (shim.HistoryQueryIteratorInterface, errors.ICCError)\n```\nGetHistoryForKey does not return non-commited ledger states\n\n```go\nfunc (sw *StubWrapper) GetMSPID() (string, errors.ICCError)\n```\nGetMSPID wraps cid.GetMSPID allowing for automated testing\n\n```go\nfunc (sw *StubWrapper) GetPrivateData(collection, key string) ([]byte, errors.ICCError)\n```\n\n```go\nfunc (sw *StubWrapper) GetPrivateDataHash(collection, key string) ([]byte, errors.ICCError)\n```\n\n```go\nfunc (sw *StubWrapper) GetPrivateDataQueryResult(collection, query string) (shim.StateQueryIteratorInterface, errors.ICCError)\n```\nGetPrivateDataQueryResult does not return non-commited ledger states\n\n```go\nfunc (sw *StubWrapper) GetQueryResult(query string) (shim.StateQueryIteratorInterface, errors.ICCError)\n```\nGetQueryResult does not return non-commited ledger states\n\n```go\nfunc (sw *StubWrapper) GetQueryResultWithPagination(query string, pageSize int32,\n\tbookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, errors.ICCError)\n```\nGetQueryResultWithPagination does not return non-commited ledger states\n\n```go\nfunc (sw *StubWrapper) GetState(key string) ([]byte, errors.ICCError)\n```\n\n```go\nfunc (sw *StubWrapper) GetStateByPartialCompositeKey(objectType string, keys []string) (shim.StateQueryIteratorInterface, errors.ICCError)\n```\nGetStateByPartialCompositeKey does not return non-commited ledger states\n\n```go\nfunc (sw *StubWrapper) PutPrivateData(collection, key string, obj []byte) errors.ICCError\n```\n\n```go\nfunc (sw *StubWrapper) PutState(key string, obj []byte) errors.ICCError\n```\n\n```go\nfunc (sw *StubWrapper) SetEvent(name string, payload []byte) errors.ICCError\n```\n\n```go\nfunc (sw *StubWrapper) SplitCompositeKey(compositeKey string) (string, []string, errors.ICCError)\n```\nSplitCompositeKey returns composite keys\n\n```go\ntype Stubs struct {\n\t// contains filtered or unexported fields\n}\n```\nStubs is a container struct used for the callbacks\n\n```go\ntype Student struct {\n\tName        string `json:\"name\"`\n\tReg         string `json:\"reg\"`\n\tDept        string `json:\"dept\"`\n\tSchool      string `json:\"school\"`\n\tYear        string `json:\"year\"`\n\tCGPA        string `json:\"cgpa\"`\n\tLetterGrade string `json:\"lettergrade\"`\n\tDistinction string `json:\"distinction\"`\n\tImgURL      string `json:\"imgurl\"`\n}\n```\n\n```go\ntype StupidContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (*StupidContract) Defer() (err error)\n```\n\n```go\nfunc (*StupidContract) Error() error\n```\nno param, return err\n\n```go\nfunc (*StupidContract) OnlyParams(context contractapi.TransactionContextInterface, params ...interface{}) interface{}\n```\nOnlyParams is a dead function\n\n\tError: managing parameter param0. Conversion error. Value \"...\" was not passed in expected format []interface {}\n\n```go\nfunc (*StupidContract) Panic()\n```\n\n```go\nfunc (*StupidContract) Ping()\n```\n\n```go\nfunc (*StupidContract) StringParam(context contractapi.TransactionContextInterface, p1 string) string\n```\n\n```go\nfunc (*StupidContract) StringParams(context contractapi.TransactionContextInterface, p1 ...string) []string\n```\nStringParams is a dead function\n\n\tError: Inconsistent type in JSPB repeated field array. Got array expected object\n\n```go\nfunc (*StupidContract) UnUsedContext(context contractapi.TransactionContextInterface)\n```\n\n```go\ntype SubjectAttribute struct {\n\tOrg            string `json:\"org\"`\n\tGrantTimestamp int    `json:\"grantTimestamp\"`\n}\n```\n\n```go\ntype Subscription struct {\n\tObjectType   string `json:\"docType\"`\n\tSubscriberId string `json:\"sid\"`\n\tOrganization string `json:\"org\"`\n\tCert         string `json:\"cert\"`\n}\n```\n\n```go\ntype SubstraChaincode struct {\n}\n```\nSubstraChaincode is a Receiver for Chaincode shim functions\n\n```go\nfunc (t *SubstraChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit is called during chaincode instantiation to initialize any data. Note that chaincode upgrade also calls this function to reset or to migrate data. TODO!!!!\n\n```go\nfunc (t *SubstraChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke is called per transaction on the chaincode.\n\n```go\ntype SuperviserQueryResult struct {\n\tKey    string `json:\"Key\"`\n\tRecord *Superviser\n}\n```\nQueryResult structure used for handling result of query superviser\n\n```go\ntype SupplyAsset struct {\n\tObjectType        string  `json:\"objectType\"`\n\tAssetID           string  `json:\"assetID\"`\n\tAssetName         string  `json:\"assetName\"`\n\tAssetPrice        float32 `json:\"assetPrice\"`\n\tShippingAddress   string  `json:\"shippingAddress\"`\n\tOwnerOrg          string  `json:\"ownerOrg\"` // 供货商的Org\n\tPublicDescription string  `json:\"publicDescription\"`\n}\n```\n\n```go\ntype SupplyOrder struct {\n\tObjectType      string  `json:\"objectType\"`\n\tTradeID         string  `json:\"tradeID\"`\n\tAssetID         string  `json:\"assetID\"`\n\tAssetName       string  `json:\"assetName\"`\n\tAssetPrice      float32 `json:\"assetPrice\"`\n\tShippingAddress string  `json:\"shippingAddress\"`\n\tQuantity        int     `json:\"quantity\"`\n\tTotalPrice      float32 `json:\"totalPrice\"` // 自动生成\n\tStatus          int     `json:\"status\"`     // 0: 未开始 1: 中间商开始处理 2: 中间商确认已完成 3: 生产商确认已完成\n\tCreateTime      string  `json:\"createTime\"` // 自动生成\n\tUpdateTime      string  `json:\"updateTime\"` // 自动生成\n\tOwnerOrg        string  `json:\"ownerOrg\"`   // 限制修改的权限\n\tHandlerOrg      string  `json:\"handlerOrg\"` // 限制修改的权限\n\tNote            string  `json:\"note\"`\n}\n```\n\n```go\ntype Support interface {\n\tidentity.SignerSerializer\n\t// GetTxSimulator returns the transaction simulator for the specified ledger\n\t// a client may obtain more than one such simulator; they are made unique\n\t// by way of the supplied txid\n\tGetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error)\n\n\t// GetHistoryQueryExecutor gives handle to a history query executor for the\n\t// specified ledger\n\tGetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)\n\n\t// GetTransactionByID retrieves a transaction by id\n\tGetTransactionByID(chid, txID string) (*pb.ProcessedTransaction, error)\n\n\t// IsSysCC returns true if the name matches a system chaincode's\n\t// system chaincode names are system, chain wide\n\tIsSysCC(name string) bool\n\n\t// Execute - execute proposal, return original response of chaincode\n\tExecute(txParams *ccprovider.TransactionParams, name string, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error)\n\n\t// ExecuteLegacyInit - executes a deployment proposal, return original response of chaincode\n\tExecuteLegacyInit(txParams *ccprovider.TransactionParams, name, version string, spec *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error)\n\n\t// ChaincodeEndorsementInfo returns the information from lifecycle required to endorse the chaincode.\n\tChaincodeEndorsementInfo(channelID, chaincodeID string, txsim ledger.QueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error)\n\n\t// CheckACL checks the ACL for the resource for the channel using the\n\t// SignedProposal from which an id can be extracted for testing against a policy\n\tCheckACL(channelID string, signedProp *pb.SignedProposal) error\n\n\t// EndorseWithPlugin endorses the response with a plugin\n\tEndorseWithPlugin(pluginName, channnelID string, prpBytes []byte, signedProposal *pb.SignedProposal) (*pb.Endorsement, []byte, error)\n\n\t// GetLedgerHeight returns ledger height for given channelID\n\tGetLedgerHeight(channelID string) (uint64, error)\n\n\t// GetDeployedCCInfoProvider returns ledger.DeployedChaincodeInfoProvider\n\tGetDeployedCCInfoProvider() ledger.DeployedChaincodeInfoProvider\n}\n```\nSupport contains functions that the endorser requires to execute its tasks\n\n```go\ntype SupportingDoc struct {\n\tDocumentType DocumentType `json:\"documentType\"`\n}\n```\n\n```go\ntype SwIDInterface interface {\n\t// ReportSwID is used by Accounts to report to Blossom when a software user has installed a piece of software associated\n\t// with an asset that account has checked out. The account is extracted from the requesting identity.  The account\n\t// must have checked out the defined license or this function will fail.\n\t// TRANSIENT MAP: export ATO=$(echo -n \"{\\\"primary_tag\\\":\\\"123\\\",\\\"asset\\\":\\\"101\\\",\\\"license\\\":\\\"asset1-license-1\\\",\\\"xml\\\":\\\"\u003cswid\u003e\u003c/swid\u003e\\\"}\" | base64 | tr -d \\\\n)\n\tReportSwID(ctx contractapi.TransactionContextInterface) error\n\n\t// DeleteSwID deletes a swid from the ledger. This would happen in the case of an organziation returning licenses,\n\t// and the swid no longer being valid.  The requesting user will need to have the correct permissions in NGAC\n\t// to do so.  The user with pemrission is the system_owner as defined in the account info.\n\t// TRANSIENT MAP: export swid=$(echo -n \"{\\\"primary_tag\\\":\\\"\\\",\\\"account\\\":\\\"\\\"}\" | base64 | tr -d \\\\n)\n\tDeleteSwID(ctx contractapi.TransactionContextInterface) error\n\n\t// GetSwID returns the SwID object including the XML that matches the provided primaryTag parameter.\n\t// TRANSIENT MAP: export swid=$(echo -n \"{\\\"primary_tag\\\":\\\"\\\",\\\"account\\\":\\\"\\\"}\" | base64 | tr -d \\\\n)\n\tGetSwID(ctx contractapi.TransactionContextInterface) (*model.SwID, error)\n\n\t// GetSwIDsAssociatedWithAsset returns the SwIDs that are associated with the given asset for an account.\n\tGetSwIDsAssociatedWithAsset(ctx contractapi.TransactionContextInterface, account string, assetID string) ([]*model.SwID, error)\n}\n```\nSwIDInterface provides the functions to interact with SwID tags in fabric.\n\n```go\ntype TCI contractapi.TransactionContextInterface\n```\n\n```go\ntype TLSProperties struct {\n\t//Disabled forces default to be TLS enabled\n\tDisabled bool\n\tKey      []byte\n\tCert     []byte\n\t// ClientCACerts set if connecting peer should be verified\n\tClientCACerts []byte\n}\n```\nTLSProperties passed to ChaincodeServer\n\n```go\ntype TSKContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *TSKContract) AddTskApproval(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *TSKContract) CreateTsk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *TSKContract) DeleteTsk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *TSKContract) GetAllTsk(ctx contractapi.TransactionContextInterface) ([]*Transkrip, error)\n```\n\n```go\nfunc (t *TSKContract) GetTskAddApprovalTxIdById(ctx contractapi.TransactionContextInterface) ([]string, error)\n```\n\n```go\nfunc (s *TSKContract) GetTskById(ctx contractapi.TransactionContextInterface) (*Transkrip, error)\n```\n\n```go\nfunc (t *TSKContract) GetTskByIdPd(ctx contractapi.TransactionContextInterface) ([]*Transkrip, error)\n```\n\n```go\nfunc (t *TSKContract) GetTskByIdSms(ctx contractapi.TransactionContextInterface) ([]*Transkrip, error)\n```\n\n```go\nfunc (t *TSKContract) GetTskByIdSp(ctx contractapi.TransactionContextInterface) ([]*Transkrip, error)\n```\n\n```go\nfunc (s *TSKContract) UpdateTsk(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype TallyScoreAsset struct {\n\tLicenseId string `json:\"LicenseId\"`\n\tScore     uint   `json:\"Score\"`\n}\n```\nNOTE: Write the asset properties in CAMEL CASE- otherwise, chaincode will not get deployed\n\n```go\ntype Tariff struct {\n\tTariffID           string `json:\"tariffId\"`\n\tPriceComponentType string `json:\"priceComponentType\"`\n\tPrice              string `json:\"price\"`\n\tVat                string `json:\"vat\"`\n\tStepSize           string `json:\"stepSize\"`\n\tTariffRestriction  string `json:\"tariffRestriction\"`\n}\n```\n\n```go\ntype TestChain struct {\n\tApp  *simapp.IBCApp\n\tCC   *chaincode.IBCChaincode\n\tStub *fabricmock.ChaincodeStub\n\n\tChainID       string\n\tLastHeader    *ibctmtypes.Header // header for last block height committed\n\tCurrentHeader tmproto.Header     // header for current block height\n\tQueryServer   types.QueryServer\n\tTxConfig      client.TxConfig\n\tCodec         codec.BinaryCodec\n\n\tVals    *tmtypes.ValidatorSet\n\tSigners []tmtypes.PrivValidator\n\n\tSenderAccount authtypes.AccountI\n\n\t// IBC specific helpers\n\tClientIDs   []string          // ClientID's used on this chain\n\tConnections []*TestConnection // track connectionID's created for this chain\n\n\tNextChannelVersion string\n\t// contains filtered or unexported fields\n}\n```\nTestChain is a testing struct that wraps a simapp with the last TM Header, the current ABCI header and the validators of the TestChain. It also contains a field called ChainID. This is the clientID that \\*other\\* chains use to refer to this TestChain. The SenderAccount is used for delivering transactions through the application state. NOTE: the actual application uses an empty chain-id for ease of testing.\n\n```go\nfunc NewTestFabricChain(t *testing.T, chainID string, mspID string, txSignMode TxSignMode) *TestChain\n```\n\n```go\nfunc (chain *TestChain) AddTestChannel(conn *TestConnection, portID string) TestChannel\n```\nAddTestChannel appends a new TestChannel which contains references to the port and channel ID used for channel creation and interaction. See 'NextTestChannel' for channel ID naming format.\n\n```go\nfunc (chain *TestChain) AddTestConnection(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection\n```\nAddTestConnection appends a new TestConnection which contains references to the connection id, client id and counterparty client id.\n\n```go\nfunc (chain *TestChain) ChanCloseInit(\n\tcounterparty TestChainI,\n\tchannel TestChannel,\n) error\n```\nChanCloseInit will construct and execute a MsgChannelCloseInit.\n\nNOTE: does not work with ibc-transfer module\n\n```go\nfunc (chain *TestChain) ChanOpenAck(\n\tcounterparty TestChainI,\n\tch, counterpartyCh TestChannel,\n) error\n```\nChanOpenAck will construct and execute a MsgChannelOpenAck.\n\n```go\nfunc (chain *TestChain) ChanOpenConfirm(\n\tcounterparty TestChainI,\n\tch, counterpartyCh TestChannel,\n) error\n```\nChanOpenConfirm will construct and execute a MsgChannelOpenConfirm.\n\n```go\nfunc (chain *TestChain) ChanOpenInit(\n\tch, counterparty TestChannel,\n\torder channeltypes.Order,\n\tconnectionID string,\n) error\n```\nChanOpenInit will construct and execute a MsgChannelOpenInit.\n\n```go\nfunc (chain *TestChain) ChanOpenTry(\n\tcounterparty TestChainI,\n\tch, counterpartyCh TestChannel,\n\torder channeltypes.Order,\n\tconnectionID string,\n) error\n```\nChanOpenTry will construct and execute a MsgChannelOpenTry.\n\n```go\nfunc (chain *TestChain) ConnectionOpenAck(\n\tcounterparty TestChainI,\n\tconnection, counterpartyConnection *TestConnection,\n) error\n```\nConnectionOpenAck will construct and execute a MsgConnectionOpenAck.\n\n```go\nfunc (chain *TestChain) ConnectionOpenConfirm(\n\tcounterparty TestChainI,\n\tconnection, counterpartyConnection *TestConnection,\n) error\n```\nConnectionOpenConfirm will construct and execute a MsgConnectionOpenConfirm.\n\n```go\nfunc (chain *TestChain) ConnectionOpenInit(\n\tcounterparty TestChainI,\n\tconnection, counterpartyConnection *TestConnection,\n) error\n```\nConnectionOpenInit will construct and execute a MsgConnectionOpenInit.\n\n```go\nfunc (chain *TestChain) ConnectionOpenTry(\n\tcounterparty TestChainI,\n\tconnection, counterpartyConnection *TestConnection,\n) error\n```\nConnectionOpenTry will construct and execute a MsgConnectionOpenTry.\n\n```go\nfunc (chain *TestChain) ConstructMsgCreateClient(counterparty TestChainI, clientID string, clientType string) *clienttypes.MsgCreateClient\n```\nConstructMsgCreateClient constructs a message to create a new client state (tendermint or solomachine). NOTE: a solo machine client will be created with an empty diversifier.\n\n```go\nfunc (chain *TestChain) ConstructNextTestConnection(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection\n```\nConstructNextTestConnection constructs the next test connection to be created given a clientID and counterparty clientID. The connection id format: \\\u003cchainID\u003e-conn\\\u003cindex\u003e\n\n```go\nfunc (*TestChain) ConstructUpdateClientHeader(counterparty TestChainI, clientID string) (exported.Header, error)\n```\n\n```go\nfunc (chain *TestChain) CreateChannelCapability(portID, channelID string)\n```\nCreateChannelCapability binds and claims a capability for the given portID and channelID if it does not already exist. This function will fail testing on any resulting error.\n\n```go\nfunc (chain *TestChain) CreateClient(counterparty TestChainI, clientID string) error\n```\n\n```go\nfunc (chain *TestChain) CreatePortCapability(portID string)\n```\nCreatePortCapability binds and claims a capability for the given portID if it does not already exist. This function will fail testing on any resulting error. NOTE: only creation of a capbility for a transfer or mock port is supported Other applications must bind to the port in InitGenesis or modify this code.\n\n```go\nfunc (chain *TestChain) ExpireClient(amount time.Duration)\n```\nExpireClient fast forwards the chain's block time by the provided amount of time which will expire any clients with a trusting period less than or equal to this amount of time.\n\n```go\nfunc (chain *TestChain) GetAcknowledgement(packet exported.PacketI) []byte\n```\nGetAcknowledgement retrieves an acknowledgement for the provided packet. If the acknowledgement does not exist then testing will fail.\n\n```go\nfunc (chain TestChain) GetApp() interface{}\n```\n\n```go\nfunc (chain TestChain) GetChainID() string\n```\nGetChainID implements TestChainI.GetChainID\n\n```go\nfunc (chain *TestChain) GetChannel(testChannel TestChannel) channeltypes.Channel\n```\nGetChannel retrieves an IBC Channel for the provided TestChannel. The channel is expected to exist otherwise testing will fail.\n\n```go\nfunc (chain *TestChain) GetChannelCapability(portID, channelID string) *capabilitytypes.Capability\n```\nGetChannelCapability returns the channel capability for the given portID and channelID. The capability must exist, otherwise testing will fail.\n\n```go\nfunc (chain *TestChain) GetClientState(clientID string) exported.ClientState\n```\nGetClientState retrieves the client state for the provided clientID. The client is expected to exist otherwise testing will fail.\n\n```go\nfunc (chain *TestChain) GetConnection(testConnection *TestConnection) connectiontypes.ConnectionEnd\n```\nGetConnection retrieves an IBC Connection for the provided TestConnection. The connection is expected to exist otherwise testing will fail.\n\n```go\nfunc (chain *TestChain) GetConsensusState(clientID string, height exported.Height) (exported.ConsensusState, bool)\n```\nGetConsensusState retrieves the consensus state for the provided clientID and height. It will return a success boolean depending on if consensus state exists or not.\n\n```go\nfunc (chain *TestChain) GetContext() sdk.Context\n```\n\n```go\nfunc (chain *TestChain) GetFabricContext() *contractapi.TransactionContext\n```\n\n```go\nfunc (chain TestChain) GetLastHeader() *ibctmtypes.Header\n```\n\n```go\nfunc (chain *TestChain) GetPacketData(counterparty TestChainI) []byte\n```\nGetPacketData returns a ibc-transfer marshalled packet to be used for callback testing.\n\n```go\nfunc (chain *TestChain) GetPortCapability(portID string) *capabilitytypes.Capability\n```\nGetPortCapability returns the port capability for the given portID. The capability must exist, otherwise testing will fail.\n\n```go\nfunc (chain *TestChain) GetPrefix() commitmenttypes.MerklePrefix\n```\nGetPrefix returns the prefix for used by a chain in connection creation\n\n```go\nfunc (chain TestChain) GetSenderAccount() authtypes.AccountI\n```\n\n```go\nfunc (chain *TestChain) NewClientID(clientType string) string\n```\nNewClientID appends a new clientID string in the format: ClientFor\\\u003ccounterparty-chain-id\u003e\\\u003cindex\u003e\n\n```go\nfunc (chain *TestChain) NewFabricClientState(counterparty TestChainI, clientID string) *fabrictypes.ClientState\n```\n\n```go\nfunc (chain *TestChain) NewFabricConsensusState(counterparty TestChainI) *fabrictypes.ConsensusState\n```\n\n```go\nfunc (chain *TestChain) NextBlock()\n```\n\n```go\nfunc (chain *TestChain) NextTestChannel(conn *TestConnection, portID string) TestChannel\n```\nNextTestChannel returns the next test channel to be created on this connection, but does not add it to the list of created channels. This function is expected to be used when the caller has not created the associated channel in app state, but would still like to refer to the non-existent channel usually to test for its non-existence.\n\nchannel ID format: \\\u003cconnectionid\u003e-chan\\\u003cchannel-index\u003e\n\nThe port is passed in by the caller.\n\n```go\nfunc (chain *TestChain) QueryClientStateProof(clientID string) (exported.ClientState, []byte)\n```\nQueryClientStateProof performs and abci query for a client state stored with a given clientID and returns the ClientState along with the proof\n\n```go\nfunc (chain *TestChain) QueryConsensusStateProof(clientID string) ([]byte, clienttypes.Height)\n```\nQueryConsensusStateProof performs an abci query for a consensus state stored on the given clientID. The proof and consensusHeight are returned.\n\n```go\nfunc (chain *TestChain) QueryProof(key []byte) ([]byte, clienttypes.Height)\n```\nQueryProof performs an abci query with the given key and returns the proto encoded merkle proof for the query and the height at which the proof will succeed on a tendermint verifier.\n\n```go\nfunc (chain *TestChain) SendMsgs(msgs ...sdk.Msg) (*sdk.Result, error)\n```\nSendMsgs delivers a transaction through the application. It updates the senders sequence number and updates the TestChain's headers. It returns the result and error if one occurred.\n\n```go\nfunc (chain *TestChain) SendPacket(\n\tpacket exported.PacketI,\n) error\n```\nSendPacket simulates sending a packet through the channel keeper. No message needs to be passed since this call is made from a module.\n\n```go\nfunc (chain TestChain) Type() string\n```\nType implements TestChainI.Type\n\n```go\nfunc (chain *TestChain) UpdateClient(counterparty TestChainI, clientID string) error\n```\nTODO add tests for other headers UpdateClient updates the sequence and timestamp\n\n```go\nfunc (chain *TestChain) WriteAcknowledgement(\n\tpacket exported.PacketI,\n) error\n```\nWriteAcknowledgement simulates writing an acknowledgement to the chain.\n\n```go\ntype TestChainI interface {\n\tType() string\n\tGetApp() interface{}\n\tGetChainID() string\n\tGetSenderAccount() authtypes.AccountI\n\tGetLastHeader() *ibctmtypes.Header\n\tNextBlock()\n\tGetContext() sdk.Context\n\n\tAddTestConnection(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection\n\tAddTestChannel(conn *TestConnection, portID string) TestChannel\n\tConstructNextTestConnection(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection\n\n\tGetChannel(testChannel TestChannel) channeltypes.Channel\n\n\tConnectionOpenInit(\n\t\tcounterparty TestChainI,\n\t\tconnection, counterpartyConnection *TestConnection,\n\t) error\n\tConnectionOpenTry(\n\t\tcounterparty TestChainI,\n\t\tconnection, counterpartyConnection *TestConnection,\n\t) error\n\tConnectionOpenAck(\n\t\tcounterparty TestChainI,\n\t\tconnection, counterpartyConnection *TestConnection,\n\t) error\n\tConnectionOpenConfirm(\n\t\tcounterparty TestChainI,\n\t\tconnection, counterpartyConnection *TestConnection,\n\t) error\n\n\tChanOpenInit(\n\t\tch, counterparty TestChannel,\n\t\torder channeltypes.Order,\n\t\tconnectionID string,\n\t) error\n\tChanOpenTry(\n\t\tcounterparty TestChainI,\n\t\tch, counterpartyCh TestChannel,\n\t\torder channeltypes.Order,\n\t\tconnectionID string,\n\t) error\n\tChanOpenAck(\n\t\tcounterparty TestChainI,\n\t\tch, counterpartyCh TestChannel,\n\t) error\n\tChanOpenConfirm(\n\t\tcounterparty TestChainI,\n\t\tch, counterpartyCh TestChannel,\n\t) error\n\tChanCloseInit(\n\t\tcounterparty TestChainI,\n\t\tchannel TestChannel,\n\t) error\n\n\tCreatePortCapability(portID string)\n\n\tQueryClientStateProof(clientID string) (exported.ClientState, []byte)\n\tQueryProof(key []byte) ([]byte, clienttypes.Height)\n\tQueryConsensusStateProof(clientID string) ([]byte, clienttypes.Height)\n\n\tNewClientID(clientType string) string\n\tGetPrefix() commitmenttypes.MerklePrefix\n\n\tSendMsgs(msgs ...sdk.Msg) (*sdk.Result, error)\n}\n```\n\n```go\ntype TestChaincode struct{}\n```\nNo-op test chaincode\n\n```go\nfunc (t *TestChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *TestChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype TestResults struct {\n\tcontractapi.Contract\n\tGrade string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (sc *TestResults) CreateContract(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *TestResults) GetAmount(ctx contractapi.TransactionContextInterface) (uint64, error)\n```\n\n```go\nfunc (sc *TestResults) GetGrade(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *TestResults) GetParentsAddress(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *TestResults) GetStudentAddress(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *TestResults) GetTeacherAddress(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (sc *TestResults) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (sc *TestResults) SetGrade(ctx contractapi.TransactionContextInterface, _Grade string) error\n```\n\n```go\nfunc (sc *TestResults) WithdrawAmount(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\ntype Theatre struct {\n\tTheatreNo      int    `json:\"theatreNo\"`\n\tTheatreName    string `json:\"theatreName\"`\n\tWindows        int    `json:\"windows,omitempty\"`\n\tTicketsPerShow int    `json:\"ticketsPerShow,omitempty\"`\n\tShowsDaily     int    `json:\"showsDaily,omitempty\"`\n\tSodaStock      int    `json:\"sodaStock,omitempty\"`\n\tHalls          int    `json:\"halls,omitempty\"`\n\tDocType        string `json:\"docType\"`\n}\n```\nTheatre Model\n\n```go\ntype ThrottledChaincode struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (t *ThrottledChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *ThrottledChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype ThrottledSysCC struct {\n\tSelfDescribingSysCC\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Throttle(limit int, systemCC SelfDescribingSysCC) *ThrottledSysCC\n```\n\n```go\nfunc (t *ThrottledSysCC) Chaincode() shim.Chaincode\n```\n\n```go\ntype Ticket struct {\n\tTicketID string `json:\"ticket_id\"`\n\tEventID  string `json:\"event_id\"`\n\tSection  string `json:\"section\"`\n\n\t// represents the public blockchain\n\t// token ID\n\tTokenID string `json:\"token_id\"`\n\n\t// represents the owner id\n\t// in the web service database\n\tOwnerID string `json:\"owner\"`\n}\n```\n\n```go\ntype TimeLock struct {\n\tcontractapi.Contract\n}\n```\nTimeLock provides simple key-value Get/Put with time lock function as a usage example\n\n```go\nfunc (tlc *TimeLock) Execute(ctx context.ContextInterface, opHash string) error\n```\nExecute trys to examine whether the given event {hash} has a time lock, and if so, check if it's released.\n\n```go\nfunc (tlc *TimeLock) GetValue(ctx context.ContextInterface, key string) (string, error)\n```\nGetValue returns the value of the given {key}.\n\n```go\nfunc (tlc *TimeLock) Schedule(ctx context.ContextInterface, key string, value string, duration int64) (string, error)\n```\nSchedule sets a time lock for a {key}-{value} pair, which will be released for any get/set/del after {duration}.\n\n```go\ntype TimeService interface {\n\tNowDateTime() (DateTime, error)\n}\n```\nTimeService .\n\n```go\nfunc NewTimeServiceImpl(stub shim.ChaincodeStubInterface) TimeService\n```\nNewTimeServiceImpl creates default implementation\n\n```go\ntype TimeStamps struct {\n\tCreated     string `json:\"Created\"`\n\tOrdered     string `json:\"Ordered\"`\n\tDistributed string `json:\"Distributed\"`\n\tReceived    string `json:\"Received\"`\n\tSold        string `json:\"Sold\"`\n}\n```\n\n```go\ntype ToID struct {\n\tTo string\n\tID uint64\n}\n```\nTo represents recipient address ID represents token ID\n\n```go\ntype TodoItem struct {\n\tID          string    `json:\"ID\"`\n\tDescription string    `json:\"Description\"`\n\tOwner       string    `json:\"Owner\"`\n\tStatus      string    `json:\"Status\"`\n\tStartDate   time.Time `json:\"StartDate\"`\n\tEndDate     time.Time `json:\"EndDate\"`\n\tPriority    int       `json:\"Priority\"`\n}\n```\nTodoItem describes basic details of what makes up a Todo item\n\n```go\ntype Token struct {\n\tName        string\n\tTickerToken string\n\tMaxSupply   string\n\tTotalSupply string\n\tStatus      glossary.Status\n\tBase        `mapstructure:\",squash\"`\n}\n```\nA Token structure will have the name of the token type, the conversion rate to the base unit, and status (active/inactive) the status is checked only when we create a new wallet.\n\n```go\nfunc NewToken(ctx ...contractapi.TransactionContextInterface) *Token\n```\n\n```go\ntype TokenAsset struct {\n\tType     string `json:\"type\"`\n\tNumUnits uint64 `json:\"numunits\"`\n\tOwner    string `json:\"owner\"`\n}\n```\n\n```go\ntype TokenAssetType struct {\n\tIssuer string `json:\"issuer\"`\n\tValue  int    `json:\"value\"`\n}\n```\n\n```go\ntype TokenChaincode struct {\n\tLogLevel                string\n\tValidator               Validator\n\tPublicParametersManager PublicParametersManager\n\n\tPPDigest             []byte\n\tTokenServicesFactory func([]byte) (PublicParametersManager, Validator, error)\n\n\tMetricsEnabled bool\n\tMetricsServer  string\n\tMetricsLock    sync.Mutex\n\tMetricsAgent   Agent\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (cc *TokenChaincode) AreTokensSpent(idsRaw []byte, stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (cc *TokenChaincode) GetValidator(builtInParams string) (Validator, error)\n```\n\n```go\nfunc (token *TokenChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit Implements the Init method\n\n```go\nfunc (cc *TokenChaincode) Initialize(builtInParams string) error\n```\n\n```go\nfunc (token *TokenChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\nfunc (cc *TokenChaincode) NewMetricsAgent(id string) (Agent, error)\n```\n\n```go\nfunc (cc *TokenChaincode) Params(builtInParams string) ([]byte, error)\n```\n\n```go\nfunc (cc *TokenChaincode) ProcessRequest(raw []byte, stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (cc *TokenChaincode) QueryPublicParams(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (cc *TokenChaincode) QueryTokens(idsRaw []byte, stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (cc *TokenChaincode) ReadParamsFromFile() string\n```\n\n```go\ntype TokenContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (t *TokenContract) Create(ctx contractapi.TransactionContextInterface, issuer string, max_supply uint64, symbol string) error\n```\ncreate token\n\n```go\nfunc (tc *TokenContract) GetAllTokens(ctx contractapi.TransactionContextInterface) ([]*TokenAsset, error)\n```\nGetAllTokens retrieves all tokens stored in the world state World State에 저장된 모든 토큰을 검색\n\n```go\nfunc (tc *TokenContract) GetTokensByOwner(ctx contractapi.TransactionContextInterface, owner string) ([]*TokenAsset, error)\n```\nGetTokensByOwner retrieves tokens owned by a specific owner 특정 소유자가 소유한 모든 토큰을 검색\n\n```go\nfunc (t *TokenContract) Issue(ctx contractapi.TransactionContextInterface, issuer string, symbol string, to string, quantity uint64, memo string) error\n```\nissue token\n\n```go\nfunc (tc *TokenContract) MintTokens(ctx contractapi.TransactionContextInterface, owner string, tokenID string, amount int) error\n```\nMintTokens issues new tokens to a specific owner 새로운 토큰을 발행 호출된 토큰 ID가 이미 존재하는지 확인하고, 없다면 새로운 토큰을 생성하여 World State에 저장\n\n```go\nfunc (t *TokenContract) QueryAccount(ctx contractapi.TransactionContextInterface, symbol string, account string) (*Account, error)\n```\nquery balance\n\n```go\nfunc (t *TokenContract) QueryStat(ctx contractapi.TransactionContextInterface, symbol string) (*Stat, error)\n```\nquery token status\n\n```go\nfunc (t *TokenContract) Retire(ctx contractapi.TransactionContextInterface, symbol string, quantity uint64, memo string) error\n```\nretire\n\n```go\nfunc (t *TokenContract) Transfer(ctx contractapi.TransactionContextInterface, from string, to string, quantity uint64, symbol string, memo string) error\n```\ntransfer token\n\n```go\nfunc (tc *TokenContract) TransferTokens(ctx contractapi.TransactionContextInterface, newOwner string, tokenID string) error\n```\nTransferTokens transfers tokens from one owner to another 특정 토큰을 한 소유자에서 다른 소유자로 이전 호출된 토큰 ID가 World State에 존재하는지 확인하고, 토큰의 소유자가 호출자인지 확인. 호출자가 토큰의 소유자가 아니라면 오류를 반환 소유자가 확인되면 새로운 소유자로 변경된 정보를 포함한 토큰을 World State에 업데이트.\n\n```go\ntype TokenERC721Contract struct {\n\tcontractapi.Contract\n}\n```\nTokenERC721Contract contract for managing CRUD for HlpNft\n\n```go\nfunc (c *TokenERC721Contract) Approve(ctx contractapi.TransactionContextInterface, operator string, tokenId string) (bool, error)\n```\nApprove changes or reaffirms the approved client for a non-fungible token param {String} operator The new approved client param {String} tokenId the non-fungible token to approve returns {Boolean} Return whether the approval was successful or not\n\n```go\nfunc (c *TokenERC721Contract) BalanceOf(ctx contractapi.TransactionContextInterface, owner string) int\n```\nBalanceOf counts all non-fungible tokens assigned to an owner param owner {String} An owner for whom to query the balance returns {int} The number of non-fungible tokens owned by the owner, possibly zero\n\n```go\nfunc (c *TokenERC721Contract) Burn(ctx contractapi.TransactionContextInterface, tokenId string) (bool, error)\n```\nBurn a non-fungible token param {String} tokenId Unique ID of a non-fungible token returns {Boolean} Return whether the burn was successful or not\n\n```go\nfunc (c *TokenERC721Contract) ClientAccountBalance(ctx contractapi.TransactionContextInterface) (int, error)\n```\nClientAccountBalance returns the balance of the requesting client's account. returns {Number} Returns the account balance\n\n```go\nfunc (c *TokenERC721Contract) ClientAccountID(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *TokenERC721Contract) GetApproved(ctx contractapi.TransactionContextInterface, tokenId string) (string, error)\n```\nGetApproved returns the approved client for a single non-fungible token param {String} tokenId the non-fungible token to find the approved client for returns {Object} Return the approved client for this non-fungible token, or null if there is none\n\n```go\nfunc (c *TokenERC721Contract) Initialize(ctx contractapi.TransactionContextInterface, name string, symbol string) (bool, error)\n```\n\n```go\nfunc (c *TokenERC721Contract) IsApprovedForAll(ctx contractapi.TransactionContextInterface, owner string, operator string) (bool, error)\n```\nIsApprovedForAll returns if a client is an authorized operator for another client param {String} owner The client that owns the non-fungible tokens param {String} operator The client that acts on behalf of the owner returns {Boolean} Return true if the operator is an approved operator for the owner, false otherwise\n\n```go\nfunc (c *TokenERC721Contract) MintWithTokenURI(ctx contractapi.TransactionContextInterface, tokenId string, tokenURI string) (*model.NFT, error)\n```\n\\`MintWithTokenURI\\`is invoke fnc that mint a new non-fungible token\n\n```go\nfunc (c *TokenERC721Contract) Name(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *TokenERC721Contract) OwnerOf(ctx contractapi.TransactionContextInterface, tokenId string) (string, error)\n```\nOwnerOf finds the owner of a non-fungible token param {String} tokenId The identifier for a non-fungible token returns {String} Return the owner of the non-fungible token\n\n```go\nfunc (c *TokenERC721Contract) SetApprovalForAll(ctx contractapi.TransactionContextInterface, operator string, approved bool) (bool, error)\n```\nSetApprovalForAll enables or disables approval for a third party (\"operator\") to manage all the message sender's assets param {String} operator A client to add to the set of authorized operators param {Boolean} approved True if the operator is approved, false to revoke approval returns {Boolean} Return whether the approval was successful or not\n\n```go\nfunc (c *TokenERC721Contract) SetOption(ctx contractapi.TransactionContextInterface, name string, symbol string) (bool, error)\n```\n\n```go\nfunc (c *TokenERC721Contract) Symbol(ctx contractapi.TransactionContextInterface) (string, error)\n```\n\n```go\nfunc (c *TokenERC721Contract) TokenURI(ctx contractapi.TransactionContextInterface, tokenId string) (string, error)\n```\n\\`TokenURI\\` is query fnc that TokenURI returns a distinct Uniform Resource Identifier (URI) for a given token.\n\n```go\nfunc (c *TokenERC721Contract) TotalSupply(ctx contractapi.TransactionContextInterface) int\n```\n\\`TotalSupply\\` is query fnc that counts non-fungible tokens tracked by this contract.\n\n```go\nfunc (c *TokenERC721Contract) TransferFrom(ctx contractapi.TransactionContextInterface, from, to, tokenId string) (bool, error)\n```\n\\`TransferFrom\\` is invoke fnc that moves token from is the owner's address, to is reciepient's address\n\n```go\ntype TokenFest struct {\n\tcontractapi.Contract\n}\n```\nTokenFest provides functions for transferring tokens between accounts\n\n```go\nfunc (t *TokenFest) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of assets to the ledger\n\n```go\nfunc (t *TokenFest) QueryBankByID(ctx contractapi.TransactionContextInterface, bankID string) (Bank, error)\n```\n\n```go\nfunc (t *TokenFest) RegisterUser(ctx contractapi.TransactionContextInterface, userID string, bankID string) error\n```\n\n```go\ntype TokenWallet struct {\n\tWalletMap map[string]uint64 `json:\"walletlist\"`\n}\n```\n\n```go\ntype TradeChaincode struct {\n\tcontractapi.Contract\n}\n```\nTradeChaincode ...\n\n```go\nfunc (t *TradeChaincode) BuyModel(ctx contractapi.TransactionContextInterface, uid string, modelKey string, price uint32, timestamp string) error\n```\nBuyModel ...\n\n```go\nfunc (t *TradeChaincode) GetCurrentMeow(ctx contractapi.TransactionContextInterface, uid string) (*MeowType, error)\n```\nGetCurrentMeow ...\n\n```go\nfunc (t *TradeChaincode) GetModel(ctx contractapi.TransactionContextInterface, modelKey string) (*AIModelType, error)\n```\nGetModel ...\n\n```go\nfunc (t *TradeChaincode) GetQueryFromHistory(ctx contractapi.TransactionContextInterface, uid string) ([]*TransferType, error)\n```\n\n```go\nfunc (t *TradeChaincode) GetQueryHistory(ctx contractapi.TransactionContextInterface, uid string) ([]*TransferType, error)\n```\n\n```go\nfunc (t *TradeChaincode) GetQueryToHistory(ctx contractapi.TransactionContextInterface, uid string) ([]*TransferType, error)\n```\n\n```go\nfunc (t *TradeChaincode) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger ...\n\n```go\nfunc (t *TradeChaincode) Transfer(ctx contractapi.TransactionContextInterface, from string, to string, amount uint32, timestamp string, meowType string) error\n```\nTransfer ...\n\n```go\ntype TradeWorkflowChaincode struct {\n\t// contains filtered or unexported fields\n}\n```\nTradeWorkflowChaincode implementation\n\n```go\nfunc (t *TradeWorkflowChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *TradeWorkflowChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\ntype Tran struct {\n\tTransactionId       string `json:\"transactionid\"`\n\tTo                  string `json:\"to\"`\n\tFrom                string `json:\"from\"`\n\tDate                string `json:\"date\"`\n\tAmount              string `json:\"amount\"`\n\tTransactionCreateBy string `json:\"transactioncreateby\"` // this will tell who create the transaction\n\tValidatedBy         string `json:\"validatedby\"`         // this will tell who is the Validator\n\tValidate            string `json:\"validate\"`            // this will tell transaction is valid or not\n\tViewBy              string `json:\"viewby\"`              // this will tell who have permissions to View the transaction Details\n}\n```\nCar describes basic details of what makes up a car\n\n```go\ntype TransBaseDescription struct {\n\tTransBaseType base.TransBaseTypeV2\n\tDescription   string\n}\n```\n\n```go\nfunc NewNeedRecordTransBaseDescription(baseValue base.TransBaseTypeV2Value, desc string) TransBaseDescription\n```\n\n```go\nfunc NewUnRecordTransBaseDescription(baseValue base.TransBaseTypeV2Value, desc string) TransBaseDescription\n```\n\n```go\nfunc (this TransBaseDescription) String() string\n```\n\n```go\ntype Transaccion struct {\n\tIdCliente     string    `json:\"idCliente\"`\n\tMonto         float64   `json:\"monto\"`\n\tDestino       string    `json:\"destino\"`\n\tMonedaDestino string    `json:\"monedaDestino\"`\n\tIdTransaccion string    `json:\"idTransaccion\"`\n\tHash          string    `json:\"hash\"`\n\tFirstTime     string    `json:\"firstTime\"`\n\tTimestamp     time.Time `json:\"timestamp\"`\n}\n```\nEstructura de la transacción\n\n```go\ntype Transaction struct {\n\tID   string `json:\"ID\"`\n\tType string `json:\"Type\"`\n\tUPC  string `json:\"UPC\"`\n\tFrom string `json:\"From\"`\n\tTo   string `json:\"To\"`\n}\n```\nTransaction describes basic details of what makes up a simple asset\n\n```go\ntype TransactionContext struct {\n\tcontractapi.TransactionContext\n}\n```\n\n```go\nfunc (tc *TransactionContext) GetAgreementList() ListInterface\n```\n\n```go\nfunc (tc *TransactionContext) GetLandList() ListInterface\n```\nGetLandList returns land list\n\n```go\nfunc (tc *TransactionContext) GetMedicineList() ListInterface\n```\nGetMedicineList return medicine list (represents the ledger).\n\n```go\nfunc (tc *TransactionContext) GetRecordList() ListInterface\n```\nGetRecordList return paper list\n\n```go\ntype TransactionContextInterface interface {\n\tcontractapi.TransactionContextInterface\n}\n```\n\n```go\ntype TransactionContract struct {\n\tcontractapi.Contract\n}\n```\nTransactionContract for handling writing and reading from the world state\n\n```go\nfunc (sc *TransactionContract) Get(ctx contractapi.TransactionContextInterface, key string) (*TransactionObj, error)\n```\nGet retrieves the value linked to a key from the world state\n\n```go\nfunc (sc *TransactionContract) History(ctx contractapi.TransactionContextInterface, key string) ([]TransactionHistory, error)\n```\nHistory retrieves the history linked to a key from the world state\n\n```go\nfunc (sc *TransactionContract) Put(ctx contractapi.TransactionContextInterface, txnID int, txndate string, buyerID int, userID int, repayment float64, amount float64, interestrate float64, outstanding float64, duedate string, bank string, loanstatus string) (err error)\n```\nPut adds a new key with value to the world state\n\n```go\ntype TransactionHandler struct {\n\tContractFunction\n\t// contains filtered or unexported fields\n}\n```\nTransactionHandler extension of contract function that manages function which handles calls to before, after and unknown transaction functions\n\n```go\nfunc NewTransactionHandler(fn interface{}, contextHandlerType reflect.Type, handlesType TransactionHandlerType) (*TransactionHandler, error)\n```\nNewTransactionHandler create a new transaction handler from a given function\n\n```go\nfunc (th TransactionHandler) Call(ctx reflect.Value, data interface{}, serializer serializer.TransactionSerializer) (string, interface{}, error)\n```\nCall calls tranaction function using string args and handles formatting the response into useful types\n\n```go\ntype TransactionHandlerType int\n```\nTransactionHandlerType enum for type of transaction handled\n\n```go\nconst (\n\t// TransactionHandlerTypeBefore before transaction type\n\tTransactionHandlerTypeBefore TransactionHandlerType = iota + 1\n\t// TransactionHandlerTypeUnknown before transaction type\n\tTransactionHandlerTypeUnknown\n\t// TransactionHandlerTypeAfter before transaction type\n\tTransactionHandlerTypeAfter\n)\n```\n\n```go\nconst (\n\t// TransactionHandlerTypeBefore before transaction type\n\tTransactionHandlerTypeBefore TransactionHandlerType = iota + 1\n\t// TransactionHandlerTypeUnknown before transaction type\n\tTransactionHandlerTypeUnknown\n\t// TransactionHandlerTypeAfter before transaction type\n\tTransactionHandlerTypeAfter\n)\n```\n\n```go\nconst (\n\t// TransactionHandlerTypeBefore before transaction type\n\tTransactionHandlerTypeBefore TransactionHandlerType = iota + 1\n\t// TransactionHandlerTypeUnknown before transaction type\n\tTransactionHandlerTypeUnknown\n\t// TransactionHandlerTypeAfter before transaction type\n\tTransactionHandlerTypeAfter\n)\n```\n\n```go\nconst (\n\t// TransactionHandlerTypeBefore before transaction type\n\tTransactionHandlerTypeBefore TransactionHandlerType = iota + 1\n\t// TransactionHandlerTypeUnknown before transaction type\n\tTransactionHandlerTypeUnknown\n\t// TransactionHandlerTypeAfter before transaction type\n\tTransactionHandlerTypeAfter\n)\n```\n\n```go\nconst (\n\t// TransactionHandlerTypeBefore before transaction type\n\tTransactionHandlerTypeBefore TransactionHandlerType = iota + 1\n\t// TransactionHandlerTypeUnknown before transaction type\n\tTransactionHandlerTypeUnknown\n\t// TransactionHandlerTypeAfter before transaction type\n\tTransactionHandlerTypeAfter\n)\n```\n\n```go\nfunc (tht TransactionHandlerType) String() (string, error)\n```\n\n```go\ntype TransactionHistory struct {\n\tCompletedTx  []CompletedTransaction `json:\"completedtx\"`\n\tPledgeRedeem []PledgeRedeemFund     `json:\"pledgeredeem\"`\n\tMoveInOut    []MoveOutInFund        `json:\"moveinout\"`\n}\n```\n\n```go\ntype TransactionHooksContract struct {\n\tcontractapi.Contract\n}\n```\nTransactionHooksContract with biz logic\n\n```go\nfunc (thc *TransactionHooksContract) PassAfterValue(ctx *TransactionContext, passToAfter string) string\n```\nPassAfterValue returns a passed value so that it can be written to the world state by the after function\n\n```go\nfunc (thc *TransactionHooksContract) WriteBeforeValue(ctx *TransactionContext) error\n```\nWriteBeforeValue writes to the world state the value stored in the context by the before function\n\n```go\ntype TransactionObj struct {\n\tTxnID        int       `json:\"txnID\"`\n\tTxnDate      string    `json:\"txndate\"`\n\tBuyerID      int       `json:\"buyerID\"`\n\tUserID       int       `json:\"userID\"`\n\tRepayment    float64   `json:\"repayment\"`\n\tAmount       float64   `json:\"amount\"`\n\tInterestRate float64   `json:\"interestrate\"`\n\tOutstanding  float64   `json:\"outstanding\"`\n\tDueDate      string    `json:\"duedate\"`\n\tBank         string    `json:\"bank\"`\n\tLoanStatus   string    `json:\"loanstatus\"`\n\tCreated      time.Time `json:\"created\"`\n\tCreatedby    string    `json:\"createdby\"`\n}\n```\nTransactionObj ...\n\n```go\ntype TransactionViewRequest struct {\n\tTransactionId  string `json:\"transactionid\"`\n\tRequestId      string `json:\"requestid\"`\n\tRequestTo      string `json:\"requestto\"`\n\tRequestBy      string `json:\"requestby\"`\n\tRequestProcess string `json:\"requestprocess\"`\n}\n```\n\n```go\ntype Transcript struct {\n\tId    string `json:\"id\"`\n\tEmail string `json:\"email\"`\n\tPass  string `json:\"pass\"`\n\tGrade string `json:\"grade\"`\n}\n```\nTranscript describes basic details of what ids up a transcript\n\n```go\ntype TransferAgreement struct {\n\tID      string `json:\"assetID\"`\n\tBuyerID string `json:\"buyerID\"`\n}\n```\nTransferAgreement describes the buyer agreement returned by ReadTransferAgreement\n\n```go\ntype TransferBatch struct {\n\tOperator string   `json:\"operator\"`\n\tFrom     string   `json:\"from\"`\n\tTo       string   `json:\"to\"`\n\tIDs      []uint64 `json:\"ids\"`\n\tValues   []uint64 `json:\"values\"`\n}\n```\nTransferBatch MUST emit when tokens are transferred, including zero value transfers as well as minting or burning. The operator argument MUST be msg.sender. The from argument MUST be the address of the holder whose balance is decreased. The to argument MUST be the address of the recipient whose balance is increased. The ids argument MUST be the list of tokens being transferred. The values argument MUST be the list of number of tokens (matching the list and order of tokens specified in \\_ids) the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the from argument MUST be set to \\`0x0\\` (i.e. zero address). When burning/destroying tokens, the to argument MUST be set to \\`0x0\\` (i.e. zero address).\n\n```go\ntype TransferBatchMultiRecipient struct {\n\tOperator string   `json:\"operator\"`\n\tFrom     string   `json:\"from\"`\n\tTo       []string `json:\"to\"`\n\tIDs      []uint64 `json:\"ids\"`\n\tValues   []uint64 `json:\"values\"`\n}\n```\nTransferBatchMultiRecipient MUST emit when tokens are transferred, including zero value transfers as well as minting or burning. The operator argument MUST be msg.sender. The from argument MUST be the address of the holder whose balance is decreased. The to argument MUST be the list of the addresses of the recipients whose balance is increased. The ids argument MUST be the list of tokens being transferred. The values argument MUST be the list of number of tokens (matching the list and order of tokens specified in \\_ids) the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the from argument MUST be set to \\`0x0\\` (i.e. zero address). When burning/destroying tokens, the to argument MUST be set to \\`0x0\\` (i.e. zero address).\n\n```go\ntype TransferSingle struct {\n\tOperator string `json:\"operator\"`\n\tFrom     string `json:\"from\"`\n\tTo       string `json:\"to\"`\n\tID       uint64 `json:\"id\"`\n\tValue    uint64 `json:\"value\"`\n}\n```\nTransferSingle MUST emit when a single token is transferred, including zero value transfers as well as minting or burning. The operator argument MUST be msg.sender. The from argument MUST be the address of the holder whose balance is decreased. The to argument MUST be the address of the recipient whose balance is increased. The id argument MUST be the token type being transferred. The value argument MUST be the number of tokens the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the from argument MUST be set to \\`0x0\\` (i.e. zero address). When burning/destroying tokens, the to argument MUST be set to \\`0x0\\` (i.e. zero address).\n\n```go\ntype TransferType struct {\n\tType      string `json:\"type\"`\n\tFrom      string `json:\"from\"`\n\tTo        string `json:\"to\"`\n\tAmount    uint32 `json:\"amount\"`\n\tTimestamp string `json:\"timestamp\"`\n}\n```\nTransferType ...\n\n```go\ntype TransientFund struct {\n\tObjectType  string    `json:\"docType\"` //default set to \"transientfund\"\n\tRefID       string    `json:\"refID\"`\n\tAccountID   string    `json:\"accountID\"`\n\tChannelFrom string    `json:\"channelFrom\"`\n\tChannelTo   string    `json:\"channelTo\"`\n\tAmount      float64   `json:\"amount\"`\n\tCurrency    string    `json:\"currency\"`\n\tCreateTime  time.Time `json:\"createTime\"`\n}\n```\n\n```go\ntype Transkrip struct {\n\tID                string   `json:\"id\"`\n\tIdSP              string   `json:\"idSp\"`\n\tIdSMS             string   `json:\"idSms\"`\n\tIdPD              string   `json:\"idPd\"`\n\tJenjangPendidikan string   `json:\"jenjangPendidikan\"`\n\tTotalMutu         float64  `json:\"totalMutu\"`\n\tTotalSKS          int      `json:\"totalSks\"`\n\tIPK               float64  `json:\"ipk\"`\n\tRemainingApprover int      `json:\"remainingApprover\"`\n\tApprovers         []string `json:\"Approvers\"`\n}\n```\n\n```go\ntype Transport struct {\n\t//物流ID(此链中唯一)\n\tTransportId string `json:\"transport_id\"`\n\t//司机ID\n\tDriverId string `json:\"driver_id\"`\n\t//司机名字\n\tDriverName string `json:\"driver_name\"`\n\t//司机电话\n\tDriverTel string `json:\"driver_tel\"`\n\t//所属部门\n\tDriverDept string `json:\"driver_dept\"`\n\t//货物ID\n\tCropsId string `json:\"crops_id\"`\n\t//物流信息上链时间\n\tTransportToChainTime string `json:\"transport_to_chain_time\"`\n\t//物流路过地址\n\tTransportToAddress string `json:\"transport_to_address\"`\n\t//备注（始发地，途中，目的地）\n\tRemarks string `json:\"remarks\"`\n}\n```\nTransport 物流信息\n\n```go\ntype TransportRecord = structures.TransportRecord\n```\n\n```go\ntype Transportation struct {\n\tBrandTransport           string `json:\"brandTransport\"`\n\tSterilizationCertificate string `json:\"sterilizationCertificate\"`\n\tStartingEnding           string `json:\"startingEnding\"`\n\tDate                     string `json:\"date\"`\n\tPersonnel                string `json:\"personnel\"`\n\tQuantity                 string `json:\"quantity\"`\n}\n```\n运输工具牌号、运输工具消毒证明、运输起止日期和位置、运输人员、运输数量等信息\n\n```go\ntype TransporterBasicData struct {\n\tTransporter_id   string                `json:\"transporterID\"`\n\tName             string                `json:\"name\"`\n\tAddress          string                `json:\"address\"`\n\tTransporterSeeds []TransporterSeedData `json:\"transporterSeeds\"`\n}\n```\n\n```go\ntype TransporterSeedData struct {\n\tBatch_id                 string  `json:\"batchId\"`\n\tTransporterName          string  `json:\"transporterName\"`\n\tLocation                 string  `json:\"location\"`\n\tVehicleUsedTransporter   string  `json:\"vehicleUsedTransporter\"`\n\tVehicleNumberTransporter string  `json:\"vehicleNumberTransporter\"`\n\tQuantity                 float64 `json:\"quantity\"`\n\tTransportDate            string  `json:\"transportDate\"`\n}\n```\n\n```go\ntype TreeNode struct {\n\tVal   int       `json:\"Val\"`\n\tLeft  *TreeNode `json:\"Left\"`\n\tRight *TreeNode `json:\"Right\"`\n}\n```\n\n```go\nfunc (node *TreeNode) DeleteValue(val int) *TreeNode\n```\n\n```go\nfunc (node *TreeNode) InsertValue(val int)\n```\n\n```go\ntype Trigger struct {\n\t// contains filtered or unexported fields\n}\n```\nTrigger is a stub for the Trigger implementation\n\n```go\nfunc GetTrigger(name string) (*Trigger, bool)\n```\nGetTrigger returns the cached trigger for a specified transaction name; return false in the second value if no trigger is cached for the specified name\n\n```go\nfunc (t *Trigger) Initialize(ctx trigger.InitContext) error\n```\nInitialize implements trigger.Init.Initialize\n\n```go\nfunc (t *Trigger) Invoke(stub shim.ChaincodeStubInterface, fn string, args []string) (int, string, error)\n```\nInvoke starts the trigger and invokes the action registered in the handler, and returns status code and result as JSON string\n\n```go\nfunc (t *Trigger) Start() error\n```\nStart implements trigger.Trigger.Start\n\n```go\nfunc (t *Trigger) Stop() error\n```\nStop implements trigger.Trigger.Start\n\n```go\ntype TxBase struct {\n\t*base.Base\n}\n```\n\n```go\nfunc NewTxBase() *TxBase\n```\n\n```go\nfunc (b TxBase) TxHandlerTransfer(ctx contractapi.TransactionContextInterface, mapBalanceToken map[string]*entity.BalanceCache, tx *entity.Transaction) (*entity.Transaction, error)\n```\n\n```go\ntype TxDeleteSet map[string]interface{}\n```\n\n```go\ntype TxDetails struct {\n\tFrom   string `json:\"From\"`\n\tTo     string `json:\"To\"`\n\tAction string `json:\"Action\"`\n\tValue  string `json:\"Value\"`\n}\n```\n\n```go\ntype TxHandler struct {\n\tMockStub *MockStub\n\n\tLogger  *zap.Logger\n\tContext router.Context\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTxHandler(name string, serializer ...*serialize.GenericSerializer) (*TxHandler, router.Context)\n```\n\n```go\nfunc (p *TxHandler) Expect(res interface{}, err error) *expect.TxRes\n```\nExpect returns assertion helper\n\n```go\nfunc (p *TxHandler) From(creator ...interface{}) *TxHandler\n```\n\n```go\nfunc (p *TxHandler) Init(txHdl func(ctx router.Context) (interface{}, error)) *TxResult\n```\n\n```go\nfunc (p *TxHandler) Invoke(invoke func(ctx router.Context) (interface{}, error)) *TxResult\n```\nInvoke emulates chaincode invocation and returns transaction result\n\n```go\nfunc (p *TxHandler) SetTxResult(err error)\n```\nSetTxResult can be used for set txResult error during Tx\n\n```go\nfunc (p *TxHandler) Tx(tx func())\n```\nTx emulates chaincode invocation\n\n```go\nfunc (p *TxHandler) TxEvent() *peer.ChaincodeEvent\n```\nTxEvent returns last tx event\n\n```go\nfunc (p *TxHandler) TxFunc(tx func()) func()\n```\nTxFunc returns tx closure, can be used directly as ginkgo func\n\n```go\nfunc (p *TxHandler) TxTimestamp() *timestamp.Timestamp\n```\nTxTimestamp returns last tx timestamp\n\n```go\ntype TxInfo struct {\n\tCT6 string `json:\"CT6\"`\n\tDC  string `json:\"DC\"`\n}\n```\n\n```go\nfunc NewTxInfo(CT6 string, DC string) TxInfo\n```\n\n```go\ntype TxResult struct {\n\tResult interface{}\n\tErr    error\n\tEvent  *peer.ChaincodeEvent\n}\n```\n\n```go\nfunc (r *TxResult) Expect() *expect.TxRes\n```\n\n```go\ntype TxSignMode uint8\n```\n\n```go\nconst (\n\tTxSignModeStdTx TxSignMode = iota + 1\n\tTxSignModeFabricTx\n)\n```\n\n```go\ntype TxWriteSet map[string][]byte\n```\n\n```go\ntype URI struct {\n\tValue string `json:\"value\"`\n\tID    uint64 `json:\"id\"`\n}\n```\nURI MUST emit when the URI is updated for a token ID. Note: This event is not used in this contract implementation because in this implementation, only the programmatic way of setting URI is used. The URI should contain {id} as part of it and the clients MUST replace this with the actual token ID.\n\n```go\ntype UTXO struct {\n\tKey    string `json:\"utxo_key\"`\n\tOwner  string `json:\"owner\"`\n\tAmount int    `json:\"amount\"`\n}\n```\nUTXO represents an unspent transaction output\n\n```go\ntype UnkAsset struct {\n\tID    string `json:\"ID\"`\n\tUnk1  string `json:\"unk1\"`\n\tUnk2  string `json:\"unk2\"`\n\tOwner string `json:\"owner\"`\n}\n```\n\n```go\ntype UnkAssetPvt struct {\n\tID      string `json:\"ID\"`\n\tUnkPvt1 string `json:\"unkPvt1\"`\n\tUnkPvt2 string `json:\"unkPvt2\"`\n\tUnkPvt3 string `json:\"unkPvt3\"`\n\tSalt    string `json:\"salt\"`\n}\n```\n\n```go\ntype UploadGrads struct {\n\tLayerName string   `json:\"layer\"`\n\tGrads     []string `json:\"gradients\"`\n}\n```\n\n```go\ntype Upvote struct {\n\tHash    string `json:\"hash\"`\n\tCreator string `json:\"creator\"`\n}\n```\n\n```go\ntype Usage struct {\n\tTime time.Time\n\tCPU  []string\n}\n```\nUsage is the asset\n\n```go\ntype UsageSlice struct {\n\tID         string  `json:\"id\"`\n\tOwner      string  `json:\"owner_id\"`\n\tConsumer   string  `json:\"consumer_id\"`\n\tK8sCPUMins float64 `json:\"k8s_cpu_mins\"`\n\tK8sRAMMins float64 `json:\"k8s_ram_mins\"`\n\tTimestamp  int64   `json:\"epoch\"`\n\tPaid       bool    `json:\"is_paid\"`\n}\n```\nUsageSlice describes a K8s usage block that\n\n```go\ntype User struct {\n\tID             string   `json:\"ID\"`\n\tNFTCreatedBy   []string `json:\"NFTCreatedBy\"`\n\tNFTOwnedBy     []string `json:\"NFTOwnedBy\"`\n\tMoney          float64  `json:\"Money\"`\n\tCreatedAt      string   `json:\"CreatedAt\"`\n\tOpHistory      []string `json:\"OpHistory\"`\n\tOpHash         []string `json:\"OpHash\"`\n\tTxIDCreated    string   `json:\"TxIDCreated\"`\n\tKeyGenSeedHash string   `json:\"KeyGenSeedHash\"`\n}\n```\n\n```go\nfunc NewUser(id string, money float64, time string, TxID string) User\n```\n\n```go\nfunc (u *User) Contacts(stub shim.ChaincodeStubInterface) []Contract\n```\n\n```go\ntype UserContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (s *UserContract) CreateUser(ctx contractapi.TransactionContextInterface, userData string) (string, error)\n```\nCreateUser function to create user and insert it on blockchain\n\n```go\nfunc (s *UserContract) GetUserByID(ctx contractapi.TransactionContextInterface, userID string) (*User, error)\n```\nGetUserByID get bawang object by ID\n\n```go\ntype UserCredential struct {\n\tUserID   string `json:\"userId\"`\n\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\"`\n\tEmail    string `json:\"email\"`\n\tRole     string `json:\"role\"`\n}\n```\nUserCredential represents the data structure for user credentials\n\n```go\ntype UserList struct {\n\tUsers []string\n}\n```\nUserList 用户列表\n\n```go\ntype UserRating struct {\n\tUser    string  `json:\"user\"`\n\tAverage float64 `json:\"average\"`\n\tRates   []Rate  `json:\"rates\"`\n}\n```\n\n```go\ntype Userinfo struct {\n\tUserID string `json:\"userid\"`\n\n\tPassword     string        `json:\"password\"`\n\tPostingList  []Postinginfo `json:\"postinglist\"`\n\tTokenBalance float64       `json:\"tokenbalance\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Users struct {\n\tName     string `json:\"name\"`\n\tUserId   string `json:\"userid\"`\n\tPassword string `json:\"password\"`\n\tRole     string `json:\"role\"`\n\tWhoBoss  string `json:\"whoboss\"` // this will tell as who is your boss if rule is employe\n}\n```\n\n```go\ntype Validation struct {\n\tIsValid  bool   `json:\"isValid\"`\n\tComments string `json:\"comments\"`\n}\n```\nfor CA validation\n\n```go\ntype Validator interface {\n\tUnmarshallAndVerify(ledger token.Ledger, binding string, raw []byte) ([]interface{}, error)\n}\n```\n\n```go\ntype ValidatorStateShim struct {\n\tValidatorState validatorstate.State\n\tNamespace      string\n}\n```\n\n```go\nfunc (vss *ValidatorStateShim) GetState(key string) ([]byte, error)\n```\n\n```go\ntype Vehicle struct {\n\tID          string  `json:\"id\"`\n\tRATIO       float64 `json:\"completion_ratio\"`\n\tRELIABILITY float64 `json:\"reliability\"`\n}\n```\n\n```go\ntype VehicleChaincode struct {\n}\n```\nVehicleChaincode Represents our chaincode object\n\n```go\nfunc (history *VehicleChaincode) GetVehicleByVin(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetVehicleByVin gets the asset information\n\n```go\nfunc (history *VehicleChaincode) GetVehicleHistory(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetVehicleHistory gets the history of the vehicle by VIN args\\[0] = VIN\n\n```go\nfunc (history *VehicleChaincode) GetVehiclesByYear(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nGetVehiclesByYear gets all the vehicles \u003e= year Another sample to show the use of Rich Queries To make this work you need to create an index :) Not using Pagination - so results restricted to a max of totalQueryLimit\n\n```go\nfunc (history *VehicleChaincode) Init(stub shim.ChaincodeStubInterface) peer.Response\n```\nInit Implements the Init method\n\n```go\nfunc (history *VehicleChaincode) Invoke(stub shim.ChaincodeStubInterface) peer.Response\n```\nInvoke method\n\n```go\nfunc (history *VehicleChaincode) SetupSampleData(stub shim.ChaincodeStubInterface)\n```\nSetupSampleData creates multiple instances of the ERC20history\n\n```go\nfunc (history *VehicleChaincode) TransferOwnership(stub shim.ChaincodeStubInterface, args []string) peer.Response\n```\nTransferOwnership gets the asset information Transfer the ownership of the vehicle from owner1 to owner2 args\\[0]=vin   args\\[1]=current owner  args\\[2]=new owner args\\[3]=transfer date args\\[1] used for validation\n\n```go\ntype Veiculo struct {\n\tVChassis                      string `json:\"vChassis\"`\n\tRenavam                       int    `json:\"renavam\"`\n\tVCnpjCpf                      int    `json:\"vCnpjCpf\"`\n\tEspecificacao                 string `json:\"especificacao\"`\n\tDataFabricacao                string `json:\"dataFabricacao\"`\n\tDataUtilizacao                string `json:\"dataUtilizacao\"`\n\tDataRevenda                   string `json:\"dataRevenda\"`\n\tVDocumentoResponsavelRegistro int    `json:\"vDocumentoResponsavelRegistro\"`\n\tId                            string `json:\"id\"`\n}\n```\nVeiculo\n\n```go\ntype VerificationAttributes struct {\n\tOrganisation string `json:\"Organisation\"`\n\tTable_name   string `json:\"Table_name\"`\n\tUser         string `json:\"User\"`\n\tTime         string `json:\"Time\"`\n}\n```\n\n```go\ntype ViewStorage struct {\n\tcontractapi.Contract\n}\n```\nViewStorage provides functions for managing a car\n\n```go\nfunc (t *ViewStorage) AppendView(ctx contractapi.TransactionContextInterface, viewName, viewContents string) error\n```\n\n```go\nfunc (t *ViewStorage) CreateView(ctx contractapi.TransactionContextInterface, viewName, viewContents string) error\n```\n\n```go\nfunc (t *ViewStorage) GetView(ctx contractapi.TransactionContextInterface, viewName string) (string, error)\n```\n\n```go\ntype VisitFunc func(key string, data interface{}) error\n```\nVisitFunc .\n\n```go\ntype Vote struct {\n\tId       int    `json:\"id\"`\n\tUsername string `json:\"username\"`\n\tVotes    int    `json:\"votes\"`\n}\n```\n\n```go\ntype VoteContract struct {\n\tcontractapi.Contract\n}\n```\n\n```go\nfunc (v *VoteContract) Cast(ctx contractapi.TransactionContextInterface,\n\tvoterid string, issueDateTime string, candidateid string, voteid string) error\n```\n\n```go\nfunc (v *VoteContract) GetVoteCountForCand(ctx contractapi.TransactionContextInterface, candidateId string) (int64, error)\n```\n\n```go\nfunc (v *VoteContract) LiveTest() string\n```\n\n```go\ntype Voter struct {\n\tID       string `json:\"id\"`\n\tName     string `json:\"name\"`\n\tHasVoted bool   `json:\"hasVoted\"`\n}\n```\nVoter represents a voter in the system\n\n```go\ntype VotingContract struct {\n\tcontractapi.Contract\n}\n```\nVotingContract for handling voting logic\n\n```go\nfunc (vc *VotingContract) CastVote(ctx contractapi.TransactionContextInterface, voterID string, candidateID string) error\n```\nCastVote records a vote for a candidate\n\n```go\nfunc (vc *VotingContract) GetResults(ctx contractapi.TransactionContextInterface) ([]*Candidate, error)\n```\nGetResults returns the results of the election\n\n```go\nfunc (vc *VotingContract) GetVoter(ctx contractapi.TransactionContextInterface, voterID string) (*Voter, error)\n```\nGetVoter returns the voter information from the ledger\n\n```go\nfunc (vc *VotingContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\nInitLedger adds a base set of candidates to the ledger\n\n```go\nfunc (vc *VotingContract) QueryAllVoters(ctx contractapi.TransactionContextInterface) ([]*Voter, error)\n```\nQueryAllVoters returns all voters found in the world state\n\n```go\nfunc (vc *VotingContract) RegisterVoter(ctx contractapi.TransactionContextInterface, voterID string, name string) error\n```\nRegisterVoter adds a new voter to the ledger\n\n```go\nfunc (vc *VotingContract) VoterExists(ctx contractapi.TransactionContextInterface, voterID string) (bool, error)\n```\nVoterExists checks if a voter exists in the ledger\n\n```go\ntype Wallet struct {\n\tOwner string           `json:\"Owner\"`\n\tNFT   map[string]Asset `json:\"NFT\"`\n}\n```\n\n```go\nfunc NewWallet(ctx ...contractapi.TransactionContextInterface) *Wallet\n```\n\n```go\ntype WalletEntry struct {\n\tOwner   string `json:\"owner\"`\n\tBalance int    `json:\"balance\"`\n\tRefNo   string `json:\"refNo\"`\n}\n```\n\n```go\ntype WalletStore map[string]WalletEntry\n```\n\n```go\nfunc ReadWalletStore(\n\tctx contractapi.TransactionContextInterface,\n) (WalletStore, error)\n```\n\n```go\ntype WarehouseContract struct {\n\tcontractapi.Contract\n}\n```\nSmartContract provides functions for managing an Asset\n\n```go\nfunc (s *WarehouseContract) BuyTokens(\n\tctx contractapi.TransactionContextInterface,\n\tamount string,\n\trefNo string,\n) error\n```\n\n```go\nfunc (s *WarehouseContract) CancelOrder(\n\tctx contractapi.TransactionContextInterface,\n\torderId string,\n\tcomments string,\n) error\n```\n\n```go\nfunc (s *WarehouseContract) InitLedger(ctx contractapi.TransactionContextInterface) error\n```\n\n```go\nfunc (s *WarehouseContract) PlaceOrder(\n\tctx contractapi.TransactionContextInterface,\n\tjsonStr string,\n) error\n```\n\n```go\nfunc (s *WarehouseContract) ReadAllAssets(\n\tctx contractapi.TransactionContextInterface,\n) ([]Asset, error)\n```\nReadAllAssets returns all assets stored in the world state with limited details.\n\n```go\nfunc (s *WarehouseContract) ReadAllWarehouseOrders(\n\tctx contractapi.TransactionContextInterface,\n) ([]Order, error)\n```\n\n```go\nfunc (s *WarehouseContract) ReadAsset(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n) (*Asset, error)\n```\nreadOwnerAsset returns the asset stored in the world state with given id.\n\n```go\nfunc (s *WarehouseContract) ReadOwnerWallet(\n\tctx contractapi.TransactionContextInterface,\n) (*WalletEntry, error)\n```\n\n```go\nfunc (s *WarehouseContract) UpdateAsset(\n\tctx contractapi.TransactionContextInterface,\n\tid string,\n\tassetJSON string,\n) error\n```\n\n```go\nfunc (s *WarehouseContract) UpdateRegistration(\n\tctx contractapi.TransactionContextInterface,\n\tjsonStr string,\n) error\n```\n\n```go\ntype WeatherAPI struct {\n\tCityName    string `json:\"cityname\"`\n\tSituation   string `json:\"situation\"`\n\tTemperature string `json:\"temperature\"`\n\t//  Timestamp   string `json:\"timestamp\"`\n\tDate string `json:\"date\"`\n\tHour string `json:\"hour\"`\n}\n```\n\n```go\ntype Website struct {\n\tID   string `json:\"ID\"`\n\tLink string `json:\"link\"`\n}\n```\n\n```go\ntype Window struct {\n\tWindowNo    int    `json:\"windowNo\"`\n\tTicketsSold int    `json:\"ticketsSold\"`\n\tDocType     string `json:\"docType\"`\n}\n```\nWindow model\n\n```go\ntype Winners struct {\n\tBuyer    string `json:\"buyer\"`\n\tQuantity int    `json:\"quantity\"`\n}\n```\nWinners stores the winners of the auction\n\n```go\ntype XATransaction struct {\n\tTransactionID      string              `json:\"xaTransactionID\"`\n\tIdentity           string              `json:\"accountIdentity\"`\n\tContracts          []string            `json:\"contracts\"`\n\tPaths              []string            `json:\"paths\"` // all paths related to this transaction\n\tStatus             string              `json:\"status\"`\n\tStartTimestamp     uint64              `json:\"startTimestamp\"`\n\tCommitTimestamp    uint64              `json:\"commitTimestamp\"`\n\tRollbackTimestamp  uint64              `json:\"rollbackTimestamp\"`\n\tSeqs               []uint64            `json:\"seqs\"`\n\tXATransactionSteps []XATransactionStep `json:\"xaTransactionSteps\"`\n}\n```\n\n```go\ntype XATransactionStep struct {\n\tSeq       uint64 `json:\"xaTransactionSeq\"`\n\tIdentity  string `json:\"accountIdentity\"`\n\tPath      string `json:\"path\"`\n\tTimestamp uint64 `json:\"timestamp\"`\n\tMethod    string `json:\"method\"`\n\tArgs      string `json:\"args\"`\n}\n```\n\n```go\ntype YCSBChaincode struct {\n}\n```\n\n```go\nfunc (t *YCSBChaincode) Delete(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) Empty(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) Insert(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) MultiRW(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) Read(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) ReadModifyWrite(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n```go\nfunc (t *YCSBChaincode) Update(stub shim.ChaincodeStubInterface, args []string) pb.Response\n```\n\n","path":"github.com/zm-stack/chaincode/study/code","name":"main","synopsis":"origin_dairyfarm.go","isRedistributable":true}
