@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
private
callingUserEthAddressValue?:string
Source
chaincode/src/types/GalaChainContext.ts:90
callingUserValue
private
callingUserValue?: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
private
loggerInstance?: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
private
txUnixTimeValue?:number
Source
chaincode/src/types/GalaChainContext.ts:92
Accessors
callingUser
get
callingUser():string
Source
chaincode/src/types/GalaChainContext.ts:102
callingUserData
set
callingUserData(d
):void
Parameters
▪ d: object
▪ d.alias: string
▪ d.ethAddress: undefined
| string
Source
chaincode/src/types/GalaChainContext.ts:116
callingUserEthAddress
get
callingUserEthAddress():string
Source
chaincode/src/types/GalaChainContext.ts:109
logger
get
logger():GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:95
txUnixTime
get
txUnixTime():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