@gala-chain/chaincode ∙ API
API > GalaChainContext
Class: GalaChainContext
Contents
- Extends
- Constructors
- new GalaChainContext()
- Properties
- callingUserEthAddressValue
- callingUserValue
- clientIdentity
- isDryRun
- loggerInstance
- logging
- span
- stub
- txUnixTimeValue
- Accessors
- callingUser
- callingUserData
- callingUserEthAddress
- logger
- txUnixTime
- Methods
- setChaincodeStub()
- setDryRunOnBehalfOf()
Extends
Context
Constructors
new GalaChainContext()
new GalaChainContext():
GalaChainContext
Inherited from
Context.constructor
Properties
callingUserEthAddressValue
privatecallingUserEthAddressValue?:string
Source
chaincode/src/types/GalaChainContext.ts:90
callingUserValue
privatecallingUserValue?: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
isDryRun
isDryRun:
boolean=false
Source
chaincode/src/types/GalaChainContext.ts:91
loggerInstance
privateloggerInstance?:GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:93
logging
logging:
object
Type declaration
getLogger
getLogger: (
name?) =>Logger
Parameters
▪ name?: string
setLevel
setLevel: (
level) =>void
Parameters
▪ level: string
Inherited from
Context.logging
Source
node_modules/fabric-contract-api/types/index.d.ts:15
span
span?:
SpanContext
Source
chaincode/src/types/GalaChainContext.ts:88
stub
stub:
GalaChainStub
Overrides
Context.stub
Source
chaincode/src/types/GalaChainContext.ts:87
txUnixTimeValue
privatetxUnixTimeValue?:number
Source
chaincode/src/types/GalaChainContext.ts:92
Accessors
callingUser
getcallingUser():string
Source
chaincode/src/types/GalaChainContext.ts:102
callingUserData
setcallingUserData(d):void
Parameters
▪ d: object
▪ d.alias: string
▪ d.ethAddress: undefined | string
Source
chaincode/src/types/GalaChainContext.ts:116
callingUserEthAddress
getcallingUserEthAddress():string
Source
chaincode/src/types/GalaChainContext.ts:109
logger
getlogger():GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:95
txUnixTime
gettxUnixTime():number
Source
chaincode/src/types/GalaChainContext.ts:130
Methods
setChaincodeStub()
setChaincodeStub(
stub):void
Parameters
▪ stub: ChaincodeStub
Source
chaincode/src/types/GalaChainContext.ts:137
setDryRunOnBehalfOf()
setDryRunOnBehalfOf(
d):void
Parameters
▪ d: object
▪ d.alias: string
▪ d.ethAddress: undefined | string