@gala-chain/chaincode ∙ API
API > GalaChainContext
Class: GalaChainContext
Contents
- Extends
- Constructors
- new GalaChainContext()
- Properties
- callingUserEthAddressValue
- callingUserTonAddressValue
- callingUserValue
- clientIdentity
- isDryRun
- loggerInstance
- logging
- span
- stub
- txUnixTimeValue
- Accessors
- callingUser
- callingUserData
- callingUserEthAddress
- callingUserTonAddress
- 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
callingUserTonAddressValue
private
callingUserTonAddressValue?:string
Source
chaincode/src/types/GalaChainContext.ts:91
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:92
loggerInstance
private
loggerInstance?:GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:94
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:93
Accessors
callingUser
get
callingUser():string
Source
chaincode/src/types/GalaChainContext.ts:103
callingUserData
set
callingUserData(d
):void
Parameters
▪ d: object
▪ d.alias: string
▪ d.ethAddress?: string
▪ d.tonAddress?: string
Source
chaincode/src/types/GalaChainContext.ts:124
callingUserEthAddress
get
callingUserEthAddress():string
Source
chaincode/src/types/GalaChainContext.ts:110
callingUserTonAddress
get
callingUserTonAddress():string
Source
chaincode/src/types/GalaChainContext.ts:117
logger
get
logger():GalaLoggerInstance
Source
chaincode/src/types/GalaChainContext.ts:96
txUnixTime
get
txUnixTime():number
Source
chaincode/src/types/GalaChainContext.ts:146
Methods
setChaincodeStub()
setChaincodeStub(
stub
):void
Parameters
▪ stub: ChaincodeStub
Source
chaincode/src/types/GalaChainContext.ts:153
setDryRunOnBehalfOf()
setDryRunOnBehalfOf(
d
):void
Parameters
▪ d: object
▪ d.alias: string
▪ d.ethAddress?: string
▪ d.tonAddress?: string