File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
31# SPDX-License-Identifier: Apache-2.0
42
5- # Entrada del paquete de desarrollo - Shim Class
6-
73
84# The main API list of Shim is as follows:
95#
Original file line number Diff line number Diff line change 1- # handler.py
2-
3- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
4- # contributors. All rights reserved.
5- # SPDX-License-Identifier: Apache-2.0
6-
7- # ChaincodeSupportClient Class
8-
9- # The main API list of ChaincodeSupportClient is as follows:
10- #
11- # chat_with_peer(): Starts a two-way communication flow with the peer node
12-
131import datetime
142from typing import AsyncIterable
153import asyncio
Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
3- # SPDX-License-Identifier: Apache-2.0
4-
51from abc import ABC , abstractmethod
62
73from fabric_protos .peer import proposal_response_pb2 as pb
Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
3- # SPDX-License-Identifier: Apache-2.0
4-
51# Status and historical query result iterator implementation class
62import asyncio
73
Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
3- # SPDX-License-Identifier: Apache-2.0
4-
5- # Logger implementation class
Original file line number Diff line number Diff line change 1- # logging.py
2-
3- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
4- # contributors. All rights reserved.
5- # SPDX-License-Identifier: Apache-2.0
6-
71import asyncio
82import logging
9- import logging .config
103import logging .handlers
114
125try :
Original file line number Diff line number Diff line change 11import asyncio
2- import json
32from src .fabric_shim .logging import LOGGER
43
54
Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
3- # SPDX-License-Identifier: Apache-2.0
41from fabric_protos .peer import chaincode_shim_pb2 as ccshim_pb2
52from fabric_protos .peer import proposal_response_pb2 as pb
63
Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
3- # SPDX-License-Identifier: Apache-2.0
41import asyncio
52import logging
63import os
74
8- from typing import AsyncIterable , Iterable , Type
5+ from typing import AsyncIterable , Type
96
107import grpc
118import queue
Original file line number Diff line number Diff line change 1- # Copyright the Institute of Cryptography, Faculty of Mathematics and Computer Science at University of Havana
2- # contributors. All rights reserved.
3- # SPDX-License-Identifier: Apache-2.0
41from src .fabric_shim .interfaces import ChaincodeStubInterface
52from src .fabric_shim .utils import (
63 COMPOSITEKEY_NS ,
You can’t perform that action at this time.
0 commit comments