@gala-chain/chaincode • Readme | API
@gala-chain/chaincode / GalaChainContext
Class: GalaChainContext
Extends
Context
Constructors
new GalaChainContext()
new GalaChainContext():
GalaChainContext
Returns
Inherited from
Context.constructor
Properties
callingUserEthAddressValue?
privateoptionalcallingUserEthAddressValue:string
Source
chaincode/src/types/GalaChainContext.ts:90
callingUserValue?
privateoptionalcallingUserValue:string
Source
chaincode/src/types/GalaChainContext.ts:89
clientIdentity
clientIdentity:
ClientIdentity
Inherited from
Context.clientIdentity
Source
node_modules/fabric-contract-api/types/index.d.ts:14
loggerInstance?
privateoptionalloggerInstance:GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:92
logging
logging:
object
getLogger()
getLogger: (
name?) =>Logger
Parameters
• name?: string
Returns
Logger
setLevel()
setLevel: (
level) =>void
Parameters
• level: string
Returns
void
Inherited from
Context.logging
Source
node_modules/fabric-contract-api/types/index.d.ts:15
span?
optionalspan:SpanContext
Source
chaincode/src/types/GalaChainContext.ts:88
stub
stub:
GalaChainStub
Overrides
Context.stub
Source
chaincode/src/types/GalaChainContext.ts:87
txUnixTimeValue?
privateoptionaltxUnixTimeValue:number
Source
chaincode/src/types/GalaChainContext.ts:91
Accessors
callingUser
getcallingUser():string
Returns
string
Source
chaincode/src/types/GalaChainContext.ts:101
callingUserData
setcallingUserData(d):void
Parameters
• d
• d.alias: string
• d.ethAddress: undefined | string
Source
chaincode/src/types/GalaChainContext.ts:115
callingUserEthAddress
getcallingUserEthAddress():string
Returns
string
Source
chaincode/src/types/GalaChainContext.ts:108
logger
getlogger():GalaLoggerInstance
Returns
GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:94
txUnixTime
gettxUnixTime():number
Returns
number
Source
chaincode/src/types/GalaChainContext.ts:123
Methods
setChaincodeStub()
setChaincodeStub(
stub):void
Parameters
• stub: ChaincodeStub
Returns
void