Skip to content

@gala-chain/chaincodeReadme | API


@gala-chain/chaincode / GalaChainContext

Class: GalaChainContext

Extends

  • Context

Constructors

new GalaChainContext()

new GalaChainContext(): GalaChainContext

Returns

GalaChainContext

Inherited from

Context.constructor

Properties

callingUserEthAddressValue?

private optional callingUserEthAddressValue: string

Source

chaincode/src/types/GalaChainContext.ts:90


callingUserValue?

private optional 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


loggerInstance?

private optional loggerInstance: 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?

optional span: SpanContext

Source

chaincode/src/types/GalaChainContext.ts:88


stub

stub: GalaChainStub

Overrides

Context.stub

Source

chaincode/src/types/GalaChainContext.ts:87


txUnixTimeValue?

private optional txUnixTimeValue: number

Source

chaincode/src/types/GalaChainContext.ts:91

Accessors

callingUser

get callingUser(): string

Returns

string

Source

chaincode/src/types/GalaChainContext.ts:101


callingUserData

set callingUserData(d): void

Parameters

d

d.alias: string

d.ethAddress: undefined | string

Source

chaincode/src/types/GalaChainContext.ts:115


callingUserEthAddress

get callingUserEthAddress(): string

Returns

string

Source

chaincode/src/types/GalaChainContext.ts:108


logger

get logger(): GalaLoggerInstance

Returns

GalaLoggerInstance

Source

chaincode/src/types/GalaChainContext.ts:94


txUnixTime

get txUnixTime(): number

Returns

number

Source

chaincode/src/types/GalaChainContext.ts:123

Methods

setChaincodeStub()

setChaincodeStub(stub): void

Parameters

stub: ChaincodeStub

Returns

void

Source

chaincode/src/types/GalaChainContext.ts:130