@gala-chain/chaincode ∙ API
API > GalaChainContext
Class: GalaChainContext
Contents
- Extends
- Constructors
- new GalaChainContext(config)
- Properties
- callingUserEthAddressValue
- callingUserRolesValue
- callingUserTonAddressValue
- callingUserValue
- clientIdentity
- config
- isDryRun
- loggerInstance
- logging
- stub
- txUnixTimeValue
- Accessors
- callingUser
- callingUserData
- callingUserEthAddress
- callingUserProfile
- callingUserRoles
- callingUserTonAddress
- logger
- txUnixTime
- Methods
- resetCallingUser()
- setChaincodeStub()
- setDryRunOnBehalfOf()
Extends
Context
Constructors
new GalaChainContext(config)
new GalaChainContext(
config
):GalaChainContext
Parameters
▪ config: GalaChainContextConfig
Overrides
Context.constructor
Source
chaincode/src/types/GalaChainContext.ts:58
Properties
callingUserEthAddressValue
private
callingUserEthAddressValue?:string
Source
chaincode/src/types/GalaChainContext.ts:49
callingUserRolesValue
private
callingUserRolesValue?:string
[]
Source
chaincode/src/types/GalaChainContext.ts:51
callingUserTonAddressValue
private
callingUserTonAddressValue?:string
Source
chaincode/src/types/GalaChainContext.ts:50
callingUserValue
private
callingUserValue?:UserAlias
Source
chaincode/src/types/GalaChainContext.ts:48
clientIdentity
clientIdentity:
ClientIdentity
Inherited from
Context.clientIdentity
Source
node_modules/fabric-contract-api/types/index.d.ts:14
config
config:
GalaChainContextConfig
Source
chaincode/src/types/GalaChainContext.ts:56
isDryRun
isDryRun:
boolean
=false
Source
chaincode/src/types/GalaChainContext.ts:55
loggerInstance
private
loggerInstance?:GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:53
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
stub
stub:
GalaChainStub
Overrides
Context.stub
Source
chaincode/src/types/GalaChainContext.ts:47
txUnixTimeValue
private
txUnixTimeValue?:number
Source
chaincode/src/types/GalaChainContext.ts:52
Accessors
callingUser
get
callingUser():UserAlias
Source
chaincode/src/types/GalaChainContext.ts:70
callingUserData
set
callingUserData(d
):void
Parameters
▪ d: object
▪ d.alias?: UserAlias
▪ d.ethAddress?: string
▪ d.roles: string
[]
▪ d.tonAddress?: string
Source
chaincode/src/types/GalaChainContext.ts:112
callingUserEthAddress
get
callingUserEthAddress():string
Source
chaincode/src/types/GalaChainContext.ts:82
callingUserProfile
get
callingUserProfile():UserProfile
Source
chaincode/src/types/GalaChainContext.ts:103
callingUserRoles
get
callingUserRoles():string
[]
Source
chaincode/src/types/GalaChainContext.ts:96
callingUserTonAddress
get
callingUserTonAddress():string
Source
chaincode/src/types/GalaChainContext.ts:89
logger
get
logger():GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:63
txUnixTime
get
txUnixTime():number
Source
chaincode/src/types/GalaChainContext.ts:149
Methods
resetCallingUser()
resetCallingUser():
void
Source
chaincode/src/types/GalaChainContext.ts:129
setChaincodeStub()
setChaincodeStub(
stub
):void
Parameters
▪ stub: ChaincodeStub
Source
chaincode/src/types/GalaChainContext.ts:156
setDryRunOnBehalfOf()
setDryRunOnBehalfOf(
d
):void
Parameters
▪ d: object
▪ d.alias: UserAlias
▪ d.ethAddress?: string
▪ d.roles: string
[]
▪ d.tonAddress?: string