@gala-chain/chaincode • Readme | API
@gala-chain/chaincode / PublicKeyContract
Class: PublicKeyContract
Extends
Constructors
new PublicKeyContract()
new PublicKeyContract():
PublicKeyContract
Returns
Overrides
Source
chaincode/src/contracts/PublicKeyContract.ts:60
Methods
GetChaincodeVersion()
GetChaincodeVersion(
ctx):Promise\<GalaChainResponse\<string>>
Parameters
• ctx: GalaChainContext
Returns
Promise\<GalaChainResponse\<string>>
Inherited from
GalaContract.GetChaincodeVersion
Source
chaincode/src/contracts/GalaContract.ts:94
GetContractAPI()
GetContractAPI(
ctx):Promise\<GalaChainResponse\<ContractAPI>>
Parameters
• ctx: GalaChainContext
Returns
Promise\<GalaChainResponse\<ContractAPI>>
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:103
GetContractVersion()
GetContractVersion(
ctx):Promise\<GalaChainResponse\<string>>
Parameters
• ctx: GalaChainContext
Returns
Promise\<GalaChainResponse\<string>>
Inherited from
GalaContract.GetContractVersion
Source
chaincode/src/contracts/GalaContract.ts:84
GetMyProfile()
GetMyProfile(
ctx,dto):Promise\<GalaChainResponse\<UserProfile>>
Parameters
• ctx: GalaChainContext
• dto: GetMyProfileDto
Returns
Promise\<GalaChainResponse\<UserProfile>>
Source
chaincode/src/contracts/PublicKeyContract.ts:132
GetObjectByKey()
GetObjectByKey(
ctx,dto):Promise\<GalaChainResponse\<Record\<string,unknown>>>
Parameters
• ctx: GalaChainContext
• dto: GetObjectDto
Returns
Promise\<GalaChainResponse\<Record\<string, unknown>>>
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:114
GetObjectHistory()
GetObjectHistory(
ctx,dto):Promise\<GalaChainResponse\<Record\<string,unknown>>>
Parameters
• ctx: GalaChainContext
• dto: GetObjectHistoryDto
Returns
Promise\<GalaChainResponse\<Record\<string, unknown>>>
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:126
GetPublicKey()
GetPublicKey(
ctx,dto):Promise\<GalaChainResponse\<PublicKey>>
Parameters
• ctx: GalaChainContext
• dto: GetPublicKeyDto
Returns
Promise\<GalaChainResponse\<PublicKey>>
Source
chaincode/src/contracts/PublicKeyContract.ts:218
RegisterEthUser()
RegisterEthUser(
ctx,dto):Promise\<GalaChainResponse\<string>>
Parameters
• ctx: GalaChainContext
• dto: RegisterEthUserDto
Returns
Promise\<GalaChainResponse\<string>>
Source
chaincode/src/contracts/PublicKeyContract.ts:183
RegisterUser()
RegisterUser(
ctx,dto):Promise\<GalaChainResponse\<string>>
Parameters
• ctx: GalaChainContext
• dto: RegisterUserDto
Returns
Promise\<GalaChainResponse\<string>>
Source
chaincode/src/contracts/PublicKeyContract.ts:162
UpdatePublicKey()
UpdatePublicKey(
ctx,dto):Promise\<GalaChainResponse\<void>>
Parameters
• ctx: GalaChainContext
• dto: UpdatePublicKeyDto
Returns
Promise\<GalaChainResponse\<void>>
Source
chaincode/src/contracts/PublicKeyContract.ts:200
VerifySignature()
VerifySignature(
ctx,dto):Promise\<GalaChainResponse\<void>>
Parameters
• ctx: GalaChainContext
• dto: ChainCallDTO
Returns
Promise\<GalaChainResponse\<void>>
Source
chaincode/src/contracts/PublicKeyContract.ts:239
afterTransaction()
afterTransaction(
ctx,result):Promise\<void>
Parameters
• ctx: GalaChainContext
• result: unknown
Returns
Promise\<void>
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:62
aroundTransaction()
aroundTransaction(
ctx,fn,parameters):Promise\<void>
Parameters
• ctx: GalaChainContext
• fn: Function
• parameters: unknown
Returns
Promise\<void>
Inherited from
GalaContract.aroundTransaction
Source
chaincode/src/contracts/GalaContract.ts:57
beforeTransaction()
beforeTransaction(
ctx):Promise\<void>
Parameters
• ctx: GalaChainContext
Returns
Promise\<void>
Inherited from
GalaContract.beforeTransaction
Source
chaincode/src/contracts/GalaContract.ts:52
createContext()
createContext():
GalaChainContext
Returns
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:48
getName()
getName():
string
Returns
string
Inherited from
Source
node_modules/fabric-contract-api/types/index.d.ts:33
getVersion()
getVersion():
string
Returns
string
Inherited from
Source
chaincode/src/contracts/GalaContract.ts:44
registerUser()
privateregisterUser(ctx,providedPkHex,ethAddress,userAlias):Promise\<GalaChainResponse\<string>>
Parameters
• ctx: GalaChainContext
• providedPkHex: string
• ethAddress: string
• userAlias: string
Returns
Promise\<GalaChainResponse\<string>>
Source
chaincode/src/contracts/PublicKeyContract.ts:64
unknownTransaction()
unknownTransaction(
ctx):Promise\<void>
Parameters
• ctx: Context
Returns
Promise\<void>
Inherited from
GalaContract.unknownTransaction
Source
node_modules/fabric-contract-api/types/index.d.ts:30
updatePublicKey()
privateupdatePublicKey(ctx,newPkHex,newEthAddress):Promise\<void>
Parameters
• ctx: GalaChainContext
• newPkHex: string
• newEthAddress: string
Returns
Promise\<void>
Source
chaincode/src/contracts/PublicKeyContract.ts:95
_isContract()
static_isContract():boolean
Returns
boolean
Inherited from
Source
node_modules/fabric-contract-api/types/index.d.ts:24