@gala-chain/test ∙ API
API > ChaincodeStubClassType
Interface: ChaincodeStubClassType
Contents
- Extends
- Constructors
- new ChaincodeStubClassType(client, channel_id, txId, chaincodeInput, signedProposal)
- Properties
- creator
- Methods
- createCompositeKey()
- deletePrivateData()
- deleteState()
- getArgs()
- getBinding()
- getChannelID()
- getCreator()
- getDateTimestamp()
- getFunctionAndParameters()
- getHistoryForKey()
- getMspID()
- getPrivateData()
- getPrivateDataByPartialCompositeKey()
- getPrivateDataByRange()
- getPrivateDataHash()
- getPrivateDataQueryResult()
- getPrivateDataValidationParameter()
- getQueryResult()
- getQueryResultWithPagination()
- getSignedProposal()
- getState()
- getStateByPartialCompositeKey()
- getStateByPartialCompositeKeyWithPagination()
- getStateByRange()
- getStateByRangeWithPagination()
- getStateValidationParameter()
- getStringArgs()
- getTransient()
- getTxID()
- getTxTimestamp()
- invokeChaincode()
- purgePrivateData()
- putPrivateData()
- putState()
- setEvent()
- setPrivateDataValidationParameter()
- setStateValidationParameter()
- splitCompositeKey()
Extends
ChaincodeStub
Constructors
new ChaincodeStubClassType(client, channel_id, txId, chaincodeInput, signedProposal)
new ChaincodeStubClassType(
client
,channel_id
,txId
,chaincodeInput
,signedProposal
):ChaincodeStubClassType
Parameters
▪ client: any
▪ channel_id: any
▪ txId: any
▪ chaincodeInput: any
▪ signedProposal: any
Inherited from
FChaincodeStub.constructor
Source
chain-test/src/unit/TestChaincodeStub.ts:23
Properties
creator
creator:
unknown
Source
chain-test/src/unit/TestChaincodeStub.ts:25
Methods
createCompositeKey()
createCompositeKey(
objectType
,attributes
):string
Parameters
▪ objectType: string
▪ attributes: string
[]
Overrides
FChaincodeStub.createCompositeKey
Source
chain-test/src/unit/TestChaincodeStub.ts:27
deletePrivateData()
deletePrivateData(
collection
,key
):Promise
\<void
>
Parameters
▪ collection: string
▪ key: string
Inherited from
FChaincodeStub.deletePrivateData
Source
node_modules/fabric-shim/types/index.d.ts:138
deleteState()
deleteState(
key
):Promise
\<void
>
Parameters
▪ key: string
Inherited from
FChaincodeStub.deleteState
Source
node_modules/fabric-shim/types/index.d.ts:117
getArgs()
getArgs():
string
[]
Inherited from
FChaincodeStub.getArgs
Source
node_modules/fabric-shim/types/index.d.ts:100
getBinding()
getBinding():
string
Inherited from
FChaincodeStub.getBinding
Source
node_modules/fabric-shim/types/index.d.ts:113
getChannelID()
getChannelID():
string
Inherited from
FChaincodeStub.getChannelID
Source
node_modules/fabric-shim/types/index.d.ts:105
getCreator()
getCreator():
SerializedIdentity
Inherited from
FChaincodeStub.getCreator
Source
node_modules/fabric-shim/types/index.d.ts:106
getDateTimestamp()
getDateTimestamp():
Date
Inherited from
FChaincodeStub.getDateTimestamp
Source
node_modules/fabric-shim/types/index.d.ts:112
getFunctionAndParameters()
getFunctionAndParameters():
object
Returns
fcn
fcn:
string
params
params:
string
[]
Inherited from
FChaincodeStub.getFunctionAndParameters
Source
node_modules/fabric-shim/types/index.d.ts:102
getHistoryForKey()
getHistoryForKey(
key
):Promise
\<HistoryQueryIterator
> &AsyncIterable
\<KeyModification
>
Parameters
▪ key: string
Inherited from
FChaincodeStub.getHistoryForKey
Source
node_modules/fabric-shim/types/index.d.ts:127
getMspID()
getMspID():
string
Inherited from
FChaincodeStub.getMspID
Source
node_modules/fabric-shim/types/index.d.ts:107
getPrivateData()
getPrivateData(
collection
,key
):Promise
\<Uint8Array
>
Parameters
▪ collection: string
▪ key: string
Inherited from
FChaincodeStub.getPrivateData
Source
node_modules/fabric-shim/types/index.d.ts:135
getPrivateDataByPartialCompositeKey()
getPrivateDataByPartialCompositeKey(
collection
,objectType
,attributes
):Promise
\<StateQueryIterator
> &AsyncIterable
\<KV
>
Parameters
▪ collection: string
▪ objectType: string
▪ attributes: string
[]
Inherited from
FChaincodeStub.getPrivateDataByPartialCompositeKey
Source
node_modules/fabric-shim/types/index.d.ts:143
getPrivateDataByRange()
getPrivateDataByRange(
collection
,startKey
,endKey
):Promise
\<StateQueryIterator
> &AsyncIterable
\<KV
>
Parameters
▪ collection: string
▪ startKey: string
▪ endKey: string
Inherited from
FChaincodeStub.getPrivateDataByRange
Source
node_modules/fabric-shim/types/index.d.ts:142
getPrivateDataHash()
getPrivateDataHash(
collection
,key
):Promise
\<Uint8Array
>
Parameters
▪ collection: string
▪ key: string
Inherited from
FChaincodeStub.getPrivateDataHash
Source
node_modules/fabric-shim/types/index.d.ts:136
getPrivateDataQueryResult()
getPrivateDataQueryResult(
collection
,query
):Promise
\<StateQueryIterator
> &AsyncIterable
\<KV
>
Parameters
▪ collection: string
▪ query: string
Inherited from
FChaincodeStub.getPrivateDataQueryResult
Source
node_modules/fabric-shim/types/index.d.ts:144
getPrivateDataValidationParameter()
getPrivateDataValidationParameter(
collection
,key
):Promise
\<Uint8Array
>
Parameters
▪ collection: string
▪ key: string
Inherited from
FChaincodeStub.getPrivateDataValidationParameter
Source
node_modules/fabric-shim/types/index.d.ts:141
getQueryResult()
getQueryResult(
query
):Promise
\<StateQueryIterator
> &AsyncIterable
\<KV
>
Parameters
▪ query: string
Inherited from
FChaincodeStub.getQueryResult
Source
node_modules/fabric-shim/types/index.d.ts:125
getQueryResultWithPagination()
getQueryResultWithPagination(
query
,pageSize
,bookmark
?):Promise
\<StateQueryResponse
\<StateQueryIterator
>> &AsyncIterable
\<KV
>
Parameters
▪ query: string
▪ pageSize: number
▪ bookmark?: string
Inherited from
FChaincodeStub.getQueryResultWithPagination
Source
node_modules/fabric-shim/types/index.d.ts:126
getSignedProposal()
getSignedProposal():
SignedProposal
Inherited from
FChaincodeStub.getSignedProposal
Source
node_modules/fabric-shim/types/index.d.ts:110
getState()
getState(
key
):Promise
\<Uint8Array
>
Parameters
▪ key: string
Inherited from
FChaincodeStub.getState
Source
node_modules/fabric-shim/types/index.d.ts:115
getStateByPartialCompositeKey()
getStateByPartialCompositeKey(
objectType
,attributes
):Promise
\<StateQueryIterator
> &AsyncIterable
\<KV
>
Parameters
▪ objectType: string
▪ attributes: string
[]
Inherited from
FChaincodeStub.getStateByPartialCompositeKey
Source
node_modules/fabric-shim/types/index.d.ts:122
getStateByPartialCompositeKeyWithPagination()
getStateByPartialCompositeKeyWithPagination(
objectType
,attributes
,pageSize
,bookmark
?):Promise
\<StateQueryResponse
\<StateQueryIterator
>> &AsyncIterable
\<KV
>
Parameters
▪ objectType: string
▪ attributes: string
[]
▪ pageSize: number
▪ bookmark?: string
Inherited from
FChaincodeStub.getStateByPartialCompositeKeyWithPagination
Source
node_modules/fabric-shim/types/index.d.ts:123
getStateByRange()
getStateByRange(
startKey
,endKey
):Promise
\<StateQueryIterator
> &AsyncIterable
\<KV
>
Parameters
▪ startKey: string
▪ endKey: string
Inherited from
FChaincodeStub.getStateByRange
Source
node_modules/fabric-shim/types/index.d.ts:120
getStateByRangeWithPagination()
getStateByRangeWithPagination(
startKey
,endKey
,pageSize
,bookmark
?):Promise
\<StateQueryResponse
\<StateQueryIterator
>> &AsyncIterable
\<KV
>
Parameters
▪ startKey: string
▪ endKey: string
▪ pageSize: number
▪ bookmark?: string
Inherited from
FChaincodeStub.getStateByRangeWithPagination
Source
node_modules/fabric-shim/types/index.d.ts:121
getStateValidationParameter()
getStateValidationParameter(
key
):Promise
\<Uint8Array
>
Parameters
▪ key: string
Inherited from
FChaincodeStub.getStateValidationParameter
Source
node_modules/fabric-shim/types/index.d.ts:119
getStringArgs()
getStringArgs():
string
[]
Inherited from
FChaincodeStub.getStringArgs
Source
node_modules/fabric-shim/types/index.d.ts:101
getTransient()
getTransient():
Map
\<string
,Uint8Array
>
Inherited from
FChaincodeStub.getTransient
Source
node_modules/fabric-shim/types/index.d.ts:108
getTxID()
getTxID():
string
Inherited from
FChaincodeStub.getTxID
Source
node_modules/fabric-shim/types/index.d.ts:104
getTxTimestamp()
getTxTimestamp():
Timestamp
Inherited from
FChaincodeStub.getTxTimestamp
Source
node_modules/fabric-shim/types/index.d.ts:111
invokeChaincode()
invokeChaincode(
chaincodeName
,args
,channel
):Promise
\<ChaincodeResponse
>
Parameters
▪ chaincodeName: string
▪ args: string
[]
▪ channel: string
Inherited from
FChaincodeStub.invokeChaincode
Source
node_modules/fabric-shim/types/index.d.ts:129
purgePrivateData()
purgePrivateData(
collection
,key
):Promise
\<void
>
Parameters
▪ collection: string
▪ key: string
Inherited from
FChaincodeStub.purgePrivateData
Source
node_modules/fabric-shim/types/index.d.ts:139
putPrivateData()
putPrivateData(
collection
,key
,value
):Promise
\<void
>
Parameters
▪ collection: string
▪ key: string
▪ value: Uint8Array
Inherited from
FChaincodeStub.putPrivateData
Source
node_modules/fabric-shim/types/index.d.ts:137
putState()
putState(
key
,value
):Promise
\<void
>
Parameters
▪ key: string
▪ value: Uint8Array
Inherited from
FChaincodeStub.putState
Source
node_modules/fabric-shim/types/index.d.ts:116
setEvent()
setEvent(
name
,payload
):void
Parameters
▪ name: string
▪ payload: Uint8Array
Inherited from
FChaincodeStub.setEvent
Source
node_modules/fabric-shim/types/index.d.ts:130
setPrivateDataValidationParameter()
setPrivateDataValidationParameter(
collection
,key
,ep
):Promise
\<void
>
Parameters
▪ collection: string
▪ key: string
▪ ep: Uint8Array
Inherited from
FChaincodeStub.setPrivateDataValidationParameter
Source
node_modules/fabric-shim/types/index.d.ts:140
setStateValidationParameter()
setStateValidationParameter(
key
,ep
):Promise
\<void
>
Parameters
▪ key: string
▪ ep: Uint8Array
Inherited from
FChaincodeStub.setStateValidationParameter
Source
node_modules/fabric-shim/types/index.d.ts:118
splitCompositeKey()
splitCompositeKey(
compositeKey
):SplitCompositekey
Parameters
▪ compositeKey: string
Inherited from
FChaincodeStub.splitCompositeKey
Source
node_modules/fabric-shim/types/index.d.ts:133