Documentation ¶
Index ¶
- Constants
- func CalcContractName(contractName string) string
- func CheckProposalRequestResp(resp *common.TxResponse, needContractResult bool) error
- func CreateChainClientWithSDKConf(sdkConfPath string) (*sdk.ChainClient, error)
- func GetEndorsers(payload *common.Payload, usernames ...string) ([]*common.EndorsementEntry, error)
- func GetEndorsersWithAuthType(hashType crypto.HashType, authType sdk.AuthType, payload *common.Payload, ...) ([]*common.EndorsementEntry, error)
- func MakeAddrAndSkiFromCrtFilePath(crtFilePath string) (string, string, string, error)
- func PrintPrettyJson(data interface{})
- type PermissionedPkUsers
- type PkUsers
- type User
Constants ¶
View Source
const ( OrgId1 = "wx-org1.chainmaker.org" OrgId2 = "wx-org2.chainmaker.org" OrgId3 = "wx-org3.chainmaker.org" OrgId4 = "wx-org4.chainmaker.org" OrgId5 = "wx-org5.chainmaker.org" UserNameOrg1Client1 = "org1client1" UserNameOrg2Client1 = "org2client1" UserNameOrg1Admin1 = "org1admin1" UserNameOrg2Admin1 = "org2admin1" UserNameOrg3Admin1 = "org3admin1" UserNameOrg4Admin1 = "org4admin1" UserNameOrg5Admin1 = "org5admin1" Version = "1.0.0" UpgradeVersion = "2.0.0" )
Variables ¶
This section is empty.
Functions ¶
func CheckProposalRequestResp ¶
func CheckProposalRequestResp(resp *common.TxResponse, needContractResult bool) error
func CreateChainClientWithSDKConf ¶
func CreateChainClientWithSDKConf(sdkConfPath string) (*sdk.ChainClient, error)
CreateChainClientWithSDKConf create a chain client with sdk config file path
func GetEndorsers ¶
func GetEndorsersWithAuthType ¶ added in v2.1.0
func MakeAddrAndSkiFromCrtFilePath ¶
func PrintPrettyJson ¶ added in v2.2.0
func PrintPrettyJson(data interface{})
Types ¶
type PermissionedPkUsers ¶ added in v2.1.0
Click to show internal directories.
Click to hide internal directories.