Skip to content

@gala-chain/chaincodeAPI


API > GalaChainContext

Class: GalaChainContext

Contents

Extends

  • Context

Constructors

new GalaChainContext()

new GalaChainContext(): GalaChainContext

Inherited from

Context.constructor

Properties

callingUserEthAddressValue

private callingUserEthAddressValue?: string

Source

chaincode/src/types/GalaChainContext.ts:32


callingUserRolesValue

private callingUserRolesValue?: string[]

Source

chaincode/src/types/GalaChainContext.ts:34


callingUserTonAddressValue

private callingUserTonAddressValue?: string

Source

chaincode/src/types/GalaChainContext.ts:33


callingUserValue

private callingUserValue?: UserAlias

Source

chaincode/src/types/GalaChainContext.ts:31


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:35


loggerInstance

private loggerInstance?: GalaLoggerInstance

Source

chaincode/src/types/GalaChainContext.ts:37


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:30


txUnixTimeValue

private txUnixTimeValue?: number

Source

chaincode/src/types/GalaChainContext.ts:36

Accessors

callingUser

get callingUser(): UserAlias

Source

chaincode/src/types/GalaChainContext.ts:46


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:79


callingUserEthAddress

get callingUserEthAddress(): string

Source

chaincode/src/types/GalaChainContext.ts:58


callingUserRoles

get callingUserRoles(): string[]

Source

chaincode/src/types/GalaChainContext.ts:72


callingUserTonAddress

get callingUserTonAddress(): string

Source

chaincode/src/types/GalaChainContext.ts:65


logger

get logger(): GalaLoggerInstance

Source

chaincode/src/types/GalaChainContext.ts:39


txUnixTime

get txUnixTime(): number

Source

chaincode/src/types/GalaChainContext.ts:116

Methods

resetCallingUserData()

resetCallingUserData(): void

Source

chaincode/src/types/GalaChainContext.ts:96


setChaincodeStub()

setChaincodeStub(stub): void

Parameters

stub: ChaincodeStub

Source

chaincode/src/types/GalaChainContext.ts:123


setDryRunOnBehalfOf()

setDryRunOnBehalfOf(d): void

Parameters

d: object

d.alias: UserAlias

d.ethAddress?: string

d.roles: string[]

d.tonAddress?: string

Source

chaincode/src/types/GalaChainContext.ts:103